Hi, there is a small but important patch that helps cyrus to deliver mail to user@foobar.net instead of "user", with this patch its very easy to install virtual domains with cyrus. The problem is that the cyrus lmtpd is chopping off the @domain before delivering to the mailbox. A fix to this is to apply the lmtp patch at: http://www.surf.org.uk/downloads/ The 2.1.5 patch works fine with 2.1.11. put in the src_unpack: patch -p0 < ${FILESDIR}/lmtp_domain.diff || die "patch failed"
Created attachment 10831 [details, diff] patch for cyrus-imapd 2.1.11 this is a slightly modified patch (change pathname) of the "surf" patch
http://asg.web.cmu.edu/cyrus/download/imapd/faq.html <snip> Virtual hosting - This will be supported starting in Cyrus 2.2 </snip> cyrus-imapd-2.1.13 is the current stable package in gentoo and the suggested patch does not apply properly. I am not aware of any sites that are actively using virtual hosting with cyrus so I cannot verify this code. If another solution comes along which can apply cleanly to the 2.1 series and can be verified working I can reconsider the patching.
Its simply a bugfix in this patch that passes the domain in an email adress via lmtp (which is normally stripped out). The patch worked fine with 2.1.11/2.1.12 . I can re-check that the patch works for 2.1.13. There are quite a couple sites runnnin that patch (including mine :P) without any problems for quite some time now. (I run a mail-server for > 100 domains with this flavor of cyrus, sasl2 and postfix)
this is old bug. cyrus-imapd-2.2 supports virtual domain.