[Mimedefang] Validate users before scanning?

Jan Pieter Cornet johnpc at xs4all.nl
Mon May 23 03:27:09 EDT 2005


On Sat, May 21, 2005 at 02:39:25AM -0700, John Nemeth wrote:
> } Hm, you can from within milter, but not in mimedefang, unfortunately.
> } Sendmail has two macros available: ${nbadrcpts} and ${nrcpts}, that
> } contain the values you are looking for. However, mimedefang currently
> } has no way to extract these macro's before calling filter_begin.
> 
>      Assuming, sendmail has the macro set at the appropriate time, you
> can get it.  I.e., my sendmail.mc has:
> 
> define(`confMILTER_MACROS_ENVFROM', confMILTER_MACROS_ENVFROM`, {msg_size}')

"at the appropriate time" is precisely the point. The macros in
mimedefang are (currently) passed after the "MAIL From:" stage in the
SMTP conversation (as is obvious from the above definition), so at that
moment the number of recipients is obviously unknown.

-- 
#!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