Configure your email server to use retry logic with exponential backoff. Transient underlying host events can briefly disrupt network connectivity on EC2 instances and cause application-layer failures such as email sending errors. These events don't appear in instance status checks or the AWS Health Dashboard. Retry logic allows your email server to recover automatically from brief connectivity interruptions without manual intervention.
Assign an Elastic IP address to the EC2 instance that hosts your email server.
To make sure that your outbound emails aren't marked as spam, set up reverse DNS.
Use Amazon Simple Email Service (Amazon SES) to externally relay your emails. Email providers can block cloud IP address ranges and prevent delivery from your EC2 instances. To avoid blocked IP address ranges, use the SMTP endpoint from Amazon SES to send emails independently of your instances. For more information, see Managing your Amazon SES sending limits.