Running one of these manually always shows a similar behaviour. The
connection is not correctly closed after the smtp transaction:
[root@mxout013:~] # exim -v -Mc 1nJZii-0005m9-Ms
LOG: MAIN
Warning: purging the environment.
Suggested action: use keep_environment.
delivering 1nJZii-0005m9-Ms
Connecting to relay03.remote.net [2001:abcd::157]:25 ... TFO mode
connection attempt to 2001:abcd::157, 0 data
connected
SMTP<< 220 relay03.remote.net ESMTP Postfix (Debian/GNU)
SMTP>> EHLO mxout013.local.net
SMTP<< 250-relay03.remote.net
250-PIPELINING
---8<---
SMTP>> STARTTLS
SMTP<< 220 2.0.0 Ready to start TLS
SMTP>> EHLO mxout013.local.net
SMTP<< 250-relay03.remote.net
250-PIPELINING
---8<---
SMTP|> MAIL FROM:<xxxx> SIZE=30441
SMTP|> RCPT TO:<xxxx>
will write message using CHUNKING
SMTP+> BDAT 3224
SMTP<< 250 2.1.0 Ok
SMTP<< 550 5.1.1 <xxxx>: Recipient address rejected: User unknown in
relay recipient table
SMTP<< 554 5.5.1 Error: no valid recipients
SMTP+> QUIT
SMTP(TLS shutdown)>>
SMTP(shutdown)>>
SMTP<< 221 2.0.0 Bye
--> Nothing happens any more but process keeps hanging
^C
The corresponding TCP connection can be found in netstats' output with a
state of "FIN_WAIT_2".
In fact there is an unusual high amount of connections in this state on
this host and attaching `truss` to a stuck process showed no output.
Killing the TCP connection with `tcpdrop` causes the stuck process to
resume and finish.
The problem appears with different remote MX hosts as well as with IPv4
and IPv6 and is immediately resolved by downgrading back to 4.94.2.
Maybe this issue is related to the previous thread on this list.