Command line options
-1 Disable SMTP piggybacking (equivalent to -R1)
-A Try T_ANY query first to get MX list from DNS
-a alias Alias for the host (can be specified multiple times)
-b size TCP send buffer size (Default: system default)
-c name FQDN of the host (used as HELO parameter of SMTP)
(default is obtained by gethostname(2))
-d debugopt Debug options (specify like: "acel")
A: enable all debug options of small letter
a: address c: connection e: event h: hash
l: LMTP m: routing map n: DNS r: resolv
s: SMTP t: transaction u: resource
D: surpress delivery Q: DNS query only
-E Extract queueID information from "id" portion of Received:
header line inserted by sendmail. QueueID information will
be logged for enevy transactions even in runqueue processing.
-F Insert To: header field with envelope recipient address
when -1 option specified.
(Just for bounced address detection -- administrative use)
-F -F Modify envelope sender address like:
when -1 option specified. If you want to use this feature,
configure your mail server to receive such addresses.
You should see the item on -S option below.
-h Show help message
-I queue-id Equivalent to -i but no purge information on RSET state
-i queue-id Queue-id generated by sendmail just for logging information
(macro name for queue-id in sendmail.cf is $i.)
-l facility Logging facility (Default: local5)
-M mapfile Path of routing map file (Default: not defined)
syntax of routing map file:
DOMAIN DEST1:DEST2:... # comments
domain -- exact matching
.domain -- substring matching
hostname MX for hostname
[hostname] A for hostname
[IPaddress] IP address
MX MX for domain part of a mail address
MX? same as MX (skip to following dest.
even under DNS lookup failure)
A A for domain part of a mail address
=alias MX for an aliased mail address
# exact match
# substring match (true up the right side)
# aliasing (for BITNET routing in Japan)
# fallback MX style
# default configuration
-m fallbackmx Fallback MX host (Default: not defined)
destination when all MX do not respond or MX can not be
resolved by DNS.
-N domain Internet Domain (available with --enable-ipv6 configuration)
4: use IPv4 only, 6: use IPv6 only, B: use both of IPv4/IPv6
(default is B)
-n num Max socket number to be used (Default: (FD_SETSIZE-1).
Do not specify larger number than it. Sizes around "fd_set"
of your system should also be changed and re-compiled
if you want to set larger max socket number)
-o source-addr Source address for SMTP connection
(Default: an appropriate address will be dynamically assigned)
-p port Source port number for sender side of SMTP connection.
(Default: a free port will be dynamically assigned)
-R num Max number of recipients to be sent in a SMTP transaction
from SMTPfeed. (Default: 100)
-r num Minimum number of recipients not to reject delivery operation.
-S /path File path in which senders address listed. If -F or -F -F
option specified and envelope sender address is matched with
one of lists in the file, -1 option is specified automatically.
-S pattern Format to be used at envelope sender address conversion when
-F -F option specified. (Default: <%s+%s=%s@%s>)
-s size Max size of deliverable messages.
-t category=val Timeouts (default values are shown in ())
Numbers followed by 's' means 'in seconds', by 'm' means
'in minutes' and by 'h' means 'in hours'. default is 'm'.
total: total processing limit (55m)
it will be take "total + quit"
connect: till TCP connection establishment (5m)
greet: till get SMTP greeting message (5m)
helo: till get response for HELO (5m)
mail: till get response for MAIL (10m)
rcpt: till get response for RCPT (60m)
data: till get response for DATA (5m)
body: till send next datablock (20m)
term: till get response for DATA termination (60m)
cache: for idle SMTP connection (5m)
rset: till get response for RSET (5m)
quit: till get response for QUIT (2m)
-u Enable SMTP connection caching (default: off)
-V Insert version information on Received: header line
-y Refer A RR if this host is the first MX
-z Disable SMTP pipelining