The procedure for setting up SSMTP on Ubuntu is fairly well documented on the Ubuntu wiki, but the only amendment I’d make would be to change the hostname to localhost.
On Ubuntu wiki but fails to send emails:
Amendment that works:
Your email address will not be published. Required fields are marked *
Notify me of follow-up comments by email.
Notify me of new posts by email.
This site uses Akismet to reduce spam. Learn how your comment data is processed.