Skip to content

fix: keep-alive RSET failure and AUTH error message - #9

Merged
muhammetsafak merged 1 commit into
mainfrom
fix/keepalive-rset-and-auth-message
Nov 27, 2026
Merged

muhammetsafak merged 1 commit into
mainfrom
fix/keepalive-rset-and-auth-message

Conversation

@muhammetsafak

Copy link
Copy Markdown
Contributor

Summary

  • With SMTPKeepAlive on, a refused RSET after the server accepted the message no longer makes send() throw. The connection is closed and the next send() opens a new one, so a retrying caller does not deliver the message twice.
  • A rejected AUTH LOGIN username step now throws SMTP AUTH LOGIN username step was rejected: <reply>; the message no longer contains the base64-encoded username.

Tests

  • Fake server answers RSET with 500: send() succeeds, the connection is closed, the second send() opens a new session.
  • Rejected username step: exception message has no base64 username.

…ntials out of AUTH errors

With keep-alive on, a refused RSET after the server accepted the message
no longer makes send() throw; the connection is closed and the next send()
opens a new one, so a retrying caller does not deliver twice. A rejected
AUTH LOGIN username step now reports the server reply instead of the
base64-encoded username.
@muhammetsafak
muhammetsafak merged commit 0ca970d into main Nov 27, 2026
9 checks passed
@muhammetsafak
muhammetsafak deleted the fix/keepalive-rset-and-auth-message branch November 27, 2026 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant