----- Original Message ----- From: "Gregor Lawatscheck" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 26, 2002 6:14 AM Subject: Re: [SAtalk] who's using SpamAssassin for all virtuals in Qmail/Vpopmail?
> At 06:35 26/04/2002, you wrote: > >Is Qmail-Scanner the way to go? http://qmail-scanner.sourceforge.net/ > >ifspamh? http://www.gbnet.net/~jrg/qmail/ifspamh > > > >Any tips/URLs/FAQs appreciated. > >I'm pretty new to it, on the brink of understanding, > >but could use any pointers from people who've beenthere/donethat. > > > >Thanks! > > Dallas Engelken's maildrop filter solution rocks imo: > http://www.geocrawler.com/archives/3/11679/2002/3/50/8247915/ > > if you're intending to use sqwebmail to edit the rules: > in sqwebmails maildir/maildirfilter.c you allso need to comment out out > fprintf(f, "to \"%s/.\"\n", maildirpath); > so user rules don't override any other stuff in the global .mailfilter. > > It has also got an issue with not bouncing spam to non existing addresses > there needs to be a check as to what VHOME=`/var/vpopmail/pop/bin/vuserinfo > -d $EXT@$HOST` actually comes to... when it says "no such user" then it > ought to bounce rather than trying to put it in a maildir that doesn't > exist. Needs implementing... > I realized this after using it for a while. The fix is easier than you can imagine. Just add exit calls after your "to" rules, because if the message has a non-existent user, then maildrop will try to process the rest of the filter. # Updated .qmail-default #################################################### VPOP="| /var/vpopmail/pop/bin/vdelivermail ' bounce-no-mailbox" VHOME=`/var/vpopmail/pop/bin/vuserinfo -d $EXT@$HOST` if ( $SIZE < 262144 ) { exception { xfilter "/usr/bin/spamc -f -u $EXT@$HOST" } } if (/^X-Spam-Flag: *YES/) { exception { include $VHOME/Maildir/.mailfilter } ## IF YOU WANT TO GATHER ALL SPAM INTO 1 MAILDRIR exception { to /home/pop/spam/ exit } ## OR IF YOU WANT TO DELIVER SPAM TO THE USERS MAILDIR # exception { # to "$VPOP" # exit # } } else { exception { include $VHOME/Maildir/.mailfilter } exception { to "$VPOP" exit } } #################################################### Thanks go to Sam for pointing that out. Dallas Engelken NMGI http://www.nmgi.com _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk