Skip to Main Content
Sendmail, 3rd Edition
book

Sendmail, 3rd Edition

by Bryan Costales
December 2002
Intermediate to advanced content levelIntermediate to advanced
1232 pages
56h 38m
English
O'Reilly Media, Inc.
Content preview from Sendmail, 3rd Edition

Basic Roles of sendmail

The sendmail program plays a variety of roles, all critical to the proper flow of electronic mail. It listens to the network for incoming mail, transports mail messages to other machines, and hands local mail to a local program for local delivery. It can append mail to files and pipe mail through other programs. It can queue mail for later delivery and understand the aliasing of one recipient name to another.

Role in the Filesystem

The sendmail program’s role (position) in the local filesystem hierarchy can be viewed as an inverted tree (see Figure 1-3).

The sendmail.cf file leads to everything else
Figure 1-3. The sendmail.cf file leads to everything else

When sendmail is run, it first reads the /etc/mail/sendmail.cf configuration file. Among the many items contained in that file are the locations of all the other files and directories that sendmail needs.

Files and directories listed in sendmail.cf are usually specified as full pathnames for security (such as /var/spool/mqueue rather than mqueue). As the first step in our tour of those files, run the following command to gather a list of them:[6]

% grep =/ /etc/mail/sendmail.cf

The output produced by the grep(1) command might look something like the following:[7]

O AliasFile=/etc/mail/aliases #O ErrorHeader=/etc/mail/error-header O HelpFile=/etc/mail/helpfile O QueueDirectory=/var/spool/mqueues/q.* O StatusFile=/etc/mail/statistics #O UserDatabaseSpec=/etc/mail/userdb ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

sendmail, 4th Edition

sendmail, 4th Edition

Bryan Costales, Claus Assmann, George Jansen, Gregory Neil Shapiro
Postfix

Postfix

Richard Blum
Internet Forensics

Internet Forensics

Robert Jones

Publisher Resources

ISBN: 1565928393Errata Page