Didi Rieder wrote:
I'd like to set up cyrus with some virtual domains using sendmail as MTA.

How do I configure sendmail such that messages to addresses like
[EMAIL PROTECTED]
will be delivered to the mailbox "username" in the virtual domain?

right now I use the cyrusv2.m4 from <http://anfi.homeunix.net/sendmail/cyrusv2.html>

in the mailertable I have entries like this:
virt.domain.com    cyrusv2d:/var/imap/socket/lmtp

but it seems that messages will not be delivered to the users mailbox.

[mail]# sendmail -C sendmail.cf -bv [EMAIL PROTECTED]
[EMAIL PROTECTED] deliverable: mailer cyrusv2d, host /var/imap/socket/lmtp, user [EMAIL PROTECTED]


How can I resolve first.last to username? (aliases don't work: I have identical first.last in multiple domains)

You can choose from two known options:

1) "Classic" recommendation:
Use virtusertable for non local email domains (sendmail-8.10+).

*.mc file:
LOCAL_CONFIG
F{VirtHost}/etc/mail/virtual-domains

/etc/mail/virtual-domains file:
virt.domain.com

virtusertable file (needs recompilation using makemap):
[EMAIL PROTECTED]  [EMAIL PROTECTED]

URL(s):
http://www.sendmail.org/m4/features.html#virtusertable
WARNING: Before using VIRTUSER_DOMAIN or VIRTUSER_DOMAIN_FILE read *CAREFULLY* about their side effects.


2) Another alternative:
Turn on aliases on cyrusv2d mailer (add F=A flag)

*.mc file:
dnl cyrusv2 release B - http://anfi.homeunix.net/sendmail/cyrusv2.html
MODIFY_MAILER_FLAGS(`CYRUSV2D',`+A')
MAILER(`cyrusv2')

aliases file:
[EMAIL PROTECTED]:  [EMAIL PROTECTED]

P.S.
You can make sendmail check cyrus mailbox presence when replying to "RCPT TO:" - http://anfi.homeunix.net/sendmail/rtcyrus2.html


--
Andrzej [en:Andrew] Adam Filip [EMAIL PROTECTED] [EMAIL PROTECTED]
http://anfi.homeunix.net/cyrus/ http://slashdot.org/~anfi
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Reply via email to