Is Postfix the same thing as Sendmail?
Solution 1
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
Solution 2
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
Solution 3
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.
Solution 4
Architecture: The most common difference between these two is architecture. Postfix has a modular architecture composed of many independent small executables. It provides multiple options, parameters, and features. In contrast, Sendmail has a monolithic design that uses a single process always running at the backend.
Performance: Sendmail is not great in terms of its performance, making it a poor competitor. Postfix has a queue manager that handles the queuing much more quickly.
Related videos on Youtube
Xeoncross
PHP, Javascript, and Go Application developer responsible for over 50 open source projects and libraries at https://github.com/xeoncross By default I build Go backends with AngularJS frontends. Thanks to Ionic and Electron this even works for mobile and desktop apps. Bash, PHP, Python, Node.js, and random linux libraries are used for specific tasks because of the size of the ecosystems or libraries for odd jobs.
Updated on September 17, 2022Comments
-
Xeoncross almost 2 years
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.
-
stepancheg over 13 yearsIn another words, Postfix emulates Sendmail.
-
adamo over 13 yearsNo it does not. It uses its own configuration files and does not understand sendmail.cf.
-
uno over 13 yearsPostfix does emulate Sendmail's implementation of
sendmail
, the message submission program. Other than that, they serve the same purpose, but accomplish it by rather different means. -
Xeoncross over 13 yearsOk, so I can use most things that talk about requiring "sendmail" even though I have postfix setup because postfix has a mock-sendmail frontend script that handles everything. So my apps will never know it's not sendmail they are talking with.
-
Xeoncross over 13 yearsI would love to setup Exim if it is noticeably smaller - but there just isn't that much out there on it unless you already know what your doing.
-
Magellan over 13 yearsWe use Exim on the forwarding boxes because that's what Ubuntu installs by default with mailutils. Running
dpkg-reconfigure exim4-config
and 30 seconds of configuration work to point it at the mail server.