On 04/12/15 09:43, Mark Rogers wrote:
What's the simplest (least config, lowest footprint) way to give a Linux box the capability to send email?
Eg: if I have a Pi running a few cron jobs and I want it to be able to email me any issues, that kind of thing. Or a web server that might need to send forgotten password reminders but little else.
It'll never need to receive email or provide mail services to others.
I've used ssmtp in the past but recently found something better, but for the life of me can't remember what it was! But as it's a common requirement I'd like to know what other people do.
Mark
I do this on an Ubuntu machine that doesn't have a proper MTA installed and never will:
apt-get install ssmtp heirloom-mailx -y
then follow this:
https://wiki.archlinux.org/index.php/SSMTP
I secure ssmtp.conf like this:
groupadd ssmtp chown :ssmtp /etc/ssmtp/ssmtp.conf chown :ssmtp /usr/sbin/ssmtp chmod 640 /etc/ssmtp/ssmtp.conf chmod g+s /usr/sbin/ssmtp
This is a helpful link as well:
http://www.binarytides.com/linux-mailx-command/
Cheers, Laurie.