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