Sendmail Milter Question

Alexander Dalloz alexander.dalloz at uni-bielefeld.de
Fri Oct 22 14:53:09 UTC 2004


Am Fr, den 22.10.2004 schrieb Yang Xiao um 16:40:

> Is it possible to use multiple milters with sendmail? and if so, what
> determines the order they are applied?

Yes, sure it is possible and no problem. The order they are called by
Sendmail is determined by either the simple order in the sendmail.cf
file (originated by the sendmail.mc file you created the .cf from) or by
an explicit definition of confINPUT_MAIL_FILTERS, like you use below.

> INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass.sock,
> F=,T=C:15m;S:4m;R:4m;E:10m')
> dnl ClamAV Milter
> INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clamd.sock, F=,
> T=S:4m;R:4m')dnl

From that "spamassassin" milter would come first and then the "clmilter"
milter.

> define(`confINPUT_MAIL_FILTERS', `clmilter')dnl

Due to this definition _only_ the "clmilter" milter will be used and the
"spamassassin" milter ommited.

From the Sendmail README:

"In general, INPUT_MAIL_FILTER() should be used unless you need to
define
more filters than you want to use for `confINPUT_MAIL_FILTERS'.
                                                                                                                                                                                         
Note that setting `confINPUT_MAIL_FILTERS' after any INPUT_MAIL_FILTER()
commands will clear the list created by the prior INPUT_MAIL_FILTER()
commands."

> Yang

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 2 (Tettnang) kernel 2.6.8-1.521smp 
Serendipity 16:47:52 up 2 days, 13:27, load average: 1.69, 1.51, 1.40 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20041022/4d106bea/attachment-0001.sig>


More information about the fedora-list mailing list