Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Maybe this is a bit of an ovious question or somehow unrelated. Sorry for that, i digged but could not find an answer anywhere.

I am running a drupal based site on amazon servers. The site uses some mail functionalities. New user confirmation, updates, mail subscriptions, basic things.

Problem is that most of the emails sent by my server end up in the junk boxes because amazon IPs are not welcome. They are often used by spammers and you get blacklisted even if you never spammed.

Can anyone suggest me how to avoid this? Either to set up some other mail server outside amazon ip range, so any mail request generated on my server is actually being send from elsewhere. But how is this technically done? Or if there is anything I can do on my server so I dont get into junk folders?

Thanks in advance

share|improve this question
up vote 2 down vote accepted

Amazon's EC2 IP ranges are basically scorched earth from a spam filter perspective. They're blacklisted or heavily penalized by most major ISPs.

You can send e-mail via any number of third-parties. Amazon themselves has one (Amazon SES), and I've played with Mandrill, SendGrid, and Postmark personally and been happy with all three.

share|improve this answer
how is it technically achieved (in a few words) sending from the third party? A setting for the PHP to use sendmail() function externally? Sorry but I completely lack the understanding of this one. If you would be so kind to point me into the right direction I will then research on the details... Thanks – MAXIM Jan 24 '13 at 20:13
You'd configure sendmail (or postfix or whatever MTA you're using) to use an external SMTP server. You should be able to find docs for your MTA on specifying credentials and server locations. – ceejayoz Jan 24 '13 at 20:17
OK. Got it. I think I will try doing it with Amazon SES - they promise to deliver everything this way. It still would be within their network for me. Up to 2000 emails per day is way more than I need. – MAXIM Jan 24 '13 at 20:41
Thanks for your help – MAXIM Jan 24 '13 at 20:43
You're welcome! – ceejayoz Jan 24 '13 at 20:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.