Mail Administration Guide

Mailer Flags

Table B-3 describes the flags that you can set in the mailer description.

Table B-3 sendmail Flags Set in the Mailer Description

Flag 

Description 

-a

Run Extended SMTP protocol. 

-b

Force a blank line at the end of a message. 

-C

Append the @domain clause from the sender to any names in the header that do not have an at sign (@) after being rewritten by rule set 3. This option is not recommended. This flag allows mail with headers with this form:

 

From: user1@local

To: user2, user3@remote

 

to be automatically rewritten as: 

 

From: user1@local

To: user2@local, user3@remote

-c

Do not include comments in addresses. 

-D

Look for a Date: header line.

-E

Escape From lines to be >From (usually specified with -U).

-e

Avoid connecting to this mailer, which is expensive, normally; any necessary connection occurs during a queue run. 

-F

Look for a From: header line.

-f

Look for an -f from flag, but only if this is a network forward operation (that is, the mailer gives an error if the executing user does not have special permissions).

-g

Send error messages from the MAILER-DAEMON instead of using the null return address.

-h

Preserve uppercase in host names for this mailer. 

-I

Select SMTP when contacting another sendmail.

-L

Limit the line lengths as specified in RFC 821. 

-l

Perform final delivery because this mailer is local. 

-M

Look for a Message-Id: header line.

-m

Enable the mailer to send a message to multiple users on the same host in one transaction. When a $u macro occurs in the argv part of the mailer definition, that field is repeated as necessary for all qualifying users. The L= field of the mailer description can be used to limit the total length of the $u expansion.

-n

Do not insert a UNIX-style From line on the front of the message.

-P

Look for a Return-Path: line.

-p

Always add local host name to the MAIL From: line of SMTP, even if there already is one.

-r

Send an -r flag. Performs the same function as -f.

-S

Do not reset the user ID before calling the mailer. This flag would be used in a secure environment where sendmail ran as root. This flag could be used to avoid forged names.

-s

Strip quote characters from the name before calling the mailer. 

-U

Look for UNIX-style From lines with the UUCP-style remote from <host> on the end.

-u

Preserve uppercase in user names for this mailer. 

-X

Use the hidden dot algorithm as specified in RFC 821; basically, any line beginning with a dot will have an extra dot appended (to be stripped at the other end). This flag ensures that lines in the message containing a dot do not terminate the message prematurely. 

-x

Look for a Full-Name: header line.

-7

Strip output to 7 bits.