[prev in list] [next in list] [prev in thread] [next in thread] 

List:       info-cyrus
Subject:    Re: Cyrus and procmail
From:       Hussain Ali <hali () ttsg ! com>
Date:       2004-01-30 18:53:16
Message-ID: 20040130133253.A13752-100000 () midgard ! ttsg ! com
[Download RAW message or body]


Hi,

I don't know if there is a perfect way, but here is way that works
well for me.

Well assuming sendmail,

-------------------------------
to your sendmail.mc file:

add:
FEATURE(local_procmail)

remove:
MAILER(cyrusv2)
-------------------------------
to your global procmailrc script:

LOGFILE=/var/log/procmail.log
VERBOSE=1
DROPPRIVS=no
INCLUDERC=/home/$LOGNAME/.procmailrc 	# include
:0fw
| /usr/local/cyrus/bin/pcd.sh $LOGNAME	# execute deliver

pcd.sh:
#!/bin/sh
LOGNAME=$1

/usr/local/bin/formail -I"From " | /usr/local/cyrus/bin/deliver \
  -a $LOGNAME -m user.$LOGNAME

*make sure to make  chmod a+x pcd.sh
 you can also add other filters after the formail, such as spamassassin :)

-------------------------------
install the new cf and restart sendmail. send out a couple test
mails to make sure it works.

good luck,

-Hussain


On Fri, 30 Jan 2004, Denis V. Suhanov wrote:

> Date: Fri, 30 Jan 2004 10:24:29 -0800
> From: Denis V. Suhanov <den@suhoff.ru>
> To: info-cyrus@lists.andrew.cmu.edu
> Subject: Cyrus and procmail
>
> Hello everyone,
>
> Is there a "right" way to set up procmail to work with Cyrus? If there
> isn't, can I at least have some default procmail script for all of the
> users and specialized ones for those who have their local accounts?
>
> Thanks a lot.
>
> --
> Best regards,
>  Denis                          mailto:den@suhoff.ru
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic