Previous Table of Contents Next


Configuration Options

You can set the options shown in Table 4-11 using either the -o flag on the command line or the O line in the configuration file.

Table 4-11 Configuration Options for sendmail

Option Description
Afile Use the named file as the alias file instead of /etc/mail/aliases. If no file is specified, use aliases in the current directory.
Atime If set, time to wait for an @:@ entry to exist in the Aliases database before starting up. If it does not appear after that time, rebuild the database.
Bvalue Blank substitute. Default is the dot (.) character.
bn Disallow empty messages to more than n recipients.
c If an outgoing mailer is marked as being expensive, do not connect immediately. A queue process must be run to actually send the mail.
cn Checkpoint after n recipients.
D If set, rebuild the Aliases database if necessary and possible. If this option is not set, sendmail never rebuilds the Aliases database unless explicitly requested using -bi.
dx Deliver in mode x. Legal modes are
i Deliver interactively (synchronously).
b Deliver in background (asynchronously).
q Just queue the message (deliver during queue run).
ex Dispose of errors using mode x. The values for x are
p Print error messages (default).
q No messages, just give exit status.
m Mail back errors to sender.
w Write back errors (mail if user is not logged in).
e Mail back errors and give zero exit status always.
f Save UNIX-style From lines at the front of headers. Normally, they are assumed redundant and are discarded.
Fn The temporary queue file mode, in Octal. Good choices are 644 (rw-r--r--) and 600 (rw-------).
gn Set the default group ID for mailers to run in to n.
Hfile Specify the help file for SMTP [Postel82].
hn Set maximum hop count to n.
i Ignore dots in incoming messages.
Ln Set the default log level to n.
m Send to me too, even if I am in an alias expansion.
Mxvalue Set the macro x to value. This is intended for use only from the command line.
o Assume that the headers may be in old format; that is, spaces delimit names. This flag actually turns on an adaptive algorithm. If any recipient name contains a comma, parentheses, or angle brackets, it is assumed that commas already exist. If this flag is not on, only commas delimit names. Headers are always output with commas between the names.
Pname The name of the local postmaster. If defined, error messages from the MAILER-DAEMON send the header to this name.
Qdir Use the directory named in the dir variable as the queue directory.
qlimit Size limit of messages to be queued under heavy load. Default is 10,000 bytes.
Rserver Remote mode. Deliver through remote SMTP server. Default is location of /var/mail.
rtime Timeout reads after time interval.
s Be super-safe when running things; that is, always create the queue file, even if you are going to try immediate delivery. The sendmail program always creates the queue file before returning control to the client under any circumstances.
Sfile Save statistics in the named file.
Ttime Set the queue timeout to time. After this interval, messages that have not been sent successfully are returned to the sender.
un Set the default user ID for mailers to n. Mailers without the S flag in the mailer definition run as this user.
v Run in verbose mode.
Xn Set the load average value so that the sendmail daemon refuses incoming SMTP connections to reduce system load. Default is zero, which disables this feature.
xn Set the load average value so that sendmail simply queues mail (regardless of the dxoption) to reduce system load. Default is zero, which disables this feature.
yn Recipient factor. Lower the delivery priority of messages with the specified number of bytes per recipient.
Yname NIS map name to be used for aliases. Default is mail.aliases.
Zn Time factor. Lower the delivery priority of messages with the specified number of bytes per delivery attempts.
zn Message class factor. Lower the delivery priority of messages with the specified number of bytes per class.


Previous Table of Contents Next