Pitfalls
Macros that are given values while sendmail processes mail might not get the value expected. If that happens, careful hand-tracing of rule sets is required to find the fault.[11] For example, the value in
$g($g) is the result of sender address rewriting and rewriting by the rule set that is specified in theS=equate of the selected delivery agent. Because$gis used to define theFrom: header line, errors in that line should be traced through errors in theS=equate’s rule set.Macros can have other macros as their values. The sendmail program expands macros recursively. As a consequence, prior to V8.10, unintentional loops in macro definitions could cause sendmail to appear to hang and to eventually segmentation-fault and core-dump. Beginning with V8.10, such recursion is caught and the following error is printed:
configfile: line num: expand: recursion too deep (10 max)
[11] Although use of the
-d35.9,21.12 debugging command-line argument can
help.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access