I am having weird problems with procmail running on a RedHat 7.2 box w/
ximian. I have no such problems with the exact same configuration on a
RedHat 7.1 box w/ ximian. Both are running postfix as the MTA with
procmail as the local delivery agent.
The only difference is that on the box i'm having trouble with, the
etc/procmailrc looks like:
[root(_at_)mail1 root]# cat /etc/procmailrc
DEFAULT=$HOME/Maildir/
This is because most users of this system don't know about or understand
procmail and I want it to be transparent for them. Normal, non-filtered
deliveries are working fine.
So, on to the problem:
Here is my .procmailrc:
[mail1]:~/cat .procmailrc
SHELL=/bin/sh
VERBOSE=on
#Directory for storing procmail log and rc files
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
INCLUDERC=$PMDIR/rc.spam
INCLUDERC=$PMDIR/rc.maillists
INCLUDERC=$PMDIR/rc.misc
I won't show you all my includes, but I will show you the spam one which
is definitely not working correctly:
[mail1]:~/cat .procmail/rc.spam
# pass mail through SpamAssassin
:0fw
| /usr/bin/spamassassin -P
# drop tagged spam in Spam folder
:0:
* ^X-Spam-Status: Yes
.Spam/
As you can see, we're using maildir delivery and i'm running stuff
through spamassassin. Here's what happens when a spam hits, though:
From
perf-errors(_dot_)3565(_dot_)59577(_dot_)5613611(_dot_)501(_dot_)0(_dot_)4(_at_)boing(_dot_)topica(_dot_)com
Thu Jun 20
18:12:56 2002
Subject: Are HGH Supplements Good For You? Get The Facts
Folder:
/home/burke/Maildir/new/1024611177.16605_0.mail1 14260
procmail: Assigning "INCLUDERC=/home/burke/.procmail/rc.spam"
procmail: Executing "/usr/bin/spamassassin,-P"
procmail: [16684] Thu Jun 20 18:24:00 2002
procmail: Match on "^X-Spam-Status: Yes"
procmail: Locking ".Spam/.lock"
procmail: Error while writing to
".Spam/tmp/1024611839.16684_3.il/rc.spammail1"
procmail: Couldn't create or rename temp file
".Spam/tmp/1024611839.16684_3.il/rc.spammail1"
procmail: Unlocking ".Spam/.lock"
procmail: Assigning "INCLUDERC=/home/burke/.procmail/rc.maillists"
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)urcert"
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)lockadm"
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)sitelic"
procmail: Assigning "INCLUDERC=/home/burke/.procmail/rc.misc"
procmail: No match on "^Subject:.*CONSOLE*"
procmail: No match on "^Subject:.*FIREWALL*"
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)help"
procmail: No match on "^Subject:.*cron*"
procmail: Assigning
"LASTFOLDER=/home/burke/Maildir/new/1024611840.16684_0.mail1"
procmail: Notified comsat:
"burke(_at_)0:/home/burke/Maildir/new/1024611840.16684_0.mail1"
Now, if you'll notice that it hits on the spam header and tries to save
to the appropriate folder, however, there seems to tbe the erroneous
string "il/rc.spam" included in the filename. This looks to me like
part of the string ".procmail/rc.spam" which is the filename of my
include. I've looked through all my files for some kind of missing
carriage return or anything that I could think of that would cause this
to be included in the filename, but I can't find anything.
Anyone have any suggestions of what to look for? Anyone seen this
problem before? Please reply directly to me since I am not subscribed
to this list. Thanks in advance.
andy
--
Andrew Burke // http://andrewburke.org/pubkey.txt
signature.asc
Description: This is a digitally signed message part