Sander Holthaus wrote:
> Bowie Bailey wrote:
> > Julie S. Lin wrote:
> > > i'm trying to get spamassassin to filter mail to an email alias
> > > "[EMAIL PROTECTED]" . 
> > > 
> > > in my courier aliases files "list" I have
> > > hostmaster :    user x, user y, user z
> > > 
> > > how can I go about doing that? from my research it's a matter of
> > > directing mail to a some file, run the spam filtering, then
> > > forward the checked mail onward? is there a better way?
> > 
> > There are basically two ways:
> > 
> > If you want to reject spam, you can use Amavisd-new to call
> > SpamAssassin (and ClamAV, if you want).  The downside is that this
> > method has no capability to change the message and so it can't add
> > markups to the header or subject.
> > 
> > If you just want to mark and deliver the spam, you can call spamc
> > from maildrop.  With the alias you describe above, you would need
> > to run it individually for each user (since maildrop is a delivery
> > agent, it doesn't see the alias, just the users).
> > 
> I never could (still can't) decide between the two. I use Amavisd-new
> for virus and phising filtering and to some extent, spam-filtering
> through ClamAV (tries to match spam-images and urls). But SpamAssassin
> is run through maildrop.
> 
> The only reason for that is that I need to add spam-headers. I would
> much like to run SpamAssassin through Amavisd-new, as that would allow
> me to reject mail and filter messages that are relayed which should
> keep mailboxes cleaner and allow for some small efficiency
> improvements. 

I do the same thing.  You can also do much more per-user configuration
when running SA from maildrop.  I have different markup settings for
different users.  A couple of them even have a different required_hits
setting.  I also have per-user Bayes databases.  You can't do this
with Amavis because it processes the mail as it comes in where there
may be multiple recipients.  Maildrop processes the mail during
delivery where there is only one recipient.

-- 
Bowie


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to