The cyrus and
cyrusbb delivery agents are intended for use with
the cyrus V1 IMAP server from CMU. If you have upgraded to Cyrus V2,
you should skip this section and go to the next one, which describes
the cyrusv2 delivery agent. First, note that the
local delivery agent must be defined before you
can define cyrus:
MAILER(`local') define first
MAILER(`cyrus') define second
The cyrus delivery agent can be used for local
delivery, if you use an mc configuration
statement such as this:
define(`confLOCAL_MAILER', `cyrus')
The cyrus delivery agent, in addition to
performing local delivery, will also recognize local addresses of the
form user+where. When found, and if permitted,
it will deliver to an existing subfolder of the INBOX on the IMAP
server.
Users might or might not have local accounts, but it is assumed that
they do not. Thus, if you run IMAP but have some local users who want
to receive mail in the local spool, you can set up something such as
this:
LOCAL_CONFIG
F{NonCyrus} /etc/mail/NonCyrus
LOCAL_RULE_0
R $={NonCyrus} $: $# local $: $1
R $={NonCyrus} < @ $=w . > $: $# local $: $1
Here, users listed in the file
/etc/mail/NonCyrus will have their mail
delivered locally even if the local delivery agent
is defined as cyrus.
The cyrusbb delivery agent is used to deliver mail
to the IMAP bulletin boards so that it can be fetched by
imapd(8). Any local user address that begins
with bb+ will be delivered for later fetching by
IMAP.
The defaults for the cyrus delivery agent are
listed in Table 20-2. The mc
configuration macros at the left can be used to modify or replace
those defaults.
Table 20-2. mc macros to modify the cyrus delivery agent
CYRUS_MAILER_ARGS
|
See this section
|
A=deliver -e -m $h -- $u
|
CYRUS_MAILER_FLAGS
|
See this section
|
F=Ah5@/:|lsDFMnPq
|
CYRUS_MAILER_MAX
|
See this section
|
no M= default
|
CYRUS_MAILER_PATH
|
See this section
|
P=/usr/cyrus/bin/deliver
|
none
|
R=
|
R=EnvToL/HdrToL
|
none
|
S=
|
S=EnvFromL
|
none
|
T=
|
T=DNS/RFC822/X-Unix
|
CYRUS_MAILER_USER
|
U=
|
U=cyrus:mail
|
CYRUS_MAILER_QGRP
|
Q=
|
no Q= default
|
CYRUS_BB_MAILER_ARGS
|
See this section
|
A=deliver -e -m $h -- $u
|
CYRUS_BB_MAILER_FLAGS
|
See this section
|
F=ulsDFMnP
|
Note that mc configuration macro definitions
must always precede the MAILER declaration to which they relate.
The Cyrus IMAP server as well as cyrus and
cyrusbb delivery agents are available from
http://asg.web.cmu.edu/cyrus/.