Table of Contents

Procmail_-_setup_with_postfix

= Installing and Setting up Procmail =

Installing procmail is easy.

apt-get install procmail

Config Procmail and Postfix

With my setup of Postfix as described here, I needed to tell postfix to hand off emails to procmail which then delivers to local users along with checking of a users .procmailrc file in their home directory. The following line in /etc/postfix/main.cf took care of it nicely. There are other ways - however this was the first to work. vi /etc/postfix/main.cf

mailbox_command = /usr/bin/procmail -a “$EXTENSION” DEFAULT=$HOME/Maildir/ MAILDIR=$HOME/Maildir

The above hands off emails to procmail via Maildir.

Alternative config for Procmail and Postfix (not tested) vi /etc/postfix/main.cf mailbox_command = /usr/bin/procmail -a “$EXTENSION”

vi /etc/procmailrc DEFAULT=$HOME/Maildir/ MAILDIR=$HOME/Maildir


More info at:

http://www.pocock.com.au/linux-doc/mbox-maildir.html