Re: Sendmail Milter Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Oh, found it.
#### README.libmilter

Which filters are invoked and their sequencing is handled by the
InputMailFilters option. Note: if InputMailFilters is not defined no filters
will be used.

        O InputMailFilters=filter1, filter2, filter3

This is is set automatically according to the order of the
INPUT_MAIL_FILTER commands in your .mc file.  Alternatively, you can
reset its value by setting confINPUT_MAIL_FILTERS in your .mc file.
This options causes the three filters to be called in the same order
they were specified.  It allows for possible future filtering on output
(although this is not intended for this release).

Also note that a filter can be defined without adding it to the input
filter list by using MAIL_FILTER() instead of INPUT_MAIL_FILTER() in your
.mc file.

Yang

On Fri, 22 Oct 2004 10:40:25 -0400, Yang Xiao <yxiao2004@xxxxxxxxx> wrote:
> Hi guys,
> Is it possible to use multiple milters with sendmail? and if so, what
> determines the order they are applied?
> 
> ie.
> 
> include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
> VERSIONID(`@(#)ohpp')dnl
> OSTYPE(linux)dnl
> FEATURE(nocanonify)dnl
> MASQUERADE_AS(ohpp.com)dnl
> FEATURE(allmasquerade)dnl
> dnl Milter
> dnl APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER')
> define(`MAIL_HUB', `mail.domain.com')dnl
> define(`SMART_HOST', `mail.domain.com')dnl
> define(`confFORWARD_PATH', `')dnl
> define(`STATUS_FILE', `/var/log/mail/statistics')dnl
> define(`UUCP_MAILER_MAX', `2000000')dnl
> FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
> dnl SpamAssassin Milter
> 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
> define(`confINPUT_MAIL_FILTERS', `clmilter')dnl
> dnl FEATURE(always_add_domain)dnl
> FEATURE(use_cw_file)dnl
> FEATURE(use_ct_file)dnl
> EXPOSED_USER(`root')dnl
> MAILER(smtp)dnl
> 
> many thanks,
> Yang
>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux