Question
SMTP too slow with AWS SES
I am having trouble understanding this problem.
I have two boxes (ec2, droplet) and same exact code. I sent an email from both using AWS SES SMTP settings and both send emails as expected.
But on droplet, it takes about 3-5 seconds for it send and on ec2 is near instantaneous.
Note, I am talking about delivery of the email to the inbox but just sending the email from the server (issuing the SMTP request)
Can someone shed some light on this?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
SAI, so you are able to send emails with SES from a droplet? When I tried to do it from the droplet, I always get this error:
to=my@email.com, relay=none, delay=592, delays=592/0.07/0/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=email-smtp.us-east-1.amazonaws.com type=MX: Host not found, try again)
But when I do it from EC2 instance, it works fine.
Both droplet and EC2 have identical postfix settings.
Any idea? Please advise!
Thanks so much.
I have found a solution that fixed this problem. Here it is: http://www.oneminuteinfo.com/2015/05/postfix-host-or-domain-name-not-found.html