Sendmail command on Linux

Many Linux software depends on the sendmail program to send mail. We have good experience with the sSMTP application. It provides a sendmail implementation which sends the mail directly to an SMTP server.

To install sSMTP on Ubuntu:

sudo apt-get install ssmtp

Edit its main configuration file:

sudoedit /etc/ssmtp/ssmtp.conf

Set sSMTP to send mail to the Message Submission port of Mireka. For example:

mailhub=mail.example.com:587

You may also want to set other properties and edit the other configuration file, /etc/ssmtp/revaliases.

If sSMTP is on a different host than Mireka, then set Mireka to allow message submission from the sSMTP host. See Authenticate by IP address.