72

I have Postfix setup on my server so that I can send outgoing mail using the command-line:

mail -s "Subject" address@example.com
  1. Is this using Sendmail or Postfix ?
  2. Is "Sendmail" just a software category or a distinct program ?
  3. 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.

Chaminda Bandara
  • 547
  • 6
  • 17
Xeoncross
  • 4,269
  • 12
  • 42
  • 55

4 Answers4

56

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:

Postfix Summary Sendmail Summary

Exim Summary qmail Summary

And their comparison table:

MTA Suitability table

Source: shearer

For full comparison, check: MTA Comparison at shearer.org

kenorb
  • 5,943
  • 1
  • 44
  • 53
50

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

adamo
  • 6,867
  • 3
  • 29
  • 58
  • 5
    In another words, Postfix emulates Sendmail. – stepancheg Mar 07 '11 at 17:24
  • 1
    No it does not. It uses its own configuration files and does not understand sendmail.cf. – adamo Mar 07 '11 at 17:30
  • 29
    Postfix *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. – Phil Miller Mar 07 '11 at 17:45
  • Ok, 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 Mar 07 '11 at 17:57
10

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.

Magellan
  • 4,431
  • 3
  • 29
  • 53
  • 1
    I 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*. – Xeoncross Mar 07 '11 at 23:03
  • 3
    We 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. – Magellan Mar 10 '11 at 17:48
1

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.

Source: https://linuxhint.com/postfix_vs_sendmail/

Avatar
  • 127
  • 1
  • 10