Sendmail: Theory and Practice, Second Edition

Appendix A: Command Line Arguments

Arguments may be passed to Sendmail on the command line. Arguments must be presented with flags before addresses. The flags [1] are:

-b x

Set operation mode to x. Operation modes are:

m

Deliver mail (default)

s

Speak SMTP on input side

a [a]

"Arpanet" mode (get envelope sender information from header)

d

Run as a daemon in background

D

Run as a daemon in foreground

t

Run in test mode

v

Just verify addresses, don't collect or deliver

i

Initialize the alias database

p

Print the mail queue

h

Print the persistent host status database

H

Purge expired entries from the persistent host status database

-B type

Indicate body type.

-C file

Use a different configuration file. Sendmail runs as the invoking user (rather than root) when this flag is specified.

-d level

Set debugging level.

-f addr

The envelope sender address is set to addr. This address may also be used in the From: header if that header is missing during initial submission. The envelope sender address is used as the recipient for delivery status notifications and may also appear in a Return-Path: header.

-F name

Sets the full name of this user to name.

-G

When accepting messages via the command line, indicate that they are for relay (gateway) submission. Sendmail may complain about syntactically invalid...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Anti-spam Software
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.