OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Procmail + Postfix + Cyrus woes.
From: Dylan Griffiths (Dylan_Gbigfoot.com)
Date: Sat Mar 25 2000 - 16:21:03 CST


        Hello. I've been trying to get Postfix to use Procmail for delivering,
which then filters through and delivers to different Cyrus folders for
different users (with a default of delivering to user.$USER.$EXTENSION).
        I ran "cat test.mail | procmail -p /etc/procmailrc USER=[username]
EXTENSION=" as root, and it properly filtered the test mail and delivered
via Cyrus fine. The first problem was that setting "mailbox_command =
/usr/bin/procmail -p /etc/procmailrc -a "$EXTENSION"" as per the FAQ doesn't
work -- it just uses my mailbox_transport of cyrus. Turning off the
mailbox_transport so it would use the mailbox_command did not work. Local
delivered it to /var/spool/mail/{username} -- which does nothing.
        So I went and made a transport entry in the master.cf for procmail. If I
tried to run it under the appropriate privileges for procmail (root), it
wouldn't deliver (postfix pipe complained). If I ran it under the cyrus
uid, it couldn't read /etc/procmailrc (which procmail demands much be root
owned and chmod 600).
        I'm out of ideas since I've tried all I can think of to make Postfix
interface with Procmail as the deliver agent for my Cyrus IMAP system. I'm
going to try rewriting the procmail rules, as I think it might be letting
things slip through to the /var/spool somehow. Any suggestions are welcome.

--
 Hi! I'm a .signature virus! Copy me into your ~/.signature to help me
spread!