Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19542 - cyrus imapd 2.1.11 and 2.1.12 missing patch for virtual hosting
Summary: cyrus imapd 2.1.11 and 2.1.12 missing patch for virtual hosting
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-18 07:55 UTC by Michael Glauche (RETIRED)
Modified: 2005-01-12 19:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for cyrus-imapd 2.1.11 (lmtp_domain.diff,3.34 KB, patch)
2003-04-18 07:56 UTC, Michael Glauche (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Glauche (RETIRED) gentoo-dev 2003-04-18 07:55:32 UTC
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"
Comment 1 Michael Glauche (RETIRED) gentoo-dev 2003-04-18 07:56:54 UTC
Created attachment 10831 [details, diff]
patch for cyrus-imapd 2.1.11

this is a slightly modified patch (change pathname) of the "surf" patch
Comment 2 Nick Hadaway 2003-06-10 10:26:39 UTC
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.
Comment 3 Michael Glauche (RETIRED) gentoo-dev 2003-06-11 01:19:32 UTC
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)
Comment 4 Tuan Van (RETIRED) gentoo-dev 2005-01-12 19:59:30 UTC
this is old bug. cyrus-imapd-2.2 supports virtual domain.