GNOME Bugzilla – Bug 761794
Sending mail to smtp.google.com on IPv6 fails but works on IPv4
Last modified: 2021-05-19 12:26:55 UTC
Using 3.16.5 on Ubuntu-Gnome. Have connected via the gnome settings to my Google Apps account for work. Sending mail sometimes fails (sometimes doesn't) when sending mail via smpt.gmail.com. When manually setting the /etc/hosts entry to use an IPV4 address (or connecting to a gateway that only provides an IPV4 address) it fails to send mail. Providing a popup that says: The reported error was "HELO command failed: Peer failed to perform TLS handshake". I ran evolution with the debug flag on: export CAMEL_DEBUG=all and recieved the following output: [SMTP] sending: EHLO [IPv6:2606:2800:4033:197:69cd:9d5a:4d35:54c1] [SMTP] Connecting to server smtp.gmail.com:587 from account 1451492314.1888.12@nebraska [SMTP] received: 220 smtp.gmail.com ESMTP vy6sm39428508pac.38 - gsmtp [SMTP] sending: EHLO [IPv6:2606:2800:4033:197:69cd:9d5a:4d35:54c1] [SMTP] received: 250-smtp.gmail.com at your service, [2606:2800:4033:197:69cd:9d5a:4d35:54c1] [SMTP] received: 250-SIZE 35882577 [SMTP] received: 250-8BITMIME [SMTP] received: 250-STARTTLS [SMTP] received: 250-ENHANCEDSTATUSCODES [SMTP] received: 250-PIPELINING [SMTP] received: 250-CHUNKING [SMTP] received: 250 SMTPUTF8 [SMTP] sending: STARTTLS [SMTP] received: 220 2.0.0 Ready to start TLS [SMTP] sending: EHLO [IPv6:2606:2800:4033:197:69cd:9d5a:4d35:54c1] ## Workaround I believe that this "should" be working. As a temporary workaround you can set the following in you're /etc/hosts file and mails will send: # Evolution IPV6 SMTP Issue 74.125.30.108 smtp.gmail.com
Thanks for a bug report. The error is returned by the library which does connection to the server, in this case gnutls, if I'm not mistaken. If it says the peer failed to perform TLS handshake, then it can be that the Google server (the peer on IPv6 in this case) failed for it. It doesn't necessarily mean it's Google server issue, it can be on the gnutls side or anywhere in between. If you have similarly old gnutls as you have the evolution (the 3.16.5 is not that fresh), then maybe an update to more recent versions of the libraries (glib2, glib-networking, gnutls and evolution) may address some parts of the issue. Still, I cannot tell for sure, because I do not follow gnutls development, neither glib2, nor glib-networking.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/Community/GettingInTouch/BugReportingGuidelines and create a new bug report ticket at https://gitlab.gnome.org/GNOME/evolution/-/issues/ Thank you for your understanding and your help.