Graham,

I use SpamAssassin (with individual user bayes learning) and F-Prot.  Both
run as daemons.  My setup is very simple, but works well for my small office
where everyone is using IMAP or webmail.  Below is my global maildroprc.

Good luck, Nathan

#
# Global maildrop filter
#

SHELL="/bin/sh"

#
# SpamAssassin
#
xfilter "/usr/bin/spamc"

#
# Virus Scan
#
xfilter "/usr/local/f-prot/tools/scan-mail.pl"

#
# Handle moving SPAM emails to special folder
#
if( /^X-Spam-Flag:.*YES/ )
{
   # create the .Spam directory if they don't have one
   `test -d ./Maildir/.Spam`
   if( $RETURNCODE == 1 )
   {
 `maildirmake -f Spam ./Maildir`
 `echo INBOX.Spam >> ./Maildir/courierimapsubscribed`
   }

   # try to deliver to .Spam directory
   exception {
 to "./Maildir/.Spam/."
   }

   # oh well, we failed for some reason
   # so drop through and deliver normally
}

#
# Handle moving Virus emails to special folder
#
if( (/^\*\*\*\*\*\ Attachment\ removed\ by\ F\-Prot\ Antivirus\
\*\*\*\*\*/:b) )
{
   # create the .Virus directory if they don't have one
   `test -d ./Maildir/.Virus`
   if( $RETURNCODE == 1 )
   {
        `maildirmake -f Virus ./Maildir`
        `echo INBOX.Virus >> ./Maildir/courierimapsubscribed`
   }

   # try to deliver to .Virus directory
   exception {
        to "./Maildir/.Virus/."
   }

   # oh well, we failed for some reason
   # so drop through and deliver normally
}

----- Original Message ----- 
From: "Graham Smith" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 16, 2004 6:13 AM
Subject: [courier-users] Spam filter recommendation


> Hi,
>
> I have googled like there is no tomorrow for the last couple of days and
> I am no closer to deciding which spam filter to use with courier. It
> seems that none of the large, more actively developed, filters
> (SpamAssasin for instance) directly integrate with courier (at least
> that is what the SpamAssasin site seems to imply). Reading this list
> seems to mention plenty of successful installations of spam filters
> though. I would greatly appreciate it if someone could point me in the
> direction of a spam filter or two and some documentation on how to
> install them with courier.
>
> Thanks, Graham
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
> Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
> Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
> REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
> _______________________________________________
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to