View Issue Details

IDProjectCategoryView StatusLast Update
0002386SOGoBackend Mailpublic2013-09-27 15:55
Reporteravoegele Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.0.6 
Target Version2.1.0Fixed in Version2.1.0 
Summary0002386: IMAP - TLS over port 143
Description

This ticket amends ticket 0002361, which was closed without resolving the issue.

According to the SOGo Installation Guide and a comment in SOGoUser.m TLS connections to the IMAP server have to be configured with the "imaps" scheme. The documentation and the comment in the source code are wrong.

The code in SOGoUser.m will always use SSL if the "imaps" scheme is given. TLS only works if the "imap" scheme along with "?tls=YES" is used in the configured URI.

Below is the relevant code section from SOGoUser.m, which shows that "encryption" will only be set to "tls" if the "imaps" scheme is NOT given:

if (scheme
&& [scheme caseInsensitiveCompare: @"imaps"] == NSOrderedSame)
{
encryption = @"ssl";
defaultPort = 993;
}
else
{
query = [cUrl query] ? [cUrl query] : [url query];
if (query && [query caseInsensitiveCompare: @"tls=YES"] == NSOrderedSame)
encryption = @"tls";
else
encryption = @"none";
defaultPort = 143;
}

TagsNo tags attached.

Activities

ludovic

ludovic

2013-09-27 15:55

administrator   ~0006067

Fixed: https://github.com/inverse-inc/sogo/commit/7dc65af3004ee000271851a995b918d08857ee9c

Please try an upcoming nightly build and reopen if necessary.

Issue History

Date Modified Username Field Change
2013-08-05 01:55 avoegele New Issue
2013-09-27 15:55 ludovic Target Version => 2.1.0
2013-09-27 15:55 ludovic Note Added: 0006067
2013-09-27 15:55 ludovic Status new => closed
2013-09-27 15:55 ludovic Resolution open => fixed
2013-09-27 15:55 ludovic Fixed in Version => 2.1.0