Name

sendmail

Synopsis

sendmail [flags] [address...]

System administration command. sendmail is a mail transfer agent (MTA) or, more simply, a mail router. It accepts mail from a user’s mail program, interprets the mail address, rewrites the address into the proper form for the delivery program, and routes the mail to the correct delivery program.

Command-line flags

--

End of options marker. Only addresses should follow this option.

-Ac

Use local submission configuration file /etc/mail/submit.cf, even when no mail is sent from the command line.

-Am

Use configuration file /etc/mail/sendmail.cf, even when mail is sent from the command line.

-Btype

Set message body type. Accepted values are 7BIT and 8BITMIME.

-bx

Set operation mode to x. Operation modes are:

a

Run in ARPAnet mode.

d

Run as a daemon.

D

Run as a daemon, but remain in the foreground.

h

Print persistent host status information.

H

Purge expired entries from persistent host status information.

i

Initialize the alias database.

m

Deliver mail (the default).

p

Print the mail queue.

s

Speak SMTP on input side.

t

Run in test mode.

v

Verify addresses; do not collect or deliver.

-C file

Use configuration file file.

-d level

Set debugging level.

-D file

Send debugging output to file instead of stdout.

-f name

Sender’s name is name.

-F name

Set full name of user to name.

-G

Relay message submission. Used by rmail.

-h cnt

Set hop count (number of times message has been processed by sendmail) to cnt.

-i

Do not interpret dots on a line by themselves as a message terminator.

-L identifier ...

Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.