On Sat, Mar 15, 2003 at 03:14:22PM +0530, Payal Rathod wrote:
> Thanks for the reply. Yes, I know about .qmail files but the problem how
> to *drop* unwanted mails. I can check the mails against a sample.txt
> file and if match is found redirect it to ./Maildir/. But how to drop
> the mails otherwise?

You can use the `validate-sender` program from my qblue package to accomplish
this.  If you want to deliver to a regular Maildir you could use the following:

  |if except validate-sender ~/Maildir/valid.dat; then maildir ./Maildir/ ; fi

The `maildir` script is part of the safecat package.

I am running vpopmail 5.3.9 with --enable-make-seekable=y and the following
also works for me:

  |if except validate-sender /var/vpopmail/domains/standblue.com/valid.dat; then 
/var/vpopmail/bin/vdelivermail '' /var/vpopmail/domains/standblue.com/cwright/ ; fi

These examples deliver the message if the sender address is listed in the 
valid.dat file, and drop it otherwise.  The validate-sender program relies
on $SENDER, which can easily be forged, so this should only be used to do
trivial checks.

You can find qblue at the following URL:

  http://projects.standblue.net/software/qblue/index.moto

Good luck,

Cory

--
Cory Wright
Stand Blue Technology
http://www.standblue.net/

Reply via email to