Extremely simple MTA to get mail off the system to a mail hub
sSMTP is a simple and lightweight MTA to deliver mail from a computer to a mail hub (SMTP server).
How to configure it
First you need to create your configuration file and save it here: /var/snap/ssmtp-snap/current/ssmpt.conf
You can use this command to obtain a template for your configuration file:
ssmtp-snap.config
How to use it
You can use this command to obtain a template for your email file:
ssmtp-snap.email
To send an email
ssmtp-snap.ssmtp -v recipient@example.com < email.txt
To send an email overriding the From address
ssmtp-snap.ssmtp -f your_email@example.com -v recipient@example.com < email.txt