MASQUERADE_EXCEPTION_FILE mc Macro
If you have many exceptions defined with the MASQUERADE_EXCEPTION mc configuration macro, you can store them in a single file—say, donotmasq—and read that file using the MASQUERADE_EXCEPTION_FILE mc macro:
MASQUERADE_EXCEPTION_FILE(`/etc/mail/donotmasq') ← V8.12 and later
Essentially, all that MASQUERADE_EXCEPTION_FILE does
is read the external file using the F
configuration command.
As a consequence, you can add an F
-style argument to its
declaration:
MASQUERADE_EXCEPTION_FILE(`-o /etc/mail/donotmasq') ← V8.12 and later
Here, we added a -o
to make the existence of the file optional.
Note that the file specified with MASQUERADE_EXCEPTION_FILE is read only once, when sendmail first starts.
Get sendmail, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.