Ask HN: How do you send mails from Amazon EC2?
I'm using Amazon EC2 to host a web server, but Amazon EC2's IP address space is blocked by Trend Micro MAPS DUL (http://securecloud.com/help/en/about_the_dul.html). Given that sending emails from a web server is often necessary, I need a way to send emails from the web server. I was using the Google Apps SMTP server for this until our website had enough users that we passed the Google Apps daily email limit. So now I'm looking for an alternative way to send emails. I'm sure many other YC News readers have encountered this... any suggestions?
Clarification: I don't mean email marketing services like ConstantContact.com but rather mail servers that can be used directly from our web server to send email notifications.
9 comments
[ 4.5 ms ] story [ 34.2 ms ] threadThat is entirely possible. The server itself does not have to be very extreme, the lowest end Rackspace cloud or Godaddy server should do it, it all just comes down to if those IP addresses are blocked too.
The real problem is that you will spend too much time figuring out reverse DNS, SPF records, and all kind of email trivia. I'm not sure it's really worth it. How many customers do you lose if you just ignore the problem ?
If you can't just ignore the problem, get a host on a reputable block of IPs and hire a freelance sys admin to set up and baby the system. You will want to monitor bounce rates and other metrics and fix problems as they arise.
If you want to pay for certainty, some standard SMTP services are: Sendgrid, AuthSMTP, fastmail.fm.
http://www.authsmtp.com/
Also see http://pauldowman.com/2008/02/17/smtp-mail-from-ec2-web-serv...
The best I can remember for my solution was to get an elastic ip, then fill out some forms with a watchlist organization, and add some fancy txt records to my dns.
A couple days later emails were going out fine.
Sorry I can't be more specific, but it was one of those things that hat me beating my head against a wall for a few days, and after a few days of the steep learning curve for sending email the number of things I tried vastly exceeded the number of things that worked, so my notes are of little help.