Evolution won't connect to gmail

Hi,
I use Evolution as a mail program to connect to gmail to receive and send to the opensuse mailing list (opensuse@opensuse.org). About a week or so ago, it all of a sudden stopped connecting to my gmail account.

The reason given by Evolution is:

The reported error was “Error reading data from TLS socket: The specified session has been invalidated for some reason.”.

I’ve checked through all my settings in the account preferences in Evolution with reference to instructions given by gmail for imap at:

https://support.google.com/mail/answer/7126229?hl=en&visit_id=636938256372823744-3905912937&rd=2

My settings are all correct.

I’ve tried to switch to pop to receive and send, per the instructions given at:
https://support.google.com/mail/answer/7104828?hl=en&visit_id=636938256372823744-3905912937&rd=1

But I get the same error message, "Error reading data from TLS socket. The specified session has been invalidated for some reason.

This is even though the settings for pop are all correct.

Now, I have to log into the gmail website using a browser to view my gmail account, Evolution won’t connect.

Things were working fine until it didn’t work anymore, and I didn’t do anything to goon it up by changing settings. Any ideas as to what is wrong?

Thanks

Hi
Do the following commands work?


gnutls-cli -p 993 imap.gmail.com

gnutls-cli -p 993 imap.googlemail.com
Note: ctrl+c to exit this one

Also have a look at https://wiki.gnome.org/Apps/Evolution/Debugging

gnutls-cli -p 993 imap.gmail.com
Processed 405 CA certificate(s).
Resolving ‘imap.gmail.com:993’…
Connecting to ‘64.233.191.109:993’…

  • Certificate type: X.509

  • Got a certificate list of 2 certificates.

  • Certificate[0] info:

  • subject CN=imap.gmail.com,O=Google LLC,L=Mountain View,ST=California,C=US', issuer CN=Google Internet Authority G3,O=Google Trust Services,C=US’, serial 0x0da41d890faeef88f69a241ccbfd2cef, RSA key 2048 bits, signed using RSA-SHA256, activated 2019-04-30 09:12:50 UTC', expires 2019-07-23 09:02:00 UTC’, pin-sha256=“EycbG7GiyB5wdpXVPSvktuvBnLU26RUo3XYjkb5F7zY=”
    Public Key ID:
    sha1:e609583baa92772e6dc991951264f1bbd1ddc16f
    sha256:13271b1bb1a2c81e707695d53d2be4b6ebc19cb536e91528dd762391be45ef36
    Public Key PIN:
    pin-sha256:EycbG7GiyB5wdpXVPSvktuvBnLU26RUo3XYjkb5F7zY=

  • Certificate[1] info:

  • subject CN=Google Internet Authority G3,O=Google Trust Services,C=US', issuer CN=GlobalSign,O=GlobalSign,OU=GlobalSign Root CA - R2’, serial 0x01e3a9301cfc7206383f9a531d, RSA key 2048 bits, signed using RSA-SHA256, activated 2017-06-15 00:00:42 UTC', expires 2021-12-15 00:00:42 UTC’, pin-sha256=“f8NnEFZxQ4ExFOhSN7EiFWtiudZQVD2oY60uauV/n78=”

  • Status: The certificate is trusted.

  • Description: (TLS1.3)-(ECDHE-X25519)-(RSA-PSS-RSAE-SHA256)-(AES-256-GCM)

  • Options:

  • Handshake was completed

  • Simple Client Mode:

  • OK Gimap ready for requests from 68.45.168.145 18mb304903751ivo

Haven’t looked at the debugging website yet. Tomorrow, I’m going to bed.

Hi!
I had problem in both Leap15.0 and 15.1 and Evolution with Gmail. I found https://www.reddit.com/r/openSUSE/comments/bmgvzx/error_writing_data_to_tls_socket/

“This issue occurs after the update of gnutls library to version 3.6.7-lp150.9.1.
As quick workaround return to version 3.6.2-lp150.6.1. This solved the issue on my end.”

It solved the problem for me too, I DL
libgnutls30-3.6.2-lp150.3.2.x86_64.rpm (Leap15.0) and libgnutls30-3.6.2-lp151.3.2.x86_64.rpm (Leap15.1) and it’s important to put a lock on these version(s) otherwise they will be updated to libgnutls30-3.6.7… Next update.

Regards

Hello,

Just a “+1” post, getting the same “Error writing data to TLS socket: The specified session has been invalidated for some reason.” issue with gmail (g suite accounts) since at least 10 days under an fully up to date Opensuse Leap 15.0. Connecting to the accounts over terminal (openssl) or other clients is working fine.

I tried quite a lot of things in the mean time (compiling from source, trying to install tumbleweed packages, etc.), without success unfortunately. Why is the evolution version (3.26.6) under 15.0 (and especially the unreleased 15.1) so old compared to the live releases from the gnome project ? cf. https://repology.org/project/evolution/versions : all red for Suse excepted for Tumbleweed. Current stable release would be 3.32.2 according to https://wiki.gnome.org/Apps/Evolution (last release in May 2019).

In the Gnome Factory it would be up to date, but it does not seem to be usable under 15.x : https://build.opensuse.org/package/show/GNOME%3AFactory/evolution

Can we hope for a version bump in a near future, or what would you suggest ? Getting back to Thunderbird in the mean time but ready to test anything, I will also try the libgnutls downgrade mentioned in this thread.

Thanks & kind regards, Olivier

My suggestion for a solution to Gmail issues is here: <https://forums.opensuse.org/showthread.php/536026-Can-t-send-emails-to-opensuse-mailing-list?p=2902986#post2902986>.

  • It’s also my solution for dealing with Microsoft accounts …
  • Despite trusting Google somewhat more than my mistrust of the Redmond people, I remain cautious with my Gmail account and prefer to not access such e-Mail accounts directly with open source e-Mail clients – especially those e-Mail clients which Google and Microsoft seem to regard as being “hard competition” to their own e-Mail client products …

Re, just a short confirmation that it is working again after running this:


wget http://widehat.opensuse.org/opensuse/distribution/leap/15.0/repo/oss/x86_64/libgnutls30-32bit-3.6.2-lp150.3.2.x86_64.rpm
wget http://widehat.opensuse.org/opensuse/distribution/leap/15.0/repo/oss/x86_64/libgnutls30-3.6.2-lp150.3.2.x86_64.rpm
rpm -e --nodeps libgnutls30-32bit-3.6.7-lp150.9.1.x86_64 libgnutls30-3.6.7-lp150.9.1.x86_64 
rpm -Uvh libgnutls30-3.6.2-lp150.3.2.x86_64.rpm libgnutls30-32bit-3.6.2-lp150.3.2.x86_64.rpm

Not ideal of course as libgnutls is outdated then.
++, Olivier

Interesting workaround, but not usable in my case (multiple accounts, many folders, etc.). And OAUTH is working fine, so I have no special fear for security issues (excepted about the outdated libs, and also the very outdated evolution version…

Cheers, Olivier

Thanks for the replies to my problem. I reverted to libgnutls 3.6.2 and that has fixed the issue, and I can connect to the opensuse mail list with Evolution using the gmail account once again.

Thanks for the help!

Hi!

Reported as https://bugzilla.opensuse.org/show_bug.cgi?id=1135660

regards

Thanks very much this instruccion working for me…!

Everything back to normal now, gnutls and evolution packages have been updated. Working setup currently with:

libgnutls30-32bit-3.6.7-lp150.9.1.x86_64
libgnutls30-3.6.7-lp150.9.1.x86_64

evolution-data-server-3.26.6-lp150.1.14.x86_64
evolution-lang-3.26.6-lp150.3.3.1.noarch
evolution-data-server-lang-3.26.6-lp150.1.14.noarch
evolution-3.26.6-lp150.3.3.1.x86_64

Many thanks for the fixes & until next time :slight_smile: (an updated evolution version to 3.32 in Leap 15.1 would still be very appreciated…)

I have notice to solve the bug in 15.1 by zypper (dup)about Evolution and connect to gmail. ( and 3.6.7.lp151.2.3.-x86_64 Gnu) Working for me now.

openSUSE-RU-2019:1457-1: An update that has one recommended fix can now be installed.

Category: recommended (important)
Bug References: 1134795
CVE References:
Sources used:
openSUSE Leap 15.1 (src): glib-networking-2.54.1-lp151.3.3.1
openSUSE Leap 15.0 (src): glib-networking-2.54.1-lp150.2.3.1

Regards

Yes, I saw that update and wondered whether it would fix the problem. And then there was a recent “gnutls” update, which might also be related.

I don’t use Evolution, so I can’t check. Thanks for the feedback. Other folk who had this problem might want to check whether it is now solved.

I think that you should think about restoring your G Suite. But before doing so, you’ll need a G Suite backup solution like this one https://spinbackup.com/products/google-apps-backup/. Cybersecurity and protecting your data is vital.