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.

link|improve this question

50% accept rate
feedback

2 Answers

up vote 4 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.

link|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
1  
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
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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