Skip to Main Content
sendmail 8.13 Companion
book

sendmail 8.13 Companion

by Bryan Costales, George Jansen, Claus Assmann, Gregory Neil Shapiro
September 2004
Intermediate to advanced content levelIntermediate to advanced
192 pages
10h 12m
English
O'Reilly Media, Inc.
Content preview from sendmail 8.13 Companion

Useful Tables

There are two tables of interest for handling the sendmail command line:

  • Table 15-1 shows the alternate names that sendmail will run under and the effect of each.

  • Table 15-2 shows the command-line switches used by sendmail and describes the effect of each.

Alternative argv[0] Names

The sendmail program can exist in any of several places, depending on the version of the operating system you are running. Usually, it is located in the /usr/sbin directory and is called sendmail,[21] but it can also be located in the /etc, /usr/lib, /usr/libexec, or /usr/etc directories. The location of the sendmail program can be found by examining the /etc/rc files for BSD Unix or the /etc/init.d files for Sys V Unix (§1.6.11[3ed]). Also, on some BSD-derived systems, the mailwrapper program and its /etc/mail/mailer.conf file define where sendmail is located.

In addition to the name sendmail, other names (in other directories) can exist that alter the behavior of sendmail. Those alternative names are usually symbolic links to /usr/sbin/sendmail. On some systems, they can be hard links, and in rare cases, you might actually find them to be copies. The complete list of other names is shown in Table 15-1.

Table 15-1. Alternative names for sendmail

Name

sendmail text reference

Mode of operation

hoststat

15.1.1[3ed]

Print persistent host status (V8.8 and later)

mailq

15.1.2[3ed]

Print the queue contents

newaliases

15.1.3[3ed]

Rebuild the aliases file

purgestat

15.1.4[3ed] ...

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

Slamming Spam: A Guide for System Administrators

Slamming Spam: A Guide for System Administrators

Dale Nielsen, Robert Haskins
Mac OS X Tiger in a Nutshell

Mac OS X Tiger in a Nutshell

Andy Lester, Chris Stone, Chuck Toporek, Jason McIntosh

Publisher Resources

ISBN: 0596008457Catalog PageErrata