I have set up some procmail recipes to dump any spam/junk email to
/dev/nul. My recipes look like this
:0 : nuldev
* ^From.*natureplus.com
| /dev/null
However, often I get the following error in my procmail.log file
procmail: Error while writing to "/dev/null"
As a result, the message gets through my defenses. Many users on my
system use this type of recipe and we have all seen the above error
sometimes (the error seems to happen more often than a successful
filter to /dev/nul). Can anyone help me diagnose how to make my
recipe/system more robust to this error?
First of all, you don't need a lockfile on that recipe. Secondly,
"/dev/null" is not an executable file, so you shouldn't call if from
a shell by using the '|'. Change it like this:
:0
* ^From.*natureplus\.com
/dev/null
Lates!
---------------------------------------------------------------------------
Tim <bodysurf(_at_)pobox(_dot_)com>
mailto:bodysurf(_at_)pobox(_dot_)com
Finger bodysurf(_at_)pobox(_dot_)com for my PGP public key (Bits 1024/KeyID
09DA5C49).
PGP Key FPrint (09/03/94): 4C 97 F1 FA 70 55 68 91 49 D1 AD F2 DD 63 0C 15
---------------------> Please PGP encrypt your email <---------------------