Table of Contents
- Option 1 – Install an MTA (Mail Transport Agent)
- Option 2 – Install a Nullmailer (ssmtp)
- Option 3 – msmtp an alternative to ssmtp
Content Error or Suggest an Edit
You’ve reached a draft 🤷♂️ and unfortunately, it’s a work in progress.
I created this article because someone asked, “How do I monitor my software raid and the associated drives? smartctl needs to be able to send email?
MTA stands for Mail Transfer Agent. It is a software application responsible for sending and receiving email messages between different servers on the internet. When you send an email, your email client communicates with the MTA on your email server, which then sends the message to the MTA on the recipient’s email server. The MTA ensures that the message is delivered to the correct destination and handles any errors or problems that may occur during transmission.
- Postfix – http://www.postfix.org/
- Sendmail – http://www.sendmail.com/
- Exim – http://www.exim.org/
- Qmail – http://cr.yp.to/qmail.html
- Zimbra – https://www.zimbra.com/
- OpenSMTPD – https://www.opensmtpd.org/
- Haraka – https://github.com/haraka/Haraka
- Courier – https://sourceforge.net/projects/courier/
Nullmailer, on the other hand, is a lightweight MTA designed for use on systems where a full-featured MTA like Sendmail or Postfix is not necessary or desirable. Nullmailer is a “null” MTA in that it does not have the ability to receive messages or act as a full mail server. Instead, it is designed to simply forward outgoing messages to a more capable MTA, such as Gmail’s SMTP server or your hosting provider’s email server. This can be useful in situations where you do not have full control over the server you are using, or where you do not want to install and configure a full-featured MTA.
The following page is a great resource
- Nullmailer – http://untroubled.org/nullmailer/
- sSMTP – https://github.com/Raymonds84/ssmtp
- esmtp – http://esmtp.sourceforge.net/
- mSMTP – https://marlam.de/msmtp/
- mini_sendmail – https://acme.com/software/mini_sendmail/
- nbsmtp – https://nbsmtp.ferdyx.org/
- smtp-cli – https://github.com/mludvig/smtp-cli
- smtp-forwarder – https://github.com/agentzh/smtp-forwarder
- sendEmail – http://caspian.dotconf.net/menu/Software/SendEmail/
- sendEmail-SSL-wrapper – https://github.com/wildsau/sendEmail-ssl-wrapper
In summary, an MTA is responsible for sending and receiving email messages between servers, while Nullmailer is a lightweight MTA designed for forwarding outgoing messages to a more capable MTA.
You can install any of the popular MTA’s out there; I prefer Exim but Postfix or sendmail are perfectly fine. But are sometimes overkill.
- Setting up an SMTP Server on Linux – ultimate guide – gmass.co
- Sending Emails From Terminal In Linux
I’ve always enjoyed using ssmtp with Postmark, Sendgrid or Mailgun as a quick and easy setup for an MTA on a Linux server.
Unfortunately, ssmtp is no longer maintained. Below is the original Github repository, from what I can tell, but it might be a mirror.
There is another Github repository that has patches for ssmtp.
I was recommended msmtp by someone who read this article, I haven’t used it yet so I don’t have instructions right now.
- 04-04-2023 – Updated page to reflect MTA and nullmailer