1
1
Fork 0
mirror of https://github.com/mjl-/mox.git synced 2025-03-26 23:10:34 +03:00
mox/smtpclient
Mechiel Lukkien 17346d6def
smtpclient: handle server closing connection after writing its response to RCPT TO
if icloud.com has your ip blocklisted, it will close the smtp connection after
writing a response to RCPT TO, before writing a response to a pipelined DATA
command. this is similar to the case (already handled) where a mail server
would close the connection after a response to MAIL FROM when pipelined.

we now recognize this situation (unexpected EOF before we get a response to
DATA, with all RCPT TO's failed), and treat the last response to RCPT TO as the
result.

for issue  by soheilpro, thanks for reporting and sending an smtpclient
trace that showed the behaviour.
2024-08-22 21:59:53 +02:00
..
client.go smtpclient: handle server closing connection after writing its response to RCPT TO 2024-08-22 21:59:53 +02:00
client_test.go smtpclient: handle server closing connection after writing its response to RCPT TO 2024-08-22 21:59:53 +02:00
dial.go replace packages slog and slices from golang.org/x/exp with stdlib 2024-02-08 14:49:01 +01:00
dial_test.go add TransportDirect transport 2024-04-12 17:27:39 +02:00
examples_test.go replace packages slog and slices from golang.org/x/exp with stdlib 2024-02-08 14:49:01 +01:00
gather.go add TransportDirect transport 2024-04-12 17:27:39 +02:00
gather_test.go add TransportDirect transport 2024-04-12 17:27:39 +02:00