Rana Tanveer wrote:
all i am using qmail , my mail server is hosted at yahoo and i use
getmail for mail POP. i want to use maildrop with getmail,
all i want is that maildrop reads my white list addresses files, if
address not found in the file the mail drops otherwise mail will
deliver to default mailbox. i google out but no solution found yet,
and i am searching more for it. if some one can send me sample script,
any idea ?
I've not used qmail or getmail so you may need to try their lists in
order to figure out how to configure them to call maildrop but here's a
simple maildrop script that should do what you want:
import SENDER
exception {
if (!lookup($SENDER, 'whitelist.txt'))
{
to ".Unknown/"
#exit
}
}
The script as shown simply delivers all unknown mail to a Maildir called
Unknown which is much safer than just dropping it. However, realize
that you're taking a very big risk of missing out on legit mail, you can
comment out the "to Unknown" line and uncomment the exit line in order
to completely drop the message.
Jay