Ubuntu Email

Reading time ~1 minute

Setting Ubuntu to send email

After setting up RAID on an Ubuntu server at home, I wanted the server to email me if there were any problems with the drives.

Rather than installing and configuring postfix or some other MTA, I settled for ssmtp.

Installation and testing is as simple as:

$ sudo apt-get install mailutils ssmtp
$ sudo dpkg-reconfigure ssmtp
$ echo "This is a test" | mail -s test your-address@gmail.com

Check your spam folder for the messages though!

Configuration lives in /etc/ssmtp/ssmtp.conf.

References

Testing Infinite Loops

How can you write a test to check that a method gets itself into an infinite loop (without your tests getting into an infinite loop)? Continue reading

Imposter Syndrome

Published on November 08, 2015

The Essential Interview Question

Published on March 11, 2015