Hi there,
I am in the process of building a new mail server based on Cyrus 2.0.11 (we
currently use 1.5.14 on our production system).
We make extensive use of bb style mailboxes, and have facilities set up to
allow users to send mail to addresses such as user+user.grant.mailbox, to
allow direct mailbox delivery of messages, rather than having them delivered
to the inbox.
I have been unsuccessful in configuring this with 2.0.11. I have things
configured to use lmtp just as the documentation says. Delivering to 'grant'
works fine, but delivering to 'user+user.grant.mailbox' returns "service
unavailable" according to sendmail.
We achieved the delivery to user mailboxes with 1.5.14 by setting the 'p'
flag on the mailboxes for the user 'admin'. The relevant sendmail 8.9.3
config is below.
-snip-
define(`CYRUS_USER_MAILER_FLAGS', `Su')
define(`CYRUS_USER_MAILER_ARGS', `deliver -e -m $u -a admin')
Mcyrususer, P=/opt/net/cyrus/bin/deliver,
F=CONCAT(lsDFMnPSu, CYRUS_USER_MAILER_FLAGS), S=10, R=20/40, T=X-Unix,
U=cyrus:mail, A=CYRUS_USER_MAILER_ARGS
LOCAL_RULE_0
# allow users to post directly to imap mailboxes
Ruser + $+ < @ $=w . > $#cyrususer $: $1
-snip-
I have tried using the following with sendmail 8.11.2/Cyrus 2.0.11, as per
the bb example.
-snip-
Mcyrus, P=[IPC], F=lsDFMnqA@/:|SmXz, E=\r\n,
S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix, U=cyrus:mail,
A=FILE /var/imap/socket/lmtp
LOCAL_RULE_0
Ruser + $+ < @ $=w . > $#cyrus $: + $1
-snip-
I think this is somehow permissions related - if I try mailing to
user+user.grant.blah (which doesn't exist), I get a user unknown. If I try
mailing to user+user.grant.mailbox, I get service unavailable (logged by
sendmail). user.grant.mailbox has user cyrus with flag 'p'.
What is the appropriate way to do this? What I am trying to do is no
different than standard bb+ style mailboxes, with a different prefix. :)
g.