[CentOS] Centos 6.6 procmail trouble

Chuck Campbell

campbell at accelinc.com
Fri Nov 21 19:01:56 UTC 2014

I have a 6.5 machine that had everything set up and working correctly (fetchmail, sendmail w/ starttls, procmail, spamassassin) but the MB cratered.
I bought a new machine, and installed Centos 6.6 and all is not well.

I used the config from the previous incarnation (via backups) for fetchmail (works fine), sendmail (works fine for sending via relay and tls), but procmail now refuses to pick up the correct MAILDIR location, and therefore won't deliver mail to the right place.

The example below is landing in /home/user/.spam_to_learn, NOT in /home/user/Maildir/.spam_to_learn
Maybe some other eyes can tell me what is wrong here.


This is the top of the .procmailrc in my home directory:

SENDMAIL="/usr/sbin/sendmail -oi -t"

LOG=" My HOME is --> $HOME $NL My MAILDIR Directory is --> $MAILDIR $NL My DEFAU
LT Directory is --> $DEFAULT $NL My ORGMAIL Directory is --> $ORGMAIL $NL My LOG
NAME is $LOGNAME $NL New .procmailrc $NL Starting recipes $NL $NL $NL"


LOG=" Recipe 0 $NL"
* (^TO|^TO_|^Sender:|^From:.*)\<(centos-bounces)\>

# SpamAssassin
# Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
# if you use the spamc/spamd combination)
# The condition line ensures that only messages smaller than 250 kB
# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
# isn't bigger than a few k and working with big messages can bring
# SpamAssassin to its knees.

LOG=" Recipe 2 $NL"
* < 256000
#| /usr/bin/spamassassin -a
| /usr/bin/spamc

LOG=" Recipe 3 $NL"
* ^X-Spam-Status: Yes

LOG=" Recipe 5 $NL"
* .
 LOG="$NL default recipe using copy to .ham_to_learn/ (maildir version) $NL"
 :0 c
# LOG="$NL default recipe using $DEFAULT (maildir version) $NL"

here is an excerpt from the procmail_log file:

My HOME is --> /home/campbell 
 My MAILDIR Directory is --> . 
 My DEFAULT Directory is --> /home/campbell/Maildir/ 
 My ORGMAIL Directory is --> /var/spool/mail/campbell 
 My LOGNAME is campbell 
 New .procmailrc 
 Starting recipes 

procmail: [21138] Fri Nov 21 12:57:23 2014
procmail: Assigning "LOG= Recipe 0 

procmail: Assigning "LOG= Recipe 2 
 Recipe 2 
procmail: Match on "< 256000"
procmail: Locking "spamassassin.lock"
procmail: Executing "/usr/bin/spamc"
procmail: Unlocking "spamassassin.lock"
procmail: Assigning "LOG= Recipe 3 
 Recipe 3 
procmail: Match on "^X-Spam-Status: Yes"
procmail: [21138] Fri Nov 21 12:57:24 2014
procmail: Assigning "LASTFOLDER=.spam_to_learn/new/1416596243.21138_2.helium"
procmail: Notified comsat: "campbell at 0:./.spam_to_learn/new/1416596243.21138_2.h
>From someone at gmail.com Fri Nov 21 12:52:23 2014
 Subject: [SPAM3] 
 Folder: .spam_to_learn/new/1416596243.21138_2.helium 2095
procmail: Unlocking "/home/campbell/.lockmail"

More information about the CentOS mailing list