A Useful Table

The sendmail program reserves all lowercase letters, punctuation characters, and digits for its own use. For multi-character names, it reserves all those that begin with an underscore or a lowercase letter. Table 21-1 lists all the macro names that have special internal meaning to sendmail. Included in this list are macros that are used by the mc configuration technique.[29]

Table 21-1. Reserved macros

Macro

sendmail text reference

Description

$_

21.9.1[3ed]

RFC1413-validation and IP source route

$a

21.9.2[3ed]

The origin date in RFC822 format

${addr_type}

21.9.3[3ed]

Is address recipient/sender or header/envelope?

${alg_bits}

21.9.4[3ed]

The number of bits in the TLS cipher

${auth_authen}

21.9.5[3ed]

RFC2554 SASL AUTH credentials

${auth_author}

21.9.6[3ed]

RFC2554 SASL AUTH= parameter

${auth_ssf}

21.9.7[3ed]

SASL AUTH encryption key length

${auth_type}

21.9.8[3ed]

SASL Authentication mechanism used

$b

21.9.9[3ed]

The current date in RFC2822 format

${bodytype}

21.9.10[3ed]

The ESMTP (Extended SMTP) BODY parameter

$B

21.9.11[3ed]

The BITNET relay (mc configuration, deprecated)

$c

21.9.12[3ed]

The hop count

${cert_issuer}

21.9.13[3ed]

Distinguished name of certificate signer

${cert_md5}

21.9.14[3ed]

MD5 of cert certificate

${cert_subject}

21.9.15[3ed]

The cert subject

${cipher}

21.9.16[3ed]

Cipher suite used for connection

${cipher_bits}

21.9.17[3ed]

TLS encryption key length

${client_addr}

21.9.18[3ed]

The connecting host’s IP address

${client_connections}

Section 21.1.2 [V8.13]

Current count of client connections

${client_flags}

21.9.19[3ed]

Flags for tuning the outgoing connection

${client_name}

21.9.20[3ed]

The connecting host’s canonical name

${client_port}

21.9.21[3ed]

The connecting host’s port number

${client_ptr}

Section 21.1.3 [V8.13]

Result of looking up the connecting host’s IP number

${client_rate}

Section 21.1.4 [V8.13]

The current client connection rate

${client_resolve}

21.9.22[3ed]

Result of lookup of ${client_name}

${cn_issuer}

21.9.23[3ed]

Common name of certificate signer

${cn_subject}

21.9.24[3ed]

Common name of certificate

${currHeader}

21.9.25[3ed]

Current header’s value

$C

21.9.26[3ed]

The DECnet relay (mc configuration)

$d

21.9.27[3ed]

The current date in Unix ctime(3) format

${daemon_addr}

21.9.28[3ed]

Listening daemon’s address

${daemon_family}

21.9.29[3ed]

Listening daemon’s family

${daemon_flags}

21.9.30[3ed]

Listening daemon’s flags

${daemon_info}

21.9.31[3ed]

Listening daemon’s syslog information

${daemon_name}

21.9.32[3ed]

Listening daemon’s name

${daemon_port}

21.9.33[3ed]

Listening daemon’s port

${deliveryMode}

21.9.34[3ed]

The current delivery mode

${dsn_envid}

21.9.35[3ed]

The DSN ENVID= value

${dsn_notify}

21.9.36[3ed]

The DSN NOTIFY= value

${dsn_ret}

21.9.37[3ed]

The DSN RET= value

$e

24.9.105[3ed]

The SMTP greeting message

${envid}

21.9.40[3ed]

The original DSN envelope ID

$E

21.9.41[3ed]

The X.400 relay (unused) (mc configuration)

$f

21.9.42[3ed]

The sender’s address

$F

21.9.43[3ed]

The fax relay (mc configuration)

$g

21.9.44[3ed]

The sender’s address relative to recipient

$h

21.9.45[3ed]

Host part of the delivery agent triple

${hdr_name}

21.9.46[3ed]

The current header’s name

${hdrlen}

21.9.47[3ed]

The length of ${currHeader}

$H

21.9.48[3ed]

The mail hub (mc configuration)

$i

21.9.49[3ed]

The queue identifier

${if_addr}

21.9.50[3ed]

The IP address of the receive interface

${if_addr_out}

21.9.51[3ed]

The IP address of the send interface

${if_family}

21.9.52[3ed]

The network family of the receive interface

${if_family_out}

21.9.53[3ed]

The network family of the send interface

${if_name}

21.9.54[3ed]

The name of the receive interface

${if_name_out}

21.9.55[3ed]

The name of the send interface

$j

21.9.56[3ed]

Official canonical name

$k

21.9.57[3ed]

UUCP node name

$l

24.9.114[3ed]

The Unix From format

${load_avg}

21.9.59[3ed]

The current load average

$L

21.9.60[3ed]

The unknown local user relay (mc configuration)

$m

21.9.61[3ed]

The DNS domain name

${mail_addr}

21.9.62[3ed]

Saved $: value for MAIL FROM: triple

${mail_host}

21.9.63[3ed]

Saved $@ value for MAIL FROM: triple

${mail_mailer}

21.9.64[3ed]

Saved $# value for MAIL FROM: triple

${msg_id}

Section 21.1.5 [V8.13]

Value of the Message-Id: header

${msg_size}

21.9.65[3ed]

Size of the current message

$M

21.9.66[3ed]

Whom we are masquerading as (mc configuration)

${MTAHost}

21.9.67[3ed]

Host for the msp feature

$n

21.9.68[3ed]

Error message sender

${nbadrcpts}

Section 21.1.6 [V8.13]

Count of the bad recipients in the current envelope

${nrcpts}

21.9.69[3ed]

Number of envelope recipients

${ntries}

21.9.70[3ed]

Number of delivery attempts

$o

24.9.77[3ed]

Token separation operators

${opMode}

21.9.72[3ed]

The start-up operating mode

$p

21.9.73[3ed]

The sendmail process ID

$q

21.9.74[3ed]

The default format of the sender’s address (obsolete)

${quarantine}

Section 21.1.7 [V8.13]

The reason the envelope was quarantined

${queue_interval}

21.9.75[3ed]

The interval specified by -q command-line switch

$r

21.9.76[3ed]

The protocol used

${rcpt_addr}

21.9.77[3ed]

Saved $: value for RCPT TO: triple

${rcpt_host}

21.9.78[3ed]

Saved $@ value for RCPT TO: triple

${rcpt_mailer}

21.9.79[3ed]

Saved $# value for RCPT TO: triple

$R

21.9.80[3ed]

The relay for unqualified names (mc configuration, deprecated)

$s

21.9.81[3ed]

The sender host’s name

${sendmailMTACluster}

21.9.82[3ed]

The LDAP cluster to use

${server_addr}

21.9.83[3ed]

The address of the connected-to machine

${server_name}

21.9.84[3ed]

The hostname of the connected-to machine

$S

21.9.85[3ed]

The smart host (mc configuration)

$t

21.9.86[3ed]

The current time to the minute in the format YYYYMMDDhhmm

${time}

Section 21.1.8 [V8.13]

The current time in time(3) seconds

${total_rate}

Section 21.1.9 [V8.13]

Total connections over the specified interval

${tls_version}

21.9.87[3ed]

TLS/Secure Sockets Layer (SSL) version

$u

21.9.88[3ed]

Address part of a delivery agent triple

$U

21.9.89[3ed]

The UUCP name to override $k (mc configuration)

$v

21.9.90[3ed]

Version of the sendmail

${verify}

21.9.91[3ed]

Result of cert verification

$V

21.9.92[3ed]

The UUCP relay for class $=V (mc configuration)

$w

21.9.93[3ed]

The short name of this host

$W

21.9.94[3ed]

The UUCP relay for class $=W (mc configuration)

$x

21.9.95[3ed]

The full name of the sender

$X

21.9.96[3ed]

The UUCP relay for class $=X (mc configuration)

$y

21.9.97[3ed]

Name of the controlling TTY

$Y

21.9.98[3ed]

The UUCP relay for unclassified hosts (mc configuration)

$z

21.9.99[3ed]

The recipient’s home directory

$Z

21.9.100[3ed]

Version of the mc configuration (mc configuration)



[29] Note that these are the exception to the usual rule in that they are all uppercase letters. This makes sense because these macros are being used by the configuration file, rather than the internals of the sendmail program.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.53.5