SMM:08-54
Sendmail Installation and Operation Guide
Sendmail can be compiled to allow a scanf(3) string on the F line. This lets you do simplistic
parsing of text files. For example, to read all the user names in your system /etc/passwd file into a
class, use
FL/etc/passwd %[^:]
which reads every line up to the first colon.
5.4. M -- Define Mailer
Programs and interfaces to mailers are defined in this line. The format is:
Mname
, {field=value }*
where name is the name of the mailer (used internally only) and the "field=name" pairs define
attributes of the mailer. Fields are:
Path
The pathname of the mailer
Flags
Special flags for this mailer
Sender
Rewriting set(s) for sender addresses
Recipient
Rewriting set(s) for recipient addresses
recipients
Maximum number of recipients per connection
Argv
An argument vector to pass to this mailer
Eol
The end-of-line string for this mailer
Maxsize
The maximum message length to this mailer
maxmessages
The maximum message deliveries per connection
Linelimit
The maximum line length in the message body
Directory
The working directory for the mailer
Userid
The default user and group id to run as
Nice
The nice(2) increment for the mailer
Charset
The default character set for 8-bit characters
Type
Type information for DSN diagnostics
Wait
The maximum time to wait for the mailer
Queuegroup
The default queue group for the mailer
/
The root directory for the mailer
Only the first character of the field name is checked (it's case-sensitive).
The following flags may be set in the mailer description. Any other flags may be used freely
to conditionally assign headers to messages destined for particular mailers. Flags marked with are
not interpreted by the sendmail binary; these are the conventionally used to correlate to the flags
portion of the H line. Flags marked with apply to the mailers for the sender address rather than
the usual recipient mailers.
a
Run Extended SMTP (ESMTP) protocol (defined in RFCs 1869, 1652, and 1870). This flag
defaults on if the SMTP greeting message includes the word "ESMTP".
A
Look up the user part of the address in the alias database. Normally this is only set for local
mailers.
b
Force a blank line on the end of a message. This is intended to work around some stupid ver-
sions of /bin/mail that require a blank line, but do not provide it themselves. It would not nor-
mally be used on network mail.
B
Strip leading backslashes (\) off of the address; this is a subset of the functionality of the s flag.
c
Do not include comments in addresses. This should only be used if you have to work around a
remote mailer that gets confused by comments. This strips addresses of the form "Phrase
<address>" or "address (Comment)" down to just "address".
C If mail
is received from a mailer with this flag set, any addresses in the header that do not have
an at sign ("@") after being rewritten by ruleset three will have the "@domain" clause from