Postfix not delivering to Maildir

Filed Under (Mail, Red Hat) by jc on 27-07-2009

Tagged Under : , , ,

I came across this problem a few time and I keep forgetting the solution. Sometimes, even if you set in:

/etc/postfix/main.cf:

home_mailbox = Maildir/

postfix will still deliver to /var/spool/mail/user.

There are 2 ways to solve this problem:

1. you can disable procmail by removing the following line from /etc/postfix/main.cf:
mailbox_command = /usr/bin/procmail

2. If you need procmail, add the following lines to /etc/procmailrc:
MAILDIR=$HOME/Maildir
DEFAULT=${MAILDIR}/

That’s it!
–JC