[maildropl] I need help with a filter please....
Brought to you by:
mrsam
From: Jeff S. <je...@so...> - 2003-10-25 19:58:47
|
Hello, I've just removed qmail-scanner-queue.pl from my qmail setup in favor or using maildrop to do my spam and virus filtering... Everything is working with a standard .qmail-default file (here:) | /usr/home/vpopmail/bin/vdelivermail '' bounce-no-mailbox Now, when I put a .qmail file in my /usr/home/vpopmail/domains/<domainname>/<username> directory, i get no mail... I'm assuming there's a problem in my filter... I'm not using a sql backend, also, spamd is running, and worked fine with qmail-scanner before it was removed. Here's my .qmail file from the user directory, someone please help me figure this out: *** START *** | /var/qmail/bin/preline /usr/local/bin/maildrop /usr/home/vpopmail/domains/.mailfilter *** END *** and the .mailfilter file: *** START *** import EXT import HOST VHOME=`/usr/home/vpopmail/bin/vuserinfo -d $EXT@$HOST` if($SIZE < 262144) { xfilter "/usr/local/bin/spamc -t 20 -f -u $EXT@$HOST" } if ((/^X-Spam-Flag:.*YES/)) { `/bin/test -d $VHOME/Maildir/.Spam` if( $RETURNCODE == 1 ) { `/var/qmail/bin/maildirmake $VHOME/Maildir/.Spam; /usr/sbin/chown -R vpopmail:vchkpw $VHOME/Maildir/.Spam` } to "$VHOME/Maildir/.Spam" } to "$VHOME/Maildir/" *** END *** Thank you in advance, I'm getting frustrated with this already :-) Jeff Sorrentino |