Sendmail: Theory and Practice, Second Edition

Appendix E: Internal Macro Names

The following macros [1] are defined and/or used internally by Sendmail for interpolation into argv's for mailers or for other contexts.

The ones marked are information passed into sendmail [2], the ones marked are information passed both in and out of sendmail, and the unmarked macros are passed out of sendmail but are not otherwise used internally. These macros are:

$a

The origination date in RFC 822 format. This is extracted from the Date: line.

$b

The current date in RFC 822 format.

$c

The hop count. This is a count of the number of Received: lines plus the value of the -h command line flag.

$d

The current date in UNIX (ctime) format.

$e

(Obsolete; use SmtpGreetingMessage option instead.) The SMTP entry message. This is printed out when SMTP starts up. The first word must be the $j macro as specified by RFC821. Defaults to $j Sendmail $v ready at $b. Commonly redefined to include the configuration version number, e.g., $j Sendmail $v/$Z ready at $b

$f

The envelope sender (from) address.

$g

The sender address relative to the recipient. For example, if $f is foo, $g will be host!foo, foo@host.domain, or whatever is appropriate for the receiving mailer.

$h

The recipient host. This is set in ruleset 0 from the $@ field of a parsed address.

$i

The queue id, e.g., HAA12345.

$j

The "official" domain name for this site. This is fully qualified if the...

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.