[Mimedefang] Order of the fuctions?

Jan Pieter Cornet johnpc at xs4all.nl
Mon Jun 20 18:05:06 EDT 2005


On Mon, Jun 20, 2005 at 08:17:10AM -0400, James Ebright wrote:
> The order of those three is also dependant on the "delay_checks" flag in sendmail.

No, the order of milter calls is most definately NOT dependent on the
FEATURE(`delay_checks') that you can set in the sendmail m4 configuration
file. The sendmail.cf file processing and milter processing are reasonably
independent (except that an early abort during parsing will skip milter
calls, see one of my earlier mails).

That feature rearranges certain (customized via m4) ruleset calls, so your
access.db or FEATURE(`dnsbl') results are available after RCPT To.

This has _no_ effect on the milter calls, however, and milters (like
mimedefang) can still reject directly at connect time, at MAIL From:
time, or at RCPT To time as it chooses (or at HELO time if mimedefang
supported it and it was relatively bugfree in sendmail).

To get the effect of `delay_checks' in mimedefang, you'd have to
maintain the "reject" state (usually in a file in $CWD) until the
call to filter_recipient, and reject there. Setting the "m4" config
feature `delay_checks' has NO effect on the milter, and thus on MIMEDefang.

-- 
#!perl -wpl # mmfppfmpmmpp mmpffm <pmmppfmfpppppfmmmf at fpffmm4mmmpmfpmf.ppppmf>
$p=3-2*/[^\W\dmpf_]/i;s.[a-z]{$p}.vec($f=join('',$p-1?chr(sub{$_[0]*9+$_[1]*3+
$_[2]}->(map{/p|f/i+/f/i}split//,$&)+97):qw(m p f)[map{((ord$&)%32-1)/$_%3}(9,
3,1)]),5,1)='`'lt$&;$f.eig;                                # Jan-Pieter Cornet



More information about the MIMEDefang mailing list