Summary: | STARTTLS can't be enabled in imapd using courier-imap | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Chris Eaton <tridus> |
Component: | [OLD] Server | Assignee: | Net-Mail Packages <net-mail+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aeonflux, timmy |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Chris Eaton
2004-01-28 04:27:01 UTC
This is because in order for STARTTLS to work on the imap protocol, the binary couriertls needs to be run, rather then couiertcpd. However the port only choices to install the couriertcpd binary, rather then both. Worse the files/gentoo-imapd.rc script is hardcoded to use couriertcpd regardless of whether or not starttls has been set. this is the same bug as described in bug # 39762 bug # 39762 describes the problem a little more accuratly *** Bug 39762 has been marked as a duplicate of this bug. *** I've been banging my head against this for a while as well, but I've finally got it working. There's a bug in gentoo-imapd.rc: --- gentoo-imapd.rc.org Wed Mar 10 11:32:38 2004 +++ gentoo-imapd.rc Wed Mar 10 11:36:09 2004 @@ -19,7 +19,8 @@ done ulimit -d $IMAP_ULIMITD -export IMAPDSTARTTLS +IMAP_STARTTLS=$IMAPDSTARTTLS +export IMAP_STARTTLS TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL eval `sed -n '/^#/d;/=/p' </etc/courier-imap/imapd | \ sed 's/=.*//;s/^/export /;s/$/;/'` With this change, STARTTLS is enabled on the unencrypted port. Tim That worked for me, thanks! I don't suppose we could get an update to the package with this change? In fact a new version of courier-imap would be nice. According to http://sourceforge.net/project/showfiles.php?group_id=5404 there have been 5 releases since v2.1.2. Thank you for the new version of courier-imap (courier-imap-3.0.2), the update is appreciated. However, the bug in gentoo-imapd.rc is still present, and without it STARTTLS support is BROKEN. Can you please include the patch in the ebuild? fixed in cvs for 3.0.5 |