procmail
[Top] [All Lists]

RE: Newbie needs help with modified Vacation example

2004-02-07 00:55:37


From: Michael Thompson
Sent: Friday, February 06, 2004 10:03 PM
[...]
KAKMATCH=`cat $HOME/kaksenders.txt`

                :0 Whc: vacation.lock
              * $^FROM.*${KAKMATCH}
              * !^FROM_DAEMON
[...]

Now this is fine, it works, but what I would like to do is to dump any
messages that hit this rule into /dev/null. I have tried to put
/dev/null/ at the end of the recipe, but the log file just says it has
been skipped. How can I modify the above to dump the mail?

First, be advised that if your intent is to bounce back a reply to
the sender(s) of unsolicited e-mail (spam), that this is a FAQ, and the
answer to the FAQ is: don't do it. The sender's address is 99.999% of
the time a fake, and you're going to send your bounce message back to
unsuspecting, innocent user.

That said, in the line above:
     :0 Whc: vacation.lock
just drop the 'c', which means "carbon copy" (or "clone"). Your message
will then be "delivered" to your modified vacation recipe and nothing
else needs to be done. So, the line looks like this:
     :0 Wh: vacation.lock

(note: there are sysadmin's out there who will quit accepting mail from
you, your company, your ISP, whatever, if they receive too many
unwarranted bounce messages.)



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>