5 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] mail drop check my wh...
FromSent OnAttachments
Rana TanveerJul 24, 2007 10:00 pm 
Jay LeeJul 25, 2007 3:55 am 
Todd LyonsJul 25, 2007 8:01 am 
Rana TanveerJul 25, 2007 9:33 pm 
Rana TanveerJul 25, 2007 9:49 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] mail drop check my whitelist fileActions...
From:Jay Lee (jl@pbu.edu)
Date:Jul 25, 2007 3:55:40 am
List:net.sourceforge.lists.courier-maildrop

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