[Mimedefang] Stream_by_recipient

Stefano McGhee SMcGhee at ARCweb.com
Mon Jan 6 13:29:01 EST 2003


Oy vay!  Complexity is not what I seek! :-)  Would it be easier to evaluate
the recipients array (@RECIPIENTS) for the spam wanting users in MD before
calling SA, but after calling stream_by_recipient and just pass the message
on?  This would effectively be an all or nothing SA solution (provided via
MD): either you get SA filtering or you don't.

Thanks for your guidance,

Stefano

> On Mon, 6 Jan 2003, Stefano McGhee wrote:
> 
> > Thanks David.  Do you have an example of that?  I can 
> understand MD not
> > rereading the SA config file for each message; the config 
> file shouldn't
> > change between messages.  However, after breaking up the 
> original message
> > into separate messages, shouldn't it be evaluated 
> differently based on who
> > the message is now individually destined for?
> 
> No, because SpamAssassin lacks that information.  The To: 
> header on the
> repeated messages is the same.
> 
> You need to call one of the SpamAssassin functions to reread extra
> configuration information based on the recipient.  See the
> Mail::SpamAssassin::Conf man page, and the Mail::SpamAssassin one,
> especially the read_scoreonly_config method.  See also the
> $SASpamTester entry in mimedefang-filter.
> 
> What you're trying to do is a bit complex, I'm afraid. :-(




More information about the MIMEDefang mailing list