Hi Payal,

> I am using vpopmail + qmail on a test system. Now for user
> [EMAIL PROTECTED] I want to accept mails only from email addresses given in file
> accept_only.dat. The rest of the mails from any other email address 
> should be dropped/deleted without any notice.
> 
> Can someone please give on hints on writing such a script?

man dot-qmail
man qmail-command

Should be a simple two-liner .qmail file; the first line with an "|if"
expression that checks $SENDER against your file and exits with an
appropriate exit code, and a forward rule to a defined Maildir in the
second line.

Jonas


Reply via email to