Skip to content

Don't disconnect on abort - #10

Open
ARitz-Cracker wants to merge 1 commit into
Atlantis-Software:masterfrom
ARitz-Cracker:patch-1
Open

Don't disconnect on abort#10
ARitz-Cracker wants to merge 1 commit into
Atlantis-Software:masterfrom
ARitz-Cracker:patch-1

Conversation

@ARitz-Cracker

@ARitz-Cracker ARitz-Cracker commented Aug 19, 2026

Copy link
Copy Markdown

Fixes #8
I... have been using this change for years and I can't believe I haven't submitted a PR back then.

Postfix attempts to re-use the current connection on abort and considers a disconnection on the milter's side as an error, this is especially noticeable when postfix has multiple messages are queued and is using multiple milters (like for DKIM and DMARC)

Also nullified the socket in other places for consistency.

Removed socket end handling on abort and added socket close and end event handlers to nullify `ctx.socket.`

This is because postfix attempts to re-use the current connection on `abort` and considers a disconnection on the milter's side as an error.
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.

can't read SMFIC_* reply packet header: Success

1 participant