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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
It’s likely that when on EC2 your requests stays inside Amazon’s internal network while on DigitalOcean it simply needs to go further. The first thing I’d check to debug this is a traceroute to the SMTP endpoint from both the EC2 instance and the DigitalOcean droplet.
I’ve also heard anecdotal evidence that using the SES API rather than directly using their SMTP interface will result in better speeds, especially when sending mass emails.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.