Chapter 21. The D (Define a Macro) Configuration CommandThe sendmail program supports three flavors of macros: class macros (Chapter 22) are used to represent multiple values; database-map macros (Chapter 23) represent values stored in external files or networked maps; and defined macros represent values stored in the internal symbol table. Defined macros also come in three flavors. The m4 compile-time macros (Section 3.2) are used when building the sendmail program and its companion programs. The mc configuration macros (Section 4.3) are used when converting an mc file into a sendmail configuration file. In this chapter we discuss the third approach, sendmail macros, which allow strings of text to be represented symbolically inside a sendmail configuration file. Defined sendmail macros can be declared (given names and assigned the strings of text that will become values) at five different times:
Defined sendmail macros can be used in any configuration-file command. Generally, they are expanded (their value is used) when mail is sent or received. |