[Mimedefang] Validate users before scanning?

Jan Pieter Cornet johnpc at xs4all.nl
Thu May 19 10:15:29 EDT 2005


On Thu, May 19, 2005 at 09:39:33AM -0400, David F. Skoll wrote:
> > Sendmail has two macros available: ${nbadrcpts} and ${nrcpts}, that
> 
> Well, it's mildly useful to know ${nbadrcpts} and ${nrcpts}, but you
> really need to know *which* recipient addresses are invalid, especially
> if you're using stream_by_recipient.  So being able to access those macros
> wouldn't be a complete solution.

Actually, it would be a solution :) If you see that ${nrcpts} has
incremented, then you know the PREVIOUS recipient that filter_recipient
saw, was accepted by sendmail.

Of course, this means that you'll have to check ${nrcpts} at every
xxfi_envrcpt() milter callback, and also at the xxfi_eom() callback.

> That being said, I can see how it would be useful to get at macros
> at various portions of the milter state machine, so I'll consider adding
> ways to do this.

I think you meant to say: "patches welcome", as is common in open source? :)

(I'm rather tied up now so I can't make a patch at this moment)

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