Macros with the m4 Technique
The various features of the m4 technique use uppercase single-character macro names. The complete list of them is shown in Table 31.5. Some of these are defined by using the appropriate define
m4 command (see below). Others are predefined for you by the m4 technique. See the appropriate section reference for a full description of how to use each macro.
Macro | Description | |
---|---|---|
$B
| $B | The BITNET relay |
$C
| $C | The hostname of the DECnet relay |
$E
| $E | relay (unused) |
$F
| $F | FAX relay |
$H
| $H | The mail hub |
$L
| $L | Unknown Local User relay |
$M
| $M | Who we are masquerading as |
$R
| $R | The relay for unqualified names (deprecated) |
$S
| $S | The Smart Host |
$U
| $U | The UUCP name to override $k |
$V
| $V | The UUCP relay (for class $=V )
|
$W
| $W | The UUCP relay (for class $=W )
|
$X
| $X | The UUCP relay (for class $=X )
|
$Y
| $Y | The UUCP relay for unclassified hosts |
$Z
| $Z | The version of this m4 configuration |
A few m4 macros can be defined by using the m4 define
command. For example, here is how you define the BITNET relay with the BITNET_RELAY keyword:
define(`BITNET_RELAY', `host.domain
')dnl
See Table 31.6 for a list of those m4 macros that can be defined. The leftmost column in that table shows the keyword to use.
name | Macro | Description | |
---|---|---|---|
BITNET_RELAY | $B
| The BITNET relay | |
confCF_VERSION | $Z
| The version of this m4 configuration | |
confDOMAIN_NAME | $j
| Official canonical name | |
confMAILER_NAME | $n
| Error message sender | |
FAX_RELAY | $F
| FAX relay | |
LUSER_RELAY | $L
| Local user relay | |
MAIL_HUB | $H
| The mail hub |