On 09/16/01 08:26 PM, Werner Reisberger sat at the `puter and typed:
> On Sun, Sep 16, 2001 at 01:01:13PM -0400, Louis LeBlanc wrote:
> > With 1.6.24, I simply changed the Cyrus mailer args so that sendmail
> > would dump the message to procmail, which would then pipe the filtered
> > message thru to deliver.
> > 
> > I notice deliver is still there, but it doesn't seem to be used in the
> > current chain of command.
> > 
> > Is deliver being phased out, kept up, or what?
> 
> It's only a wrapper to lmtp. You should be able to use it the same way as
> before. I use postfix/procmail/cyrus-2.0.13 in a web hosting solution 
> without problems. My users can create various filters over a web interface.
> There would be no advantage for me to switch to sieve except the lmtp
> integration. I hope procmail will get lmtp client support one day.
> 
>  Werner

No kidding!  Actually, that's great!

The box I'm trying to replace is an RH6.2 system with Cyrus 1.6.24.  I
am using some tricky things to make sendmail think it is simply
calling deliver, but it actually calls procmail.

Here:
define(`CYRUS_MAILER_FLAGS',`SA5@|:/w')
define(`CYRUS_MAILER_PATH',`/usr/local/bin/procmail')
define(`CYRUS_MAILER_USER',`cyrus:mail')
define(`CYRUS_MAILER_ARGS',`procmail -Y -m /etc/procmailrc $u $h')
define(`CYRUS_MAILER_MAX',`eval(5*1024*1024)')
define(`CYRUS_BB_MAILER_FLAGS',`S')
define(`CYRUS_BB_MAILER_ARGS',`procmail -Y -m /etc/procmailrc $u $h')
define(`confLOCAL_MAILER',`cyrus')
LOCAL_RULE_0
R$=N                    $: $#local $: $1
R$=N < @ $=w . >        $: $#local $: $1
Rbb + $+ < @ $=w . >    $#cyrusbb $: $1

This is kinda sneaky, but it works real well.  Now the sample used for
cyrus 2.x simply uses this:

MAILER_DEFINITIONS
Mcyrus,         P=[IPC], F=lsDFMnqA@/:|SmXz, E=\r\n,
                S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix,
                A=FILE /var/imap/socket/lmtp

LOCAL_RULE_0
Rbb + $+ < @ $=w . >    $#cyrus $: + $1

And for some silly reason, Mail is getting delivered to
/var/spool/mail instead of to cyrus.  I think I'll try the deliver
game again and see how it works.

Thanks

Lou
-- 
Louis LeBlanc       [EMAIL PROTECTED]
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://acadia.ne.mediaone.net                 ԿԬ

Lieberman's Law:
  Everybody lies, but it doesn't matter since nobody listens.

Reply via email to