Report a message the SMTP server rejects (1.0.4) #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/smtp-data-reply"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A message the mail server rejected was still logged as sent.
The server judges a message only after its final ".", so a rejection (spam filter, size limit, policy) is the reply to closing DATA.
sendEmaildeferredwc.Close()and dropped that error. Close is now checked, and a rejection logs "Failed to send email to …" with the server's reply.smtp/sender.go: check the write and the end-of-DATA reply.smtp/sender_session_test.go: the fake server's end-of-DATA reply is a parameter. The new test answers 554, and it fails on the old code.CLAUDE.md: the planned-work list now has the order and decisions agreed on 2026-10-05.🤖 Generated with Claude Code