Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

3 Answers 3

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
2  
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

 
discard

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.