Gregor, Hello, did you ever get this working correctly? For some reason maildrop doesn't like my VPOP setting..
.qmail-default | /usr/local/bin/maildrop .mailfilter .mailfilter logfile mylog VHOME=`/spool0/bin/vuserinfo -d $EXT@$HOST` VPOP="|/spool0/bin/vdelivermail '' bounce-no-mailbox" if ( $SIZE < 262144 ) { exception { xfilter "/usr/local/bin/spamc -d 209.251.30.150 -f -u $TOUSER" } } if (/^X-Spam-Flag: *YES/) { exception { include $VHOME/Maildir/.mailfilter } } else { exception { include $VHOME/Maildir/.mailfilter } exception { to "$VPOP" exit } } yet.. I get this in my maildrop logs: Date: Fri Oct 18 20:17:00 2002 From: [EMAIL PROTECTED] Subj: !Err: |/spool0/bin/vdelivermail '' bounce-no-mailbox (212) Thanks, Jason SISCOM > ----- Original Message ----- > From: "Gregor Lawatscheck" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, April 26, 2002 9:21 AM > Subject: Re: [vchkpw] Re: maildorp filter and sqwebmail > > > > At 21:07 25/04/2002, you wrote: > > >At 20:11 25/04/2002, you wrote: > > >>I have this setup and it works fine with one problem when email is spam > > >>and for a non existent user it doesn't bounce but get deferral (but > > >>non-spam email bounces fine.) If someone can help me with this, it'll be > > >>appreciated. > > > > This came back from Dallas this afternoon: > > > > ---------- > > 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. > > > > > > >