-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, Jul 25, 2007 at 06:56:03AM -0400, Jay Lee wrote:
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,
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.
There is a big use for this. AOL has a child mode where you can create
accounts for your kids. In that mode, email is only accepted from users
that the parents add to the kid's address book. The above is a close
implementation of that. For AOL, they just drop it (or reject it, I'm
not sure which).
- --
Regards... Todd
OS X: We've been fighting the "It's a mac" syndrome with upper management
for years now. Lately we've taken to just referring to new mac
installations as "Unix" installations when presenting proposals and
updates. For some reason, they have no problem with that. -- /.
Linux kernel 2.6.17-6mdv 2 users, load average: 0.13, 0.11, 0.05
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQFGp2XWY2VBGxIDMLwRAmzxAJ0esSkLsYK13uZjD8aLlp8PHzFzewCfVW+f
+9SwhBJZCfmsQvLgOxTofnk=
=flRx
-----END PGP SIGNATURE-----