procmail not running .procmailrc file
Posted on 2013-06-03
We just moved onto a new server running Redhat Enterprise 6.3
I can't figure out why my .procmailrc file doesn't get run. Everything appears to be the same as it was on the old server.
I don't think the problem is with procmail.
I added a VERBOSE=yes and a LOGFILE=tmp to .procmailrc
When I run a test:
procmail DEFAULT=/dev/null VERBOSE=yes .procmailrc </dev/null
the log file tells me that it processed the .procmailrc file.
So I suspect the problem is with sendmail but that looks correct as well.
The permissions on my home folder are 700 and the permissions on my .procmailrc file are 600 So I don't think this is a permissions issue.
The relevant lines in the sendmail.mc file are:
FEATURE(local_procmail,`/usr/bin/procmail',`procmail -t -Y -a $h -d $u')dnl
I've run m4 to get it into the sendmail.cf file which has the following lines:
Mprocmail, P=/usr/bin/procmail, F=DFMSPhnu9, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP/HdrFromSMTP, A=procmail -Y -m $h $f $u
Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, A=procmail -t -Y -a $h -d $u
When I send an email to my account it gets delivered to /var/spool/mail instead of getting processed by my .procmailrc file
There's nothing in /var/log/maillog to lead me to suspect anything is wrong.
Jun 3 12:08:58 [myhostname] sendmail: r53J8vRX015651: to=<email@example.com>, delay=00:00:01, xdelay=00:00:01, mailer=local, pri=37253, dsn=2.0.0, stat=Sent
We're running selinux on this machine. That's the one big difference. Is there any of those config options I need to set?
I'm at a loss what to look for now. If anyone could spot the problem or point me in the right direction I would appreciate it.