Re: [exim] Problem sending to google.com

Top Page
Delete this message
Reply to this message
Author: Andrew C Aitchison
Date:  
To: Victor Sudakov
CC: exim-users
Subject: Re: [exim] Problem sending to google.com
On Wed, 28 Sep 2022, Victor Sudakov via Exim-users wrote:

> Dear Colleagues,
>
> Has anyone had problems recently sending to aspmx.l.google.com ?


Yes. This is a known issue
     https://bugs.exim.org/show_bug.cgi?id=2907


The bug is not actually in exim, but in Linux kernel TCP Fast Open code
shipped by at least Debian.

> Sending gets stuck with the following error:
>
> 2022-09-27 21:09:48 1od0Ew-002IUh-GS H=alt2.aspmx.l.google.com [64.233.171.27] TLS error on connection (recv): Error in the pull function.
> 2022-09-27 21:09:48 1od0Ew-002IUh-GS H=alt2.aspmx.l.google.com [64.233.171.27]: Remote host closed connection in response to end of data
>
> Below is a complete session log, any ideas what could be wrong? There
> is a very long waiting after "BDAT". "mail.XXXXX.com" is my host (Exim 4.94.2/Debian11).
>
>
> delivering 1od0Ew-002IUh-GS
> Connecting to aspmx.l.google.com [74.125.195.26]:25 ...  TFO mode sendto, no data: EINPROGRESS
> connected
> TCP_FASTOPEN tcpi_unacked 2
>  SMTP<< 220 mx.google.com ESMTP jf4-20020a170903268400b00178a33f8bb4si3653473plb.328 - gsmtp
>  SMTP>> EHLO mail.XXXXX.com
>  SMTP<< 250-mx.google.com at your service, [54.148.163.217]
>         250-SIZE 157286400
>         250-8BITMIME
>         250-STARTTLS
>         250-ENHANCEDSTATUSCODES
>         250-PIPELINING
>         250-CHUNKING
>         250 SMTPUTF8
>  SMTP>> STARTTLS
>  SMTP<< 220 2.0.0 Ready to start TLS
>  SMTP>> EHLO mail.XXXXX.com
>  SMTP<< 250-mx.google.com at your service, [54.148.163.217]
>         250-SIZE 157286400
>         250-8BITMIME
>         250-ENHANCEDSTATUSCODES
>         250-PIPELINING
>         250-CHUNKING
>         250 SMTPUTF8
>  SMTP>> MAIL FROM:<anatoly@???> SIZE=126042
>  SMTP>> RCPT TO:<guadalupe.gonzalez@???>
>         will write message using CHUNKING
>  SMTP>> BDAT 2461
>  SMTP<< 250 2.1.0 OK jf4-20020a170903268400b00178a33f8bb4si3653473plb.328 - gsmtp
>  SMTP<< 250 2.1.5 OK jf4-20020a170903268400b00178a33f8bb4si3653473plb.328 - gsmtp
>  SMTP<< 250 2.0.0 OK jf4-20020a170903268400b00178a33f8bb4si3653473plb.328 - gsmtp
>  SMTP>> BDAT 122930 LAST
> LOG: MAIN
>  H=aspmx.l.google.com [74.125.195.26] TLS error on connection (recv): Error in the pull function.
>  SMTP(Connection reset by peer)<<
> LOG: MAIN
>  H=aspmx.l.google.com [74.125.195.26]: Remote host closed connection in response to end of data
>  SMTP(close)>>
> Connecting to alt1.aspmx.l.google.com [142.250.115.26]:25 ...  TFO mode sendto, no data: EINPROGRESS
> connected
> TCP_FASTOPEN tcpi_unacked 2
>  SMTP<< 220 mx.google.com ESMTP ch9-20020a0568081c0900b0033a712a247fsi3588254oib.216 - gsmtp
>  SMTP>> EHLO mail.XXXXX.com
>  SMTP<< 250-mx.google.com at your service, [54.148.163.217]
>         250-SIZE 157286400
>         250-8BITMIME
>         250-STARTTLS
>         250-ENHANCEDSTATUSCODES
>         250-PIPELINING
>         250-CHUNKING
>         250 SMTPUTF8
>  SMTP>> STARTTLS
>  SMTP<< 220 2.0.0 Ready to start TLS
>  SMTP>> EHLO mail.XXXXX.com
>  SMTP<< 250-mx.google.com at your service, [54.148.163.217]
>         250-SIZE 157286400
>         250-8BITMIME
>         250-ENHANCEDSTATUSCODES
>         250-PIPELINING
>         250-CHUNKING
>         250 SMTPUTF8
>  SMTP>> MAIL FROM:<anatoly@???> SIZE=126042
>  SMTP>> RCPT TO:<guadalupe.gonzalez@???>
>         will write message using CHUNKING
>  SMTP>> BDAT 2461
>  SMTP<< 250 2.1.0 OK ch9-20020a0568081c0900b0033a712a247fsi3588254oib.216 - gsmtp
>  SMTP<< 250 2.1.5 OK ch9-20020a0568081c0900b0033a712a247fsi3588254oib.216 - gsmtp
>  SMTP<< 250 2.0.0 OK ch9-20020a0568081c0900b0033a712a247fsi3588254oib.216 - gsmtp
>  SMTP>> BDAT 122930 LAST
> LOG: MAIN
>  H=alt1.aspmx.l.google.com [142.250.115.26] TLS error on connection (recv): Error in the pull function.
>  SMTP(Connection reset by peer)<<
> LOG: MAIN
>  H=alt1.aspmx.l.google.com [142.250.115.26]: Remote host closed connection in response to end of data
>  SMTP(close)>>
> Connecting to alt2.aspmx.l.google.com [64.233.171.27]:25 ...  TFO mode sendto, no data: EINPROGRESS
> connected
> TCP_FASTOPEN tcpi_unacked 2
>  SMTP<< 220 mx.google.com ESMTP u26-20020a056871009a00b001278ca86aaesi3664331oaa.13 - gsmtp
>  SMTP>> EHLO mail.XXXXX.com
>  SMTP<< 250-mx.google.com at your service, [54.148.163.217]
>         250-SIZE 157286400
>         250-8BITMIME
>         250-STARTTLS
>         250-ENHANCEDSTATUSCODES
>         250-PIPELINING
>         250-CHUNKING
>         250 SMTPUTF8
>  SMTP>> STARTTLS
>  SMTP<< 220 2.0.0 Ready to start TLS
>  SMTP>> EHLO mail.XXXXX.com
>  SMTP<< 250-mx.google.com at your service, [54.148.163.217]
>         250-SIZE 157286400
>         250-8BITMIME
>         250-ENHANCEDSTATUSCODES
>         250-PIPELINING
>         250-CHUNKING
>         250 SMTPUTF8
>  SMTP>> MAIL FROM:<anatoly@???> SIZE=126042
>  SMTP>> RCPT TO:<guadalupe.gonzalez@???>
>         will write message using CHUNKING
>  SMTP>> BDAT 2461
>  SMTP<< 250 2.1.0 OK u26-20020a056871009a00b001278ca86aaesi3664331oaa.13 - gsmtp
>  SMTP<< 250 2.1.5 OK u26-20020a056871009a00b001278ca86aaesi3664331oaa.13 - gsmtp
>  SMTP<< 250 2.0.0 OK u26-20020a056871009a00b001278ca86aaesi3664331oaa.13 - gsmtp
>  SMTP>> BDAT 122930 LAST
> LOG: MAIN
>  H=alt2.aspmx.l.google.com [64.233.171.27] TLS error on connection (recv): Error in the pull function.
>  SMTP(Connection reset by peer)<<
> LOG: MAIN
>  H=alt2.aspmx.l.google.com [64.233.171.27]: Remote host closed connection in response to end of data
>  SMTP(close)>>
> Connecting to alt4.aspmx.l.google.com [172.253.113.26]:25 ...  TFO mode sendto, no data: EINPROGRESS
> connected
> TCP_FASTOPEN tcpi_unacked 2
>  SMTP<< 220 mx.google.com ESMTP e19-20020a255013000000b006a8e0f13291si3992630ybb.42 - gsmtp
>  SMTP>> EHLO mail.XXXXX.com
>  SMTP<< 250-mx.google.com at your service, [54.148.163.217]
>         250-SIZE 157286400
>         250-8BITMIME
>         250-STARTTLS
>         250-ENHANCEDSTATUSCODES
>         250-PIPELINING
>         250-CHUNKING
>         250 SMTPUTF8
>  SMTP>> STARTTLS
>  SMTP<< 220 2.0.0 Ready to start TLS
>  SMTP>> EHLO mail.XXXXX.com
>  SMTP<< 250-mx.google.com at your service, [54.148.163.217]
>         250-SIZE 157286400
>         250-8BITMIME
>         250-ENHANCEDSTATUSCODES
>         250-PIPELINING
>         250-CHUNKING
>         250 SMTPUTF8
>  SMTP>> MAIL FROM:<anatoly@???> SIZE=126042
>  SMTP>> RCPT TO:<guadalupe.gonzalez@???>
>         will write message using CHUNKING
>  SMTP>> BDAT 2461
>  SMTP<< 250 2.1.0 OK e19-20020a255013000000b006a8e0f13291si3992630ybb.42 - gsmtp
>  SMTP<< 250 2.1.5 OK e19-20020a255013000000b006a8e0f13291si3992630ybb.42 - gsmtp
>  SMTP<< 250 2.0.0 OK e19-20020a255013000000b006a8e0f13291si3992630ybb.42 - gsmtp
>  SMTP>> BDAT 122930 LAST
> LOG: MAIN
>  H=alt4.aspmx.l.google.com [172.253.113.26] TLS error on connection (recv): Error in the pull function.
>  SMTP(Connection reset by peer)<<
> LOG: MAIN
>  H=alt4.aspmx.l.google.com [172.253.113.26]: Remote host closed connection in response to end of data
>  SMTP(close)>>
> Connecting to alt3.aspmx.l.google.com [142.250.152.27]:25 ...  TFO mode sendto, no data: EINPROGRESS
> connected
> TCP_FASTOPEN tcpi_unacked 2
>  SMTP<< 220 mx.google.com ESMTP z12-20020a056e0217cc00b002f8140b4ff3si4988948ilu.103 - gsmtp
>  SMTP>> EHLO mail.XXXXX.com
>  SMTP<< 250-mx.google.com at your service, [54.148.163.217]
>         250-SIZE 157286400
>         250-8BITMIME
>         250-STARTTLS
>         250-ENHANCEDSTATUSCODES
>         250-PIPELINING
>         250-CHUNKING
>         250 SMTPUTF8
>  SMTP>> STARTTLS
>  SMTP<< 220 2.0.0 Ready to start TLS
>  SMTP>> EHLO mail.XXXXX.com
>  SMTP<< 250-mx.google.com at your service, [54.148.163.217]
>         250-SIZE 157286400
>         250-8BITMIME
>         250-ENHANCEDSTATUSCODES
>         250-PIPELINING
>         250-CHUNKING
>         250 SMTPUTF8
>  SMTP>> MAIL FROM:<anatoly@???> SIZE=126042
>  SMTP>> RCPT TO:<guadalupe.gonzalez@???>
>         will write message using CHUNKING
>  SMTP>> BDAT 2461
>  SMTP<< 250 2.1.0 OK z12-20020a056e0217cc00b002f8140b4ff3si4988948ilu.103 - gsmtp
>  SMTP<< 250 2.1.5 OK z12-20020a056e0217cc00b002f8140b4ff3si4988948ilu.103 - gsmtp
>  SMTP<< 250 2.0.0 OK z12-20020a056e0217cc00b002f8140b4ff3si4988948ilu.103 - gsmtp
>  SMTP>> BDAT 122930 LAST
> LOG: MAIN
>  H=alt3.aspmx.l.google.com [142.250.152.27] TLS error on connection (recv): Error in the pull function.
>  SMTP(Connection reset by peer)<<
> LOG: MAIN
>  H=alt3.aspmx.l.google.com [142.250.152.27]: Remote host closed connection in response to end of data
>  SMTP(close)>>
> LOG: MAIN
>  == guadalupe.gonzalez@??? R=dnslookup T=remote_smtp defer (-18) H=alt3.aspmx.l.google.com [142.250.152.27]: Remote host closed connection in response to end of data

>
>
> --
> Victor Sudakov VAS4-RIPE
> http://vas.tomsk.ru/
> 2:5005/49@fidonet
>
> --
> ## List details at https://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/
>


-- 
Andrew C. Aitchison                      Kendal, UK
                    andrew@???