mox icon indicating copy to clipboard operation
mox copied to clipboard

Mail delivery to icloud.com fails

Open soheilpro opened this issue 1 year ago • 7 comments

Emails sent to icloud.com fail with this error message:

data: unexpected EOF, transient

System info: mox v0.0.11 go1.22.5 linux/amd64

soheilpro avatar Aug 04 '24 14:08 soheilpro

Hi @soheilpro. Do you perhaps have an SMTP protocol trace? That could help with debugging. You can enable "trace" logging globally, or for the "smtpclient" package. You could also change the queue settings to keep information about delivery attempts for a period (e.g. few days). To look at any recorded errors, also after retries. (See "Keep messages/webhooks retired from queue" in the account web interface).

mjl- avatar Aug 19 '24 13:08 mjl-

I have collected the trace log. Is there any way to send it to you privately?

soheilpro avatar Aug 20 '24 07:08 soheilpro

Great, yes, please send it to [email protected]!

mjl- avatar Aug 20 '24 07:08 mjl-

Done.

soheilpro avatar Aug 20 '24 08:08 soheilpro

Great thanks, that helped with analysing.

The remote server was sending a more helpful error message, but mox only reported the "unexpected EOF". Mox is pipelining 3 commands to the smtp server: MAIL FROM, RCPT TO, DATA. In this case, the server was reporting "5xx you're on a blocklist" to the 2nd command, and then closed the connection. Mox was still trying to read a response to the 3rd command, and reports an "unexpected EOF". Mox should be regarding the 2nd (error) response as final, not report the EOF in this case. I hope to improve the error handling soon.

mjl- avatar Aug 22 '24 15:08 mjl-

@soheilpro The commit above is meant to get a better error message out of the situation. If you're in a position to test it in the same situation (IP still blocklisted), you could test with a binary with this commit, see https://www.xmox.nl/b/#17346d6def1db7a6fec294afa36232286e9b06fd.

mjl- avatar Aug 22 '24 20:08 mjl-

I tested the new binary, and the error is now correctly reported.

Thank you for the quick response.

soheilpro avatar Sep 11 '24 18:09 soheilpro

Thanks again for reporting, closing issue.

mjl- avatar Jan 23 '25 12:01 mjl-