virtual domains question
Andrzej Filip
anfi at priv.onet.pl
Tue Apr 27 12:53:26 EDT 2004
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
> first.last at virt.domain.com
> 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 first.last at virt.domain.com
> first.last at virt.domain.com... deliverable: mailer cyrusv2d, host
> /var/imap/socket/lmtp, user first.last at virt.domain.com
>
> 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):
first.last at virt.domain.com username at virt.domain.com
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:
first.last at virt.domain.com: username at virt.domain.com
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 anfi at priv.onet.pl anfi at xl.wp.pl
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
More information about the Info-cyrus
mailing list