[exim] Exim stucks after bdat command when sending to google

Top Page
Delete this message
Reply to this message
Author: Grzegorz Wit
Date:  
To: exim-users
Subject: [exim] Exim stucks after bdat command when sending to google
Hello,

After update to 4.94 I have a problem to send emails to google. It
stucks after bdat command  For me it looks very simillar to this bug:
https://bugs.exim.org/show_bug.cgi?id=1974

When I tried to send same message using 4.92.3 binaries then message is
correctly received by google. With 4.94 i got:

  SMTP<< 220 mx.google.com ESMTP t18si12300997ejj.437 - gsmtp
  SMTP>> EHLO **DELETED**
  SMTP<< 250-mx.google.com at your service, [**DELETED**]
         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 **DELETED**
  SMTP<< 250-mx.google.com at your service, [**DELETED**]
         250-SIZE 157286400
         250-8BITMIME
         250-ENHANCEDSTATUSCODES
         250-PIPELINING
         250-CHUNKING
         250 SMTPUTF8
  SMTP>> MAIL FROM:<**DELETED**> SIZE=151847
  SMTP>> RCPT TO:<**DELETED**>
         will write message using CHUNKING
  SMTP>> BDAT 7789
  SMTP<< 250 2.1.0 OK t18si12300997ejj.437 - gsmtp
  SMTP<< 250 2.1.5 OK t18si12300997ejj.437 - gsmtp
  SMTP<< 250 2.0.0 OK t18si12300997ejj.437 - gsmtp
  SMTP>> BDAT 143035 LAST

and after few minutes I received:

  SMTP(Connection timed out)<<
LOG: MAIN
  H=alt1.gmail-smtp-in.l.google.com [142.250.147.26]: SMTP timeout after
end of data (150824 bytes written): Connection timed out
  SMTP(close)>>


When I added ``` hosts_try_chunking =   ``` to my smtp configuration
then message stucks after:


  SMTP>> STARTTLS
  SMTP<< 220 2.0.0 Ready to start TLS
  SMTP>> EHLO **DELETED**
  SMTP<< 250-mx.google.com at your service, [**DELETED**]
         250-SIZE 157286400
         250-8BITMIME
         250-ENHANCEDSTATUSCODES
         250-PIPELINING
         250-CHUNKING
         250 SMTPUTF8
  SMTP>> MAIL FROM:<**DELETED**> SIZE=151847
  SMTP>> RCPT TO:<**DELETED**>
  SMTP>> DATA
  SMTP<< 250 2.1.0 OK k22si16455243wmr.170 - gsmtp
  SMTP<< 250 2.1.5 OK k22si16455243wmr.170 - gsmtp
  SMTP<< 354  Go ahead k22si16455243wmr.170 - gsmtp
  SMTP>> writing message and terminating "."

any idea what can cause this and why using 4.92.3 exim it works and
using 4.94 it doesn't?

Regards