DaemonPortOptions=InputFilter=

The sendmail program can run in two connection modes: as a daemon, accepting connections; or as a client, making connections. Each mode connects to a port to do its work. The tuning for the client port is set by the ClientPortOptions option (ClientPortOptions on page 986). The tuning for the daemon is set by the DaemonPortOptions option (DaemonPortOptions on page 993). The format for declaring the DaemonPortOptions option in the mc configuration file looks like this:

DAEMON_OPTIONS(``pair,pair,pair'')

The list of pair items must be enclosed in two pairs of single quotes pairs because the list contains commas. Each pair is an equate of the form:

item=value

The new (as of V8.13) InputMailFilters= equate is used to list the Milters that should be called, and the order in which they must be called. This list overrides the setting of the InputMailFilters option and, indeed, may contain Milters not declared in that option. This InputMailFilters= equate lists one or more Milters, each separated from the next by a semicolon (not a comma):

DAEMON_OPTIONS(``N=inMTA, I=milterA;milterB'')

Note, as with all DaemonPortOptions option items, the first character of each is all that is needed. That is, both of the following produce the same effect:

I=milterA;milterB
InputMailFilters=milterA;milterB

This item can be useful when you have multiple network interfaces. One interface, for example, might be connected only to the internal network where a Milter records all outbound ...

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.