On Tue, Aug 31, 2004 at 01:16:05PM -0400, William F. Dudley Jr. wrote:
> To follow up with the answer to my own post:
>
> You need to have a line like this:
> define(`confINPUT_MAIL_FILTERS', `greylist,clmilter')dnl
>
> in your sendmail.mc (or equivalent). I have two milters installed,
> but the line above only had clmilter listed, so that was the
> only one that ran. Once I modified to look like above,
> now both milters are running.
INPUT_MAIL_FILTER(`milter-greylist', `S=local:/var/milter-greylist/milter-greylist.sock, T=S:4m;R:4m')dnl
INPUT_MAIL_FILTER(`mimedefang', `S=local:/var/spool/MIMEDefang/mimedefang.sock, F=T, T=S:6m;R:6m;E:15m')dnl
works for me...
the sendmail cf readme says:
----
For example, the two commands:
INPUT_MAIL_FILTER(`archive', `S=local:/var/run/archivesock, F=R')
INPUT_MAIL_FILTER(`spamcheck', `S=inet:2525@localhost, F=T')
are equivalent to the three commands:
MAIL_FILTER(`archive', `S=local:/var/run/archivesock, F=R')
MAIL_FILTER(`spamcheck', `S=inet:2525@localhost, F=T')
define(`confINPUT_MAIL_FILTERS', `archive, spamcheck')
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.
----
>
> Here's the entire excerpt from my .mc file for both milters:
>
> --------------------- from my sendmail.mc ---------------------------
> define(`confMILTER_LOG_LEVEL', 14)dnl
>
> INPUT_MAIL_FILTER(`greylist', `S=local:/var/milter-greylist/milter-greylist.sock')dnl
> define(`confMILTER_MACROS_CONNECT', `j, {if_addr}')dnl
> define(`confMILTER_MACROS_HELO', `{verify}, {cert_subject}')dnl
> define(`confMILTER_MACROS_ENVFROM', `i, {auth_authen}')dnl
>
> INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock,F=, T=S:4m;R:4m')dnl
>
> define(`confINPUT_MAIL_FILTERS', `greylist,clmilter')dnl
> ------------------ end of excerpt from my sendmail.mc ----------------
So the problem was the last line, which was clearing the greylist entry
from the milter list (until you added the greylist part).
You only need the `confINPUT_MAIL_FILTERS' bit when using MAIL_FILTER
entries, not INPUT_MAIL_FILTER.
So in summary, remove the last line and things should work as desired.
GrahamMessage
Re: [milter-greylist] Re: FreeBSD install from pkg; is it running? -- yes, now
2004-08-31 by Graham Dunn
Attachments
- No local attachments were found for this message.