Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Note: The official website could not be fetched this time, so the content below is based on publicly known, well-established information about Sendmail.
Overview
Sendmail is one of the earliest and most influential Mail Transfer Agents (MTAs). It was originally developed by Eric Allman at the University of California, Berkeley, and shipped with BSD Unix. For many years afterward, it was the default mail server on many Unix and Unix-like systems. Sendmail, Inc. was acquired by Proofpoint in 2013, and the open-source version of Sendmail is still maintained and released by Proofpoint.
Key Features
- SMTP mail transfer: Receives, relays and delivers email between mail servers.
- Flexible routing and rewriting rules: Handles address transformation and complex routing policies through the rewriting rules in
sendmail.cf. - m4 macro configuration: You typically write a
.mcmacro file and then use m4 to generatesendmail.cf, so you don't have to write the low-level rules by hand. - Milter interface: Milter, the mail filtering API that originated in Sendmail, lets you plug in external filters for anti-spam, antivirus, DKIM signing and more. It has since been widely adopted by other MTAs.
- Secure transport and authentication: Supports STARTTLS encrypted transport and SMTP AUTH authentication.
- Aliases and virtual domains: Supports mapping tables such as the aliases file, virtusertable and mailertable, used for multi-domain hosting and forwarding.
Target Users and Use Cases
- System administrators who need to run their own mail gateway or mail relay
- Operations teams maintaining traditional Unix/Linux infrastructure
- Companies or organizations that need highly customized mail routing rules
- Local mail delivery for applications and system notifications on servers
Core Strengths
- Mature and stable: Proven in production for decades, with good compatibility and plenty of documentation and community resources.
- Highly customizable: Rewriting rules and mapping tables can implement almost any routing logic.
- Broad ecosystem influence: The Milter mechanism comes with a large number of ready-made filtering components.
Installation and Deployment
Most Linux distributions and BSD systems let you install it with the package manager, for example:
# Debian / Ubuntu
sudo apt install sendmail
# RHEL / Fedora family
sudo dnf install sendmail sendmail-cf
You can also download the source code and compile it yourself. The usual configuration workflow is: edit /etc/mail/sendmail.mc, generate sendmail.cf with m4, then restart the service.
Technical Requirements
- A Unix or Unix-like operating system (Linux, BSD, Solaris, etc.)
- The m4 tool is required to generate the configuration
- If you provide mail service to the outside world, DNS must be configured correctly (MX, SPF and other records)
Notable Characteristics
- The configuration syntax is notoriously obscure, and the learning curve is steeper than that of newer MTAs such as Postfix and Exim.
- It has had quite a few security issues in the past, so keep it updated and tightly control relay permissions to avoid it being used as an open relay.
- Newly deployed systems often use Postfix or Exim instead, but Sendmail is still widely used in legacy environments.
Discover more
Asterisk
Easy to use but advanced IP PBX system, VoIP gateway and conference server.
Courier MTA
Fast, scalable, enterprise mail/groupware server providing ESMTP, IMAP, POP3, webmail, mailing list, basic web-based calendaring and scheduling services.
Dovecot
IMAP and POP3 server written primarily with security in mind.
Exim
Message transfer agent (MTA) developed at the University of Cambridge.
Kamailio
Modular SIP server (registrar/proxy/router/etc).
OpenSMTPD
Secure SMTP server implementation from the OpenBSD project.