Postfix + procmail + cyrus

cyrus-info at cyrus-info at
Tue Dec 16 19:16:53 EST 2003

I am trying to add procmail into the mix since i have been using it for
years and would like to using in my new config.

I had postfix up and running and delivering cyrus before I started.

I want to allow users to have there local .procmailrc. (see current
configs at the end)

I started by trying in
mailbox_transport = procmail

and the has,
procmail  unix  -       n       n       -       -       pipe
  flags=R user=cyrus argv=/usr/bin/procmail -t -m USER=${user} EXTENSION=${extension} /etc/procmailrc

this didn't work since procmail was being executed as user cyrus so
couldn't read the users .procmailrc

The procmail binary was installed setuid.
-rwsr-sr-x   1 root     mail       84128 Dec 16 13:30 /usr/bin/procmail

I then moved onto using the mailbox_command instead which would execute
procmail as the local user, but the deliver command fails with

procmail: Executing "/usr/cyrus/bin/deliver,-e,-a,ism,-m,user.ism"
couldn't connect to lmtpd: Bad file number

Any ideas? I need to have the global procmailrc for delivery to cyrus and
I would like users to have there own .procmailrc.

mailbox_command =  /usr/bin/procmail -t -m /etc/procmailrc "$LOGNAME"

# Master Procmail Recipe for Postfix > Procmail > Cyrus
USERINBOX="$DELIVERTO -e -a $1 -m user.$1"
# OPTIONAL: Include users' own .procmail recipe files

# Last but not least, deliver mail that falls through to the user's INBOX
:0 w

More information about the Info-cyrus mailing list