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 web application that needs to send outgoing mail. Instead of connecting directly to the SMTP server (I'm using AuthSMTP), I'd like to setup a local mail server. This is to reduce the time the web application has to wait to send the email, and to automatically store and retry the mail of the AuthSMTP server is down.

What mail server will be simple to setup and manage? All it needs to do is relay all mail from localhost to a specific server. I'd also like to be able to monitor the server, to see when some messages cannot be delivered.

I have some experience with Apache James, and I'm trying out Postfix currently.

share|improve this question
up vote 2 down vote accepted

My current Linux web servers are Debian based, and in the one case I wanted the server to be able to send mail I just stuck with the default exim4-daemon-light package ( which required very little extra configuration. It keeps logs that you should be able to parse with standard tools to monitor for failed delivery at the level of the initial SMTP connection. To be notified of errors that happen after that point you need to make sure the messages go out with valid from and reply-to headers so the receiving mailer knows where to send bounce messages (this last point is the same what-ever MTA you chose).

share|improve this answer
I'm sticking to postfix for now, but this seems like a good alternative. – Ralf Dec 16 '09 at 13:07
For the simple jb of just sending mail from a local process like a scrip running under Apache, just about any MTA will do so what you are familiar with makes a diffrence. Just make sure that you correctly configure what-ever you use such that is doesn't act as an open relay. – David Spillett Dec 16 '09 at 14:05

If you don't want a daemon running , and just a sendmail replacement, try ssmtp [

Easy config & no daemon running. I didn't remember, but it saves a log somewhere, so you can check for problems.

Another options would be nullmailer or putmail.

I thought the tree works as sendmail replacements, so you can change your "/usr/lib/sendmail" for one of these), or you can configure apache/php to use them.

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.