Mail Administration Guide

sendmail Command-Line Arguments

Use command-line arguments on the /usr/lib/sendmail command line. Table B-1 describes these arguments.

Table B-1 sendmail Command-Line Arguments

Argument 

Description 

-Btype

Select the body type (7BIT or 8BITMIME). 

-bx

Set operation mode to x; operation modes are:

 

 

a

Run in ARPANET mode. 

 

 

d

Run as a daemon. 

 

 

i

Initialize the alias database. 

 

 

m

Deliver mail (default). 

 

 

p

Print the mail queue. 

 

 

s

Use SMTP on input side. 

 

 

t

Run in test mode. 

 

 

v

Just verify recipients. 

-Cfile

Use a different configuration file. 

-dlevel

Set debugging level. 

-Fname

Set the full name of this user to name.

-fname

An obsolete form of -r.

-hcnt

Set the "hop count" to cnt. It sets the number of times this message has been processed by sendmail (to the extent that it is supported by the underlying networks). cnt is incremented during processing, and if it reaches the value of configuration option -h, sendmail returns the message with an error.

-Mid

Attempt to deliver the queued with the message-id id.

-n

Do not do aliasing or forwarding. 

-oxvalue

Set configuration option x to the specified value.

-pprotocol

Set the sending protocol; you can enter the protocol field as protocol:host to set both the protocol and the sending host.

-qtime

Try to process the queued mail. If the time is given, sendmail repeatedly runs through the queue at the specified interval to deliver queued mail; otherwise, it runs only once.

-qXstring

Run the queue once, limiting the jobs to those matching Xstring; the letter X can be:

 

 

I

Limit based on queue indentifier (see -M).

 

 

x

Limit based on the recipient (see -R).

 

 

S

Limit based on the sender. 

-Rstring

Attempt to deliver any message with a recipient containing string.

-t

Read the header for To:, Cc:, and Bcc: lines, and send to everyone listed in the header. The Bcc: line is deleted before sending. Any names in the argument vector are deleted from the send list.

-v

Use verbose mode. 

-Xlogfile

Log all traffic in and out of sendmail in the indicated logfile.

"sendmail Configuration Options" describes the options.

You can specify several configuration options as primitive flags. These are the -c, -e, -i, -m, -T, and -v arguments. Also, you can specify the -f configuration option as the -s argument.