Problem with TLS support

Bug #23548 reported by Dani Baeyens
18
Affects Status Importance Assigned to Milestone
Evolution
Expired
High
evolution (Ubuntu)
Invalid
Medium
Ubuntu Desktop Bugs

Bug Description

I've setup evolution to use TLS authentication to fetch mail, but logcheck gives
this error on the pop server:

System Events
=-=-=-=-=-=-=
Oct 8 14:59:54 localhost courierpop3login: couriertls: accept:
error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number

This thread on evolution-list may give some tips about this:
http://mail.gnome.org/archives/evolution-list/2005-May/msg00017.html

Apparently this problem is corrected on evolution, but maybe could be an ubuntu
problem related to the linked libraries...

Thanks.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. What version of Ubuntu do you use?

Revision history for this message
Dani Baeyens (danibaeyens) wrote :

I'm using Breezy Badger with last packages. Ask for whatever you need :)

Revision history for this message
Sebastien Bacher (seb128) wrote :

Do you still have that issue?

Revision history for this message
Dani Baeyens (danibaeyens) wrote :

Yes, it still fails. evolution can start correctly a plain session and a SSL session, but it
can't stablish a TLS session.

Revision history for this message
Daniel Holbach (dholbach) wrote :

You could run evolution with CAMEL_DEBUG=all and attach the output as a file to
this bug - maybe we can get closer to what actually goes wrong.

Revision history for this message
Dani Baeyens (danibaeyens) wrote :

Created an attachment (id=5638)
Log with CAMEL_DEBUG=all set

I've cut just the "fetching mail" part. If it's needed the full log, I can send
it too

Revision history for this message
Dani Baeyens (danibaeyens) wrote :

needed info attached

Changed in evolution:
status: Needs Info → Unconfirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

I've forwarded the issue upstream: http://bugzilla.gnome.org/show_bug.cgi?id=336543

What setting do you use exactly for the authentification?

Changed in evolution:
assignee: seb128 → desktop-bugs
Revision history for this message
Andrew Beresford (beezly) wrote :

STARTTLS support in evolution seems to be broken;

I just did a capture with evolution talking to a TLS enabled server;

* OK IMAP4 Ready woodchuck 00023754

A00000 CAPABILITY

* CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS

A00000 OK CAPABILITY

A00001 STARTTLS

A00001 OK Begin TLS negotiation now

A00002 LOGIN cs1ajb my-password-in-the-clear

It looks like evolution never bothers to do the TLS negotiation and just starts talking in the clear.

Changed in evolution:
status: Unconfirmed → Confirmed
Revision history for this message
Daniel Holbach (dholbach) wrote :

Upstream comment:

I can't reproduce this latest comment... perhaps your SSL libraries don't work?
I have no idea...

how are you getting this "trace"? CAMEL_DEBUG? If so, CAMEL_DEBUG output won't
show that the stream is encrypted because it prints the date before/after
encryption/decryption takes place, so as to actually be useful to us developers
trying to read the protocol log :)

Changed in evolution:
status: Unconfirmed → Needs Info
Revision history for this message
Sean W. Mahan (sean-paragoogle) wrote :

This bug had not been an issue for me in Dapper, but has popped up in Edgy. At issue is a connection to a courier imap server using TLS authentication.

Evolution gives the error: "Failed to connect to IMAP server [server.address] in secure mode: SSL negotiations failed"

On the server side, Courier logs: "couriertls: accept: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number".

Courier is running on Debian Stable (Sarge), and is up to date. The IMAP server certificate is of the self-signed lazy "let courier set it up" variety. Thunderbird continues to connect using TLS correctly. Let me know if there's any other info I can provide to help with this!

Revision history for this message
Sean W. Mahan (sean-paragoogle) wrote :

P.S. As I mentioned above, I had been using the lazy ("localhost") courier cert for TLS authentication. Worth noting that even after switching to a self-signed cert for the correct server address, I have the same issue.

Revision history for this message
Lauren Matheson (inan-coldsnap) wrote :

I have similar behaviour with Evolution (Dapper) talking to my Debian server using uw-imapd. In my case plaintext passwords are disabled on the server outside of TLS, and after attempting a STARTTLS command evolution backs off to CRAM-MD5 without encryption.

The notes in the server log:
Oct 24 13:51:48 guinness imapd[31748]: connect from 64.26.x.y (64.26.x.y)
Oct 24 13:51:48 guinness imapd[31748]: imap service init from 64.26.x.y
Oct 24 13:51:48 guinness imapd[31748]: Unable to accept SSL connection, host=ottawa-hs-64-26-x-y.d-ip.magma.ca [64.26.x.y]
Oct 24 13:51:48 guinness imapd[31748]: SSL error status: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
Oct 24 13:51:48 guinness imapd[31749]: connect from 64.26.x.y (64.26.x.y)
Oct 24 13:51:48 guinness imapd[31749]: imap service init from 64.26.x.y
Oct 24 13:51:49 guinness imapd[31749]: Authenticated user=myusername host=ottawa-hs-64-26-x-y.d-ip.magma.ca [64.26.x.y]

Revision history for this message
Daniel Holbach (dholbach) wrote :

Andrew: can you follow up to my question?

Forwarded the other comments upstream.

Changed in evolution:
status: Needs Info → Confirmed
Revision history for this message
Daniel Holbach (dholbach) wrote :

Andrew?

Revision history for this message
Daniel Holbach (dholbach) wrote :

Last comment on the upstream bug:
"...
What I'm saying is that the config pasted does work with "Use Secure
Connection" set to "SSL encryption"."

Can somebody confirm?

Changed in evolution:
status: Confirmed → Needs Info
Revision history for this message
Daniel Holbach (dholbach) wrote :

We are closing this bug report as it lacks the information, described in the previous comments, we need to investigate the problem further. However, please reopen it if you can give us the missing information and don't hesitate to submit bug reports in the future.

Changed in evolution:
status: Needs Info → Rejected
Revision history for this message
Lauren Matheson (inan-coldsnap) wrote :

Daniel What information are you looking for? The upstream comment doesn't address the issue that I encounter and that Andrew and Dani commented on -- it pertains to SSL, not TLS.

Changed in evolution:
importance: Unknown → High
Changed in evolution:
status: Confirmed → Incomplete
Changed in evolution:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.