6 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Catch all question
FromSent OnAttachments
David MirNov 12, 2003 7:55 am 
Gabriel AmbuehlNov 12, 2003 12:02 pm 
Sam VarshavchikNov 12, 2003 3:48 pm 
MH - EntwicklungNov 13, 2003 4:28 am 
Jon NelsonNov 13, 2003 6:56 am 
MH - EntwicklungNov 13, 2003 7:35 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Catch all questionActions...
From:MH - Entwicklung (entw@heubach-edv.de)
Date:Nov 13, 2003 7:35:50 am
List:net.sourceforge.lists.courier-users

my maildroprc ist a bit different because we're delivering to an extra account.
The first if-statement is to prevent loops. We're running spamassassin in daemon
mode this is why you see /usr/bin/spamc instead of spamassassin.

==== if ((/^X\-Spam\-Checker\-Version:.*mail\.heubach\-edv\.*/)) { } else { xfilter "/usr/bin/spamc" if ((/^X-Spam-Status: *Yes/)) { to "| $SENDMAIL -f " '"$SENDER"' " sp@heubach-edv.de" } } ====

Regards Manfred

----- Original Message ----- From: "Jon Nelson" <jnel@jamponi.net> To: "MH - Entwicklung" <entw@heubach-edv.de> Cc: <cour@lists.sourceforge.net> Sent: Thursday, November 13, 2003 3:56 PM Subject: Re: [courier-users] Catch all question

On Thu, 13 Nov 2003, MH - Entwicklung wrote:

Use SpamAssassin for qualifying mail as spam. You can then filter it. If you need help integrating Spamassassin with Courier just send an e-mail to my address.

I'm just curious how you go about doing it. I'm using the following in /etc/courier/maildroprc:

==== import SENDER import RECIPIENT import HOME PATH=/bin:/usr/bin: INBOX="Maildir/" DEFAULT="$INBOX" SPAMFLD="$INBOX.SPAM/" SHELL=/bin/ash

# create needed directory `test -d "$SPAMFLD"` if( $RETURNCODE == 1 ) { `maildirmake "$SPAMFLD"` }

# filter message #xfilter "/usr/bin/spamc" exception { xfilter "/usr/bin/spamassassin --auto-whitelist --local" } if ( /^X-Spam-Status: Yes,/) { DEFAULT="$SPAMFLD" } if ( /^X-Spam-Status: YES,/) { DEFAULT="$SPAMFLD" }