I have Postfix setup on my server so that I can send outgoing mail using the command-line:
mail -s "Subject" [email protected]
- Is this using Sendmail or Postfix ?
- Is "Sendmail" just a software category or a distinct program ?
- If something is "Sendmail-ready" does that mean it will work with Postfix ?
Everything I've read online seems to use these two terms interchangeably.
Postfix and sendmail are different implementations of Mail Transfer Agents which are using Simple Mail Transfer Protocol (SMTP) for email transport over the Internet.
Postfix first released in 1998 intended to be an alternative to the widely used Sendmail MTA which was used widely since 1982.
Here are the summaries of all 4 popular mail agents:
And their comparison table:
Source: shearer
For full comparison, check: MTA Comparison at shearer.org
Sendmail is a different (and much older) program from Postfix. However for every mail server to succeed in the Unix environment, a sendmail binary (with some of the expected command line options) must be provided.
EDIT: See for example the manual page for the sendmail program provided by Postfix
Sendmail and Postfix are indeed both Mail Transfer Agents (MTAs).
Postfix is quite a bit easier for a new admin to set up, and has some nice features that integrate well with the mail store end of the process (Cyrus POP/IMAP, Dovecot, etc.).
If you're not actually going to be accepting email incoming into that box and it's getting forwarded to another system, something lighter such as Exim may be a better choice.
Source: https://linuxhint.com/postfix_vs_sendmail/