Re: [exim] tls error - mail from *outlook

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Jeremy Harris
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] tls error - mail from *outlook
On 18/01/2021 17:14, Ale via Exim-users wrote:
> I tried, among the debug output I see this
>
> https://pad.riseup.net/p/cxR_DZlHJxX21xm2HxdO
>
> Honestly I don't understand the cause.


20212 SMTP<< QUIT

They sent a QUIT command

20212 SMTP>> 221 mx1.mydomain.com closing connection

We (are about to try to) send them the response to
that command, saying it was accepted

20212 tls_write(0x55cfb17b27f0, 43)
20212 gnutls_record_send(SSL, 0x55cfb17b27f0, 43)
20212 GnuTLS<2>: WRITE: -1 returned from 0x6, errno: 104
20212 GnuTLS<3>: ASSERT: ../../lib/buffers.c[_gnutls_io_write_flush]:722
20212 GnuTLS<3>: ASSERT: ../../lib/record.c[_gnutls_send_tlen_int]:574
20212 outbytes=-110
20212 tls_write: gnutls_record_send err

... to do which, we called the GnuTLS "send" routine. It returned an error
code saying that the TCP connection had already been closed.

20212 LOG: MAIN
20212 TLS error on connection from mail-eopbgr70088.outbound.protection.outlook.com (EUR04-HE1-obe.outbound.protection.outlook.com) [40.107.7.88] (send): The TLS connection was non-properly terminated.

We logged that error.



Basically, Outlook fires off the QUIT command and rudely terminates the TCP connection without
waiting for an SMTP-level response, or even doing a TLS-level shutdown.

There is zero chance of getting Microsoft to fix that, being an 800lb gorilla.
All we can do is point and laugh... and implement a workaround. It's in 4.94 (from
commit f1e494e002).
--
Cheers,
Jeremy