9 messages in net.sourceforge.lists.courier-users[courier-users] maildrop/.mailfilter ...
FromSent OnAttachments
Stephen ReeseOct 10, 2006 8:17 pm 
Marcus IlgnerOct 11, 2006 12:51 am 
Stephen ReeseOct 11, 2006 6:30 pm 
Marcus IlgnerOct 12, 2006 7:13 am 
Bowie BaileyOct 12, 2006 7:41 am 
Mark ConstableOct 12, 2006 7:46 am 
Bowie BaileyOct 12, 2006 7:55 am 
Marcus IlgnerOct 12, 2006 8:19 am 
Mark ConstableOct 12, 2006 9:12 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:[courier-users] maildrop/.mailfilter questionActions...
From:Stephen Reese (rsre@gmail.com)
Date:Oct 10, 2006 8:17:08 pm
List:net.sourceforge.lists.courier-users

I'm using the following script for spamassassin to send junk to the Trash folder. The .mailfilter files are read and work, but when fowarding mail to another email address the spam is also fowarded which is not desirable. I'm looking for a method to continue to forward mail, but not also foward the spam which the current setup does.

Here's the .mailfilter file: cat /home/sreese/.mailfilter cc "!some@domain.com" EXITCODE = 0 exit

Here's the maildroprc: cat /usr/lib/courier/etc/maildroprc if ( $SIZE < 204800 ) { exception { xfilter "/usr/bin/spamassassin" } }

`test -r $HOME/.mailfilter` if( $RETURNCODE == 0 ) { log "(==) Including $HOME/.mailfilter" exception { include $HOME/.mailfilter } }

if (/^X-Spam-Flag: YES/) { if (/^X-Spam-Level: \*\*\*\*\*\*/) { echo "***** Dropping 6+ Spam *****" EXITCODE = 0 exit } else { to "$HOME/Maildir/.Trash/" } } to "$HOME/Maildir/"