

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
9 messages in net.sourceforge.lists.courier-usersRe: [courier-users] maildrop/.mailfil...| From | Sent On | Attachments |
|---|---|---|
| Stephen Reese | Oct 10, 2006 8:17 pm | |
| Marcus Ilgner | Oct 11, 2006 12:51 am | |
| Stephen Reese | Oct 11, 2006 6:30 pm | |
| Marcus Ilgner | Oct 12, 2006 7:13 am | |
| Bowie Bailey | Oct 12, 2006 7:41 am | |
| Mark Constable | Oct 12, 2006 7:46 am | |
| Bowie Bailey | Oct 12, 2006 7:55 am | |
| Marcus Ilgner | Oct 12, 2006 8:19 am | |
| Mark Constable | Oct 12, 2006 9:12 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [courier-users] maildrop/.mailfilter question | Actions... |
|---|---|---|
| From: | Marcus Ilgner (marc...@gmail.com) | |
| Date: | Oct 12, 2006 7:13:47 am | |
| List: | net.sourceforge.lists.courier-users | |
On 10/12/06, Stephen Reese <rsre...@gmail.com> wrote:
Shortly have emailing the listserv I though about that and change the maildroprc file around so that spam would hopefully be flagged and dealt with before the .mailfilter was read. After making the change and reloading courier no mail or spam were processed. Any other ideas?
That is indeed quite strange. On my server, every user has a .mailfilter file (mostly empty, though). My configuration is not very different from yours and looks like this:
import SENDER # send all messages < 512KB through spamassassin if ($SIZE < 524288) { exception { xfilter "/usr/bin/spamc" } }
if ( /^X-Spam-Flag: YES/ ) { to "$HOME/Maildir/.Spam/" } else { # execute the users mailfilter include "$HOME/.mailfilter" # if it didn't do this already, deliver to the Inbox. to "$HOME/Maildir/" }
HTH Marcus
P.S.: Please put your replies below the context you are referring to. It keeps the conversation on the list much more readable.
-----Original Message----- From: Marcus Ilgner [mailto:marc...@gmail.com] Sent: Wednesday, October 11, 2006 3:52 AM To: Stephen Reese Cc: cour...@lists.sourceforge.net Subject: Re: [courier-users] maildrop/.mailfilter question
Hi Stephen,
just modify your maildroprc so that the users .mailfilter is only included if no spam was detected:
if ( $SIZE < 204800 ) { exception { xfilter "/usr/bin/spamassassin" } }
if (/^X-Spam-Flag: YES/) { if (/^X-Spam-Level: \*\*\*\*\*\*/) { echo "***** Dropping 6+ Spam *****" EXITCODE = 0 exit } else { to "$HOME/Maildir/.Trash/" } } # spam messages were already handled `test -r $HOME/.mailfilter` if( $RETURNCODE == 0 ) { log "(==) Including $HOME/.mailfilter" exception { include $HOME/.mailfilter } } to "$HOME/Maildir/"
That should do the trick. On a side note I would recommend switching to Spamassassins client-server model and using spamc instead of the spamassassin executable.
HTH Marcus
On 10/11/06, Stephen Reese <rsre...@gmail.com> wrote:
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/"







