[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2018-05-27 Thread Jörg Thalheim
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #31 from Jörg Thalheim  ---
new bug report: https://bugs.kde.org/show_bug.cgi?id=394769

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2018-05-27 Thread Rex Dieter
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #30 from Rex Dieter  ---
Better file a new bug than comment on closed/fixed ones, imho

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2018-05-27 Thread Jörg Thalheim
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #29 from Jörg Thalheim  ---
As a workaround I enabled smpts/imaps port (TLS without STARTTLS) to have
TLSv1.2

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2018-05-27 Thread Jörg Thalheim
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #28 from Jörg Thalheim  ---
This line should not be hard coded to TLSv1 in kimap:
https://github.com/KDE/kimap/blob/35464c7fd3858d70c8ac0558ecece216e3a95398/src/loginjob.cpp#L254

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2018-05-27 Thread Jörg Thalheim
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #27 from Jörg Thalheim  ---
Both kimap and ksmtp suffer from the same issue. I can not connect to
dovecot/postfix when I enforce protocols greater then TLSv1, because this would
in turn disable STARTTLS on the connection.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2018-05-27 Thread Jörg Thalheim
https://bugs.kde.org/show_bug.cgi?id=342567

Jörg Thalheim  changed:

   What|Removed |Added

 CC||joerg@thalheim.io

--- Comment #26 from Jörg Thalheim  ---
I assume Andrius Štikonas was using TLS 1.2 without STARTTLS, which should work
however for STARTTLS an incorrect patch was applied which hard codes TLSv1 for
STARTTLS.

I have written a longer explanation here:
https://github.com/KDE/ksmtp/commit/e83911f9d1963b5e7181932960f999f331b4a5f9#r29145231

Please consider to reopen this ticket

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2018-01-12 Thread zless
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #25 from zless  ---
Some additional info:

The problem computer (KMail only uses TLSv1 for SMTP) has ksmtp-17.12.1 which
seems introduced in 17.12.

Another computer, with 17.08, has no ksmtp package and KMail successfully uses
TLSv1.2 for SMTP.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2018-01-01 Thread zless
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #24 from zless  ---
Strange, this might indicate some configuration error on my side.

However, I tested the same postfix server with 3 email clients: KMail, Sylpheed
and K9-Mail on Android.

KMail is the only one that has these postfix logs:

postfix/submission/smtpd[18455]: Anonymous TLS connection [...]: TLSv1 with
cipher ECDHE-RSA-AES128-SHA (128/128 bits)

The other clients show this:

postfix/submission/smtpd[18455]: Anonymous TLS connection [...]: TLSv1.2
with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)

This is for SMTP with STARTTLS. The IMAP connections are using TLSv1.2 as
expected.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2017-12-31 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #23 from Andrius Štikonas  ---
Strange, I just checked, on my system (frameworks 5.40 and kde apps 17.12) I
still get TLSv1.2

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2017-12-31 Thread zless
https://bugs.kde.org/show_bug.cgi?id=342567

zless  changed:

   What|Removed |Added

 CC||k...@dmesg.site

--- Comment #22 from zless  ---
With kde-frameworks 5.41 and kde-applications 17.12 KMail still uses only
TLSv1.

Maybe this bug should be reopened?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2016-09-29 Thread Andrius Štikonas via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=342567

Andrius Štikonas  changed:

   What|Removed |Added

   Version Fixed In||16.12
 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED

--- Comment #21 from Andrius Štikonas  ---
All patches are not merged. Will be fixed in 16.12 with Frameworks 5.27.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2016-09-28 Thread Andrius Štikonas via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #20 from Andrius Štikonas  ---
kio patch is now merged too, commit 8196a735bebc6fd5eaf9d293bd565c00ef98516b

So SMTP should be working now.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2016-09-26 Thread Andrius Štikonas via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #19 from Andrius Štikonas  ---
Ok, I've submitted 3 review requests to git.reviewboard.kde.org kmailtransport
fix seems to be already in.

kio: https://git.reviewboard.kde.org/r/129031/
kimap: https://git.reviewboard.kde.org/r/129030/
libksieve: https://git.reviewboard.kde.org/r/129029/

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2016-09-26 Thread Rex Dieter via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=342567

Rex Dieter  changed:

   What|Removed |Added

 CC||rdie...@math.unl.edu

-- 
You are receiving this mail because:
You are the assignee for the bug.


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2016-08-22 Thread Magnus Kessler via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=342567

Magnus Kessler  changed:

   What|Removed |Added

 CC||magnus.kess...@gmx.net

--- Comment #18 from Magnus Kessler  ---
Still an issue with 16.08 (KF5 5.25)

-- 
You are receiving this mail because:
You are the assignee for the bug.


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2016-06-16 Thread Teemu Torma via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=342567

Teemu Torma  changed:

   What|Removed |Added

  Attachment #90267|0   |1
is obsolete||

--- Comment #17 from Teemu Torma  ---
Created attachment 99540
  --> https://bugs.kde.org/attachment.cgi?id=99540&action=edit
Patch to allow imap/smtp/managesieve to use TLSv1.2 in KF5

For KF5, as packaged in kubuntu ppa backports, this allows TLSv1.2 (and later)
for mail handling.   The patch contains patches for four packages and may need
to be split accordingly.

 The following changes in packages were needed for KF5:

kdepim: to fix managesieve
kimap: to fix imap

kio: to fix smtp
kmailtransport: to fix smtp

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2016-06-16 Thread Andrius Štikonas via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=342567

Andrius Štikonas  changed:

   What|Removed |Added

 Resolution|FIXED   |---
 Ever confirmed|0   |1
 Status|RESOLVED|REOPENED

--- Comment #16 from Andrius Štikonas  ---
Still not working for me with 16.04.2 (KF5 5.21)

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2015-09-08 Thread Eric Christensen
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #15 from Eric Christensen  ---
In what version of Kmail is this fixed?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2015-09-05 Thread Allen Winter
https://bugs.kde.org/show_bug.cgi?id=342567

Allen Winter  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|UNCONFIRMED |RESOLVED

--- Comment #14 from Allen Winter  ---
thanks for your fast response.
resolving then

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2015-09-05 Thread Teemu Torma
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #13 from Teemu Torma  ---
I am currently using Ubuntu Vivid with kubuntu-backports as it is and that
works for me, and has been since Vivid was released in April.

It has been a while, but for what I remember, I saw Laurent implement some
things in my patch at some point, but not all,  However, everything works for
me right now without any patching of my own.

What comes to this bug, I do consider it as done.  My patch in itself, I do
consider it applies to the version I reported, since I had to use it to get
things working.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2015-09-05 Thread Allen Winter
https://bugs.kde.org/show_bug.cgi?id=342567

Allen Winter  changed:

   What|Removed |Added

 CC||win...@kde.org

--- Comment #12 from Allen Winter  ---
Dawit, Teemu,

Any advice on what to do with the patch attached to this bug?
I'd like to clear this one up.  Unfortuntately us remaining kdepim devs really
aren't sure how to handle it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2015-09-03 Thread Eric Christensen
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #11 from Eric Christensen  ---
Any update on this?  I found this issue last night on Debian.  I, too, am
trying to make my communications more secure.  TLSv1.0 is already starting to
show its age and I'm sure there will be more to come.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2015-09-03 Thread Eric Christensen
https://bugs.kde.org/show_bug.cgi?id=342567

Eric Christensen  changed:

   What|Removed |Added

 CC||e...@christensenplace.us

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2015-06-10 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=342567

Andrius Štikonas  changed:

   What|Removed |Added

 CC||andr...@stikonas.eu

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2015-01-09 Thread Teemu Torma
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #10 from Teemu Torma  ---
I might add that disabling SSLv3 from auto negotiation has really nothing to do
with it being the only protocol available.  The problem is that
man-in-the-middle can cause the auto negotiation to fail.  Even if both server
and client support TLSv1.2, man-in-the-middle can signal client that protocol
is not supported, thus client tries lower protocol versions until the
connection with SSLv3 succeeds and is vulnerable to POODLE attack.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2015-01-09 Thread Teemu Torma
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #9 from Teemu Torma  ---
I did have more thorough look into various versions of Qt and how things are
implemented there.  

By the time of Qt 4.7 (2010), QSsl had three protocol options, SslV2, SslV3 and
TlsV1, and auto negotiate AnyProtocol.  At the time openssl did not support
TLSv1.1 or TLSv1.2, so the situation was relatively clear.  The auto
negotiation is done by openssl.

By the time of Qt 4.8 (2011), openssl had added support for newer TLS
protocols, so QSsl was expanded with two new auto negotiate options, TlsV1SslV3
and SecureProtocols.  They both behaved the some, negotiate the highest
protocol excluding SslV2.  Thus, TLSv1.1 and TLSv1.2 started working with these
options, as well as with AnyProtocol. 

Qt5 then added explicit versions TlsV1_0, TlsV1_1 and TlsV1_2 and made TlsV1
alias for TlsV1_0.   Then came POODLE attack and Qt 5.4 dropped SslV3 from
SecureProtocols.

Now, looking KDE, it seems that it uses Qt 4.7 way of doing things and thus
uses TlsV1 in many places.  More appropriate thing would be to use
SecureProtocols and leave disabling SSLv3 to the Qt side, like in Qt 5.4.  That
way, when for example TLSv1.3 lands, just by upgrading openssl would make it
work.

KTcpSocket has at some point added new enumerations TlsV1SslV3 and
SecureProtocols, but it is a bit unclear to me what it is trying to do, since
in QSsl these are enumerated values and KTcpSocket redefines them somehow as
bitmasks.  But these auto negotiate values and explicit protocol values are not
really same thing on Qt level.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2015-01-07 Thread Teemu Torma
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #8 from Teemu Torma  ---
I verified with server log files every combination that TLSv1.2 is used with
QSsl::SecureProtocols.

It is a bit unfortunate that Qt4 QSsl::TlsV1 implies that it is the latest
protocol, and from the code it seems that the idea is to use latest protocols. 
That was true ten years ago, but nowadays it has opposite effect to pinning the
protocol to least acceptable one which has already shown weaknesses. 

I agree that SSLv3 is not ideal, but does disabling that really belong to KDE? 
 I would think that it should be done on lower levels or server side.

Since imap/ssl talks already TLSv1.2 because it speaks any protocol, we could
change just smtp/ssl to get TLSv1.2 functionality, and leave starttls variants
to as they are.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2015-01-07 Thread Dawit Alemayehu
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #7 from Dawit Alemayehu  ---
I dunno this particular code base but what that patch does is bascially change
the protocol to be used during SSL handshake from only TLSv1 to SSLv3/TLSv1. I
am not entirely certain that QSslSocket in Qt 4.x would make a TLSv1.2
connection if you set QSsl::SecureProtocols as the protocol to be used during
handshake. However, it will most definitely attempt use SSLv3 if that is the
only thing available. I dunno if that is desired when making imap/smpt
connections.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2015-01-07 Thread Teemu Torma
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #6 from Teemu Torma  ---
I don't know any of this code either.  I just made a minimal patch to make it
work, I don't know if it should be done like that.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2015-01-07 Thread Laurent Montel
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #5 from Laurent Montel  ---
Hi Dawit could you evaluate patch (kio part please) ?

Thanks

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2015-01-07 Thread Laurent Montel
https://bugs.kde.org/show_bug.cgi?id=342567

Laurent Montel  changed:

   What|Removed |Added

 CC||ada...@kde.org

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2015-01-07 Thread Laurent Montel
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #4 from Laurent Montel  ---
I can't change, and don't know kio code.
I add cc "Dawit Alemayehu " which knows better it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2015-01-07 Thread Teemu Torma
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #3 from Teemu Torma  ---
"kio/kio/tcpslavebase.cpp" change was needed to get smtp/starttls working.

I had to hunt that down once I noticed that patches to kdepimlibs were not
enough.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2015-01-06 Thread Laurent Montel
https://bugs.kde.org/show_bug.cgi?id=342567

Laurent Montel  changed:

   What|Removed |Added

 CC||mon...@kde.org

--- Comment #2 from Laurent Montel  ---
Why it's necessary to patch  "kio/kio/tcpslavebase.cpp" ?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 342567] TLSv1.2 is not used on imap/smtp/managesieve

2015-01-06 Thread Teemu Torma
https://bugs.kde.org/show_bug.cgi?id=342567

--- Comment #1 from Teemu Torma  ---
Created attachment 90267
  --> https://bugs.kde.org/attachment.cgi?id=90267&action=edit
Patch to allow imap/smtp/managesieve to use TLSv1.2

With the following patch I managed to get TLSv1.2 working with imap/ssl,
imap/starttls, smtp/ssl, smtp/starttls and managesieve connections.

The patch basically replaces the forced TLSv1.0 with QSsl::SecureProtocols. 
Since TLSv1.0 is also part of QSsl::SecureProtocols (at least for now), it
should not cause any regression.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs