

![]() | 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: |
1 message in net.sourceforge.lists.courier-maildrop[maildropl] maildrop filtering with v...| From | Sent On | Attachments |
|---|---|---|
| David | Sep 18, 2002 8:15 pm |

![]() | 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: | [maildropl] maildrop filtering with vpopmail | Actions... |
|---|---|---|
| From: | David (abba...@smartchat.net.au) | |
| Date: | Sep 18, 2002 8:15:40 pm | |
| List: | net.sourceforge.lists.courier-maildrop | |
Hi All,
Got a bit of a difficulty getting my head around how some things shold work I think.
I have a qmail/courier-IMAP/vpopmail setup, with maildrop and spamadssassin installed (and working :))
What I was wanting to do was to not only use the spamassassin filter, but also allow users to use personal filters (I am trying to take filtering away from client end, and let the server do it, so that whatever mechanism they use to read their mail, its consistent).
This is my Spamassassin filter, it lives in each of the domain directories under vpopmail and has worked fine since I got the bugs worked out in it.
just for note, $VHOME comes out with something like /home/vpopmail/domains/kobo.biz/david
###################################################### VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox" VHOME=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST`
# Test to see if VHOME exists `test -d $VHOME/Maildir` if ( $RETURNCODE == 1 ) { # If no Maildir exists then the account does not exist # then bail and exit with permanent failure echo "Sorry, no mailbox here by that name. (#5.1.1)" EXITCODE=100 exit }
if ( $SIZE < 262144 ) { exception { xfilter "/usr/bin/spamc -f -u $EXT@$HOST" } }
if (/^X-Spam-Flag: *YES/) { ## Check to see if they have their own Mailfilter, if so include it exception { include $VHOME/.mailfilter }
## OR IF YOU WANT TO DELIVER SPAM TO THE USERS MAILDIR exception { to "$VHOME/Maildir/.SPAM/" } } else { exception { include $VHOME/.mailfilter } exception { to "$VPOP" } } ####################################################
The SPAM filtering part works fine, however I had thought that the lines that included $VHOME/.mailfilter would include the .mailfilter file residing in the users $VHOME dir. this is a copy of the file I'm using for testing (really basic, just for proof of concept) this is in /home/vpopmail/domains/kobo.biz/david/.mailfilter (and thus I thought should be included into the spam filtering recipe above)
#################################################### #things to test # abba...@smartchat.net.au goes to INBOX.test #simple initial test
if (/^From: *abbaddon@smartchat\.net\.au/) { to "$VHOME/Maildir/INBOX.test/" } ####################################################
however, everything ends up in the INBOX, dang annoying.
Was wondering if anyone had any ideas. I know Maildrop is working, and I know the domain Mailfilter is working for SPAM, just either doesnt seem to want to process the include, or I have something really silly wrong with the user .mailfilter file.
Thanks for your time
Regards
David Cook







