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"' " [EMAIL PROTECTED]"
}
}
====
Regards
Manfred
----- Original Message -----
From: "Jon Nelson" <[EMAIL PROTECTED]>
To: "MH - Entwicklung" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
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"
> }
>
> ====
>
> --
> Democracy is two wolves and a sheep voting on what to have for dinner.
> Liberty is two wolves attempting to have a sheep for dinner and
> finding a well-informed, well-armed sheep.
>
> Jon Nelson <[EMAIL PROTECTED]>
> C and Python Code Gardener
>
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users