Sendmail 8.13.3 Programmer's Guide

Configuring and Compiling Milter APIs
Configuring Milter in Sendmail
Chapter 4 61
Run the following command to generate the configuration file,
myconfig.cf:
m4 ../m4/cf.m4 myconfig.mc > myconfig.cf
These macros add the following entries to your Sendmail configuration
file (sendmail.cf):
Xfilter1, S=unix:/var/run/f1.sock, F=R
Xfilter2, S=unix:/var/run/f2.sock, F=T, T=S:1s;R:1s;E:5m
Xfilter3, S=inet:999@localhost, T=C:2m
O InputMailFilters=filter2,filter1,filter3
By default, the filters run in the order defined in the .mc file. However,
because confINPUT_MAIL_FILTERS is defined, the filters are run in the
order “filter2, filter1, filter3”.
NOTE You can use the MAIL_FILTER() command, instead of the
INPUT_MAIL_FILTER() command, to define a filter without adding it to
the input filter list.