From: "Evan" <[EMAIL PROTECTED]>
> 2) Is it possible to have cyrus mail users and "regular" users (that is,
> users with an actual login on the machine, and mailbox in /var/spool/mail)
> to coexist on the same machine?  This would migration much easier as I can
> set cyrus up and migrate people over time, setting up the critical
> mailboxes first.
>

Yes, it is possible to have both kinds of users on the system, you just need
to create a list of users that need their messages delivered to
/var/spool/mail.


Add the following to your sendmail.mc (Cyrus-imapd 1.4 - 1.6):

dnl This stuff actually makes Cyrus work as the local mailer
dnl The flags A5@/:| are standard
dnl w: look up users in passwd file - enables .forward processing.
dnl S: always run deliver as the cyrus user
dnl The mXz flags are there to enable LMTP support with the -l flag on
deliver.
define(`CYRUS_MAILER_FLAGS', `SA5@|:/wmXz')dnl
define(`CYRUS_MAILER_ARGS', `deliver -l -e')dnl

dnl define(`CYRUS_MAILER_FLAGS',`SA5@|:/w')dnl
dnl define(`CYRUS_MAILER_ARGS',`deliver -e -m $h -- $u')dnl

define(`CYRUS_MAILER_PATH',`/usr/local/cyrus/bin/deliver')dnl
define(`CYRUS_MAILER_MAX',`eval(10*1024*1024)')dnl
define(`CYRUS_MAILER_USER',`cyrus:cyrus')dnl
define(`CYRUS_BB_MAILER_FLAGS',`S')dnl
define(`CYRUS_BB_MAILER_ARGS',`deliver -e -m $u')dnl
MAILER(cyrus)dnl

dnl NOTE: there are tabs between these two columns (not spaces)
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

> 3) Is there some way of setting up aliases in sendmail that deliver email
> into specific mailboxes (not necessary a user.* mailbox)?
>
Yes, you just add the alias to sendmail's aliases file:

    test:        johndoe+subfolder

    # for shared folders you need the domain
    test2:       [EMAIL PROTECTED]

then rebuild it.

Scot

Reply via email to