I would go by the ssmtpd path. Setting it up is very straightforward, even with google accounts and SSL/TLS.
This is a working config for relaying email to a google account:
Code: Select all
mailhub=smtp.gmail.com:587
hostname=localhost
UseSTARTTLS=YES
AuthUser=myusername@gmail.com
AuthPass=superGreatPassword
After that you can even send emails by using mail-client/mailx or equivalent.