Sendmail Configurations

Related | Filtering | Utilities | Requests for Comments (RFC) | Books

The following Sendmail configurations demonstrate the /etc/mail files necessary for sendmail to operate in various roles. The configurations suit low-volume mail sites, enable various anti-spam and security features by default, and include sample SMTP AUTH and STARTTLS settings.

To determine the version of sendmail installed on a system, run the following command. Some systems install sendmail as /usr/lib/sendmail.

$ /usr/sbin/sendmail -d0 < /dev/null | grep -i version
Version 8.13.2

Consult the INSTALL file in the tarballs below for setup instructions, or look around under the config directory to see the tarball contents. Running Sendmail 8.12 or higher is recommended due to speed and feature enhancements such as PIPELINING and MILTER.

I have used these configurations on FreeBSD, Linux, Mac OS X, OpenBSD, and Solaris with various amounts of tweaking. The make(1) and m4(1) commands will need to be available on the system in question, along with the cf directory tree from the sendmail source for the version of sendmail in question (default location varies).

Notes for specific operating systems.

Feedback on these configurations is welcome. See also the #sendmail channel on the Freenode Internet Relay Chat (IRC) network.

Related

Working Domain Name System (DNS) services are essential for Internet connected systems.

Other material.

Filtering

Mail filtering tools. For more information on MILTER, visit milter.org.

Various anti-malware and anti-spam resources.

Utilities

Utility scripts for mail administration. For moving messages out of queues (e.g. stuck spam delivery status notifications or viruses), either use the queuegroup feature or the qtool.pl command available the contrib directory of the Sendmail source. The 8.12.9 release of Sendmail adds _FFR_QUEUERETURN_DSN, which can shorten the time spent trying to send delivery status notifications.

Requests for Comments (RFC)

Selected mail-related RFC.

Books

Dead tree publications of note.