I have the following /etc/procmailrc working well to filter out "bad"
mails for our site. However the only problem I cannot figure out is
the lock - it always complains "cannot unlock ..." no matter how I
change the lock file location. The lock file always has root as
owner and permission as 400 -- isn't /etc/procmailrc executed by root?
;-) Also, occasionally it has "0200 ignored", still don't have a clue
yet since I don't have umask in the rc -- does procmail read in user
environment parameters (such as .cshrc)? (You may note that I comment
out the LOCKFILE line -- so far so happy).
Any expert view on this?
Zhiliang
------------------------------------------
#/etc/procmailrc
SHELL=/bin/sh
PATH=$HOME/bin:/usr/bin:/var/mail:/bin:/usr/local/bin:.
MAILDIR = /root/Mail
#LOCKFILE = $MAILDIR/.lockmail
LOGFILE = /root/Mail/log
NULL = /dev/null
TRAP = 'formail -XFrom: -XTo: -XCc: ; echo __________ '
# VERBOSE = yes
LOGABSTRACT = all
# :0 c
# Save
#-----------------------------------------------
# Trap spam into junk
:0
* ! ^To:
$NULL
#Junks
:0
*
^(From|Received|Reply-to|To|Sender).*(members|realmoney.com|arpwatch(_at_)calink(_dot_)org|netiz
ens|BonusMail|MyPoints|mypoints.com|everyone|cancel|news|specialoffers|optoutlist|LastC
hance|sendoutmail.com|s4p69|haitian.com.cn|btamail.net.cn|info|Recipient
List
Suppressed|undisclosed-recipients|foryou|marketing|success|sale|money|nobody)
$NULL
#Junks
## Please note the long match line may be broken into
## several lines by the mail agent.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail