Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I have a site running on CentOS 5.4 through Amazon EC2. Unfortunately, Amazon has had nothing but trouble with their entire IP range getting black listed from spam tracking services regularly. I need a mail server, so I setup an smtp server elsewhere that I want to send to, but I can't just send directly to it through PHP because the direct smtp request is way too slow. What I want to do is relay through sendmail, but I've never used sendmail before, so I have no idea how to configure it. All I want is for all emails sent from localhost to be relayed to one specific external server, but I don't know how to do that. I tried to find a tutorial online, but couldn't find anything that was particularly clear as to how I go about doing that. Can anyone help me out?

share|improve this question
up vote 1 down vote accepted

The sendmail feature you need to configure is mailertable. Here are simple config instructions after a base install of Sendmail.

Mailertable: Sendmail full Monty minus mailertable

If this doesn't work for you I'd recommend using installing webmin to configure the install. I would I highly recommend configure your firewall for outbound email.

share|improve this answer

Never used them but they do have a free plan you can try out My understanding is that it was specifically create to solve your problem.

share|improve this answer
Sorry, but that doesn't work. I need to be able to send lots of emails, since my site provides users with a mailing list system. The free plan wouldn't work and the non-free ones would cost far too much money. – Stephen Belanger May 21 '10 at 18:52

As long as you are sending transactional emails, look at this SMTP Relay Service. No limit on emails that can be sent and Free option is available.

share|improve this answer

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.