From: "Heiner Strauss" <[EMAIL PROTECTED]>
> I try to make sending mail to user+detail work with
> cyrus-imapd-1.6.22 and sendmail-8.9.3. The mail
> arrives always in the user INBOX. After some reading
> in the archives, i found out about lmtp. I don't
> have lmtpd, only deliver. Here is my sendmail.mc:
>

You don't need these three lines:

> FEATURE(`local_lmtp', `/usr/local/cyrus/bin/deliver')dnl
> define(`LOCAL_MAILER_ARGS', `deliver -l')dnl
> define(`LOCAL_MAILER_FLAGS', LOCAL_MAILER_FLAGS`'P)dnl


define(`CYRUS_MAILER_ARGS', `deliver -l -e')dnl

> define(`confLOCAL_MAILER', `cyrus')dnl
> define(`CYRUS_MAILER_FLAGS', `A5@/:|wSmXz')dnl

Change CYRUS_MAILER_FLAGS to:

define(`CYRUS_MAILER_FLAGS', `SA@|:/wmXz')dnl

NOTE: Removing the "5" flag fixes it so that LMTP mode will deliver to
+detail folders.  It may break alias rewriting.

> define(`CYRUS_MAILER_ARGS', `deliver -l -e')dnl
> define(`CYRUS_BB_MAILER_FLAGS', `S')dnl
> FEATURE(`nocanonify')dnl
> FEATURE(`always_add_domain')dnl
> MAILER(local)dnl
> MAILER(smtp)dnl
> MAILER(`cyrus')dnl
> LOCAL_RULE_0
> Rbb + $+ < @ $=w . >    $#cyrusbb $: $1
> ________________________________________________________
>
> I want to use the 'normal' mailboxes too, I want to
> keep mail.local for local delivery, if possible.
> Can someone tell me what is wrong ? I'm trying
> 1 Year to make this work, but now i need some advice.

Use the following in place of your LOCAL_RULE_0:

LOCAL_RULE_0
R$=N                    $: $#local $: $1
R$=N < @ $=w . >        $: $#local $: $1
Rbb + $+ < @ $=w . >    $#cyrusbb $: $1

LOCAL_CONFIG
# List of Users that shouldn't have mail delivered to the
# IMAP Server.
FN /etc/mail/sendmail.cN

Scot

Reply via email to