# Postfix/Procmail not processing user .procmailrc files

**URL:** <https://forums.suse.com/t/postfix-procmail-not-processing-user-procmailrc-files/22442>\
**Category:** SLES Configure-Administer\
**Created:** [March 27, 2012, 10:13pm UTC](https://forums.suse.com/t/postfix-procmail-not-processing-user-procmailrc-files/22442 "2012-03-27T22:13:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrew\_wrobel](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@andrew\_wrobel](https://forums.suse.com/u/andrew_wrobel)\
**Post date:** [March 27, 2012, 10:13pm UTC](https://forums.suse.com/t/postfix-procmail-not-processing-user-procmailrc-files/22442/1 "2012-03-27T22:13:24Z")

</div>

I have a SLES 11 SP1 server that I’m configuring to use postfix/procmail to replace our aging sendmail server. I have everything working except for procmail.  
I’m not sure what I’m missing but procmail is not processing a users .procmailrc file.

If I call procmail directly with a sample mail message and the rc file, everything works as expected.

Here is the copy of the main.cf and master.cf files for postfix. What am I doing wrong?

Here is /etc/postfix/main.cf…

queue\_directory = /var/spool/postfix  
command\_directory = /usr/sbin  
daemon\_directory = /usr/lib/postfix  
data\_directory = /var/lib/postfix  
mail\_owner = postfix  
unknown\_local\_recipient\_reject\_code = 550  
debug\_peer\_level = 2  
debugger\_command =  
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin  
ddd $daemon\_directory/$process\_name $process\_id & sleep 5  
sendmail\_path = /usr/sbin/sendmail  
newaliases\_path = /usr/bin/newaliases  
mailq\_path = /usr/bin/mailq  
setgid\_group = maildrop  
html\_directory = /usr/share/doc/packages/postfix-doc/html  
manpage\_directory = /usr/share/man  
sample\_directory = /usr/share/doc/packages/postfix-doc/samples  
readme\_directory = /usr/share/doc/packages/postfix-doc/README\_FILES  
biff = no  
canonical\_maps = hash:/etc/postfix/canonical  
relocated\_maps = hash:/etc/postfix/relocated  
transport\_maps = hash:/etc/postfix/transport  
sender\_canonical\_maps = hash:/etc/postfix/sender\_canonical  
masquerade\_exceptions = root  
masquerade\_classes = envelope\_sender, header\_sender, header\_recipient  
myhostname = [mailserver1.dummy.com](http://mailserver1.dummy.com)  
delay\_warning\_time = 1h  
message\_strip\_characters = \0  
program\_directory = /usr/lib/postfix  
defer\_transports =  
disable\_dns\_lookups = no  
mailbox\_transport =  
strict\_8bitmime = no  
disable\_mime\_output\_conversion = no  
smtpd\_sender\_restrictions = hash:/etc/postfix/access  
strict\_rfc821\_envelopes = no  
smtpd\_recipient\_restrictions = permit\_mynetworks,reject\_unauth\_destination  
smtp\_sasl\_auth\_enable = no  
smtpd\_sasl\_auth\_enable = no  
smtpd\_use\_tls = no  
smtp\_use\_tls = no  
smtp\_enforce\_tls = no  
mailbox\_size\_limit = 0  
myorigin = $mydomain  
inet\_protocols = ipv4  
virtual\_alias\_maps = hash:/etc/postfix/virtual  
virtual\_alias\_domains = /etc/postfix/local-host-names  
masquerade\_exceptions = root  
masquerade\_classes = envelope\_sender, header\_sender, header\_recipient  
masquerade\_domains = $mydomain  
inet\_interfaces = $myhostname, localhost  
mydestination = $myhostname, localhost, localhost.$mydomain, $mydomain  
mynetworks\_style = class  
mynetworks = 127.0.0.0/8, 172.0.0.0/8, 10.0.0.0/8, 192.168.0.0/16  
relayhost = phlmail.$mydomain  
mailbox\_command = /usr/bin/procmail -f- -a “$USER”  
smtpd\_client\_restrictions = check\_client\_access, hash:/etc/postfix/access, reject\_unknown\_client\_hostname  
smtpd\_helo\_required = yes  
smtpd\_helo\_restrictions = reject\_invalid\_hostname  
alias\_database = hash:/etc/postfix/aliases  
alias\_maps = hash:/etc/postfix/aliases  
message\_size\_limit = 25000000  
local\_recipient\_maps =  
luser\_relay = $user@centralmailserver.$mydomain  
local\_transport = local:$myhostname  
mail\_spool\_directory = /var/spool/mail  
relay\_domains = $mydomain, /etc/postfix/relay-domains

/etc/postfix/master.cf…

smtp inet n - n - - smtpd -vv  
pickup fifo n - y 60 1 pickup  
cleanup unix n - y - 0 cleanup  
qmgr fifo n - y 300 1 qmgr  
rewrite unix - - y - - trivial-rewrite  
bounce unix - - y - 0 bounce  
defer unix - - y - 0 bounce  
trace unix - - n - 0 bounce  
verify unix - - n - 1 verify  
flush unix n - n 1000? 0 flush  
proxymap unix - - n - - proxymap  
smtp unix - - y - - smtp  
relay unix - - n - - smtp  
-o fallback\_relay=  
showq unix n - y - - showq  
error unix - - y - - error  
discard unix - - n - - discard  
local unix - n n - - local  
virtual unix - n y - - virtual  
lmtp unix - - y - - lmtp  
anvil unix - - n - 1 anvil  
scache unix - - n - 1 scache  
procmail unix - n n - - pipe  
flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}  
retry unix - - n - - error  
proxywrite unix - - n - 1 proxymap

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [April 5, 2012, 3:30pm UTC](https://forums.suse.com/t/postfix-procmail-not-processing-user-procmailrc-files/22442/2 "2012-04-05T15:30:39Z")

</div>

andrew,

It appears that in the past few days you have not received a response to your  
posting. That concerns us, and has triggered this automated reply.

Has your issue been resolved? If not, you might try one of the following options:

- Visit [http://www.suse.com/support](http://www.suse.com/support) and search the knowledgebase and/or check all  
the other support options available.
- You could also try posting your message again. Make sure it is posted in the  
correct newsgroup. ([http://forums.suse.com](http://forums.suse.com))

Be sure to read the forum FAQ about what to expect in the way of responses:  
[http://forums.suse.com/faq.php](http://forums.suse.com/faq.php)

If this is a reply to a duplicate posting, please ignore and accept our apologies  
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your SUSE Forums Team  
[http://forums.suse.com](http://forums.suse.com)
