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 would like to have cron output sent to an external email address, via a minimal SMTP client that sends via Gmail. I think I need this client to support TLS and /etc/aliases, and I would like configuration to be as simple as possible.

share|improve this question
up vote 6 down vote accepted

ssmtp seems to be abandoned. Generally people are using msmtp as an equivalent replacement. Here's a decent howto on how to use msmtp as your system mail transfer agent.

msmtp supports all the standard authentication and encryption protocols such as TLS.

share|improve this answer
msmtp does not seem to support aliases, so I can't see how to get root's email from cron to the outside world. – jl6 Apr 17 '11 at 21:49
aliases are for mail coming in to your system, not going out. For outgoing mail, you rewrite the header and envelope header to control who the mail appears to be from. msmtp can do that. – Phil Hollenback Apr 17 '11 at 22:33
msmtp now support aliases. – colan Dec 6 '13 at 15:33

It's not really minimal, but it's there in virtually all Ubuntu repositories -- postfix.

I typically configure postfix to relay all my email to gmail, and I made a script to automate configuring postfix on new Ubuntu installations. Feel free to check this out to get the script.

share|improve this answer

On my fedora and centos box I run ssmtp which allows me to forward my cron and daily mail to my gmail account.

Works as well as expected and is easy to setup.

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.