AWS EC2 email sending limit when using third party smtp server

Santhosh S picture Santhosh S · Oct 11, 2014 · Viewed 11.7k times · Source

Are there any limits on the number of emails I can send from an EC2 instances when I am using a third party SMTP server to send out emails ? I use the EC2 instance to call the client's smtp server.

Thanks Santhosh

Answer

Michael - sqlbot picture Michael - sqlbot · Oct 11, 2014

Yes, if you are connecting to the third-party server over TCP port 25, there is a limit imposed by the EC2 infrastructure, as an anti-spam measure.

You can request that this restriction be lifted, or, the simplest and arguably most correct solution, connect to the server on port 587 (SMTP-MSA) instead of 25 (SMTP-MTA). (The third party mail server should support it unless they really haven't been paying attention for several years.)

See http://en.m.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol

Or, using SSL would be even better.

If you aren't connecting to the 3rd party server on port 25, then there's absolutely no limit.

https://aws-portal.amazon.com/gp/aws/html-forms-controller/contactus/ec2-email-limit-rdns-request ... is the form you can use if you want to request removal of the port 25 block, but this also requires you to establish reverse dns to take additional responsibility for the removed restriction on port 25, if you want to take that route, instead.