WL writes:
> I'm new to the list and Qmail - is there anyway of adding an email address
> to a "spammers" file to be deleted before it gets to my mailbox?
One possible way to do this is by putting something like this at the
top of your ~/.qmail:
|grep -f .spammers &>/dev/null && exit 99; exit 0
If you don't already have a ~/.qmail, remember to add a line after
the above line to specify your normal delivery method; typically:
./Mailbox
(Read the dot-qmail man page for details about ~/.qmail, especially
the `SAFE QMAIL EDITING' section, lest some of your mail go astray.)
Then for any spammer's address, say, `[EMAIL PROTECTED]', add a
line to ~/.spammers containing a regular expression to catch that
address (for help with regular expressions, read grep's man page):
^From:.*\<spammer@flaky-biz\.com
Now any mail that contains `[EMAIL PROTECTED]' in the From: header
will disappear before you see it. Make sure ~/.spammers exists, or
else all your mail will disappear. If ~/.spammers is empty, all your
mail will be delivered as usual.
paul