Skip to content

feat: suppress recipients on mailbox-level hard failures - #426

Merged
hamzakargin merged 3 commits into
mainfrom
feat/auto-suppress
Nov 25, 2026
Merged

hamzakargin merged 3 commits into
mainfrom
feat/auto-suppress

Conversation

@hamzakargin

Copy link
Copy Markdown
Member

When a remote server refuses a recipient at RCPT with a mailbox-level permanent failure (550, 551 or 553 with 5.1.1, 5.1.6, 5.1.10 or 5.2.1, or an unknown-user reply without enhanced status that is not about the sender), the recipient is added to its tenant's suppression list with reason bounce and no expiry.

  • smtp: the transaction reports which refusals came at RCPT.
  • deliver: classifies mailbox-level failures and returns the address with the message's tenant generation.
  • sched: writes the suppression for that tenant and generation only; refused for an older generation or a deleting tenant; an existing live suppression is kept; retries temporary refusals; bounded work per core; stops after close.
  • Metrics suppressions_bounced and suppressions_bounce_failed.

Closes #425

@hamzakargin
hamzakargin enabled auto-merge (squash) November 24, 2026 18:33
auto-merge was automatically disabled November 24, 2026 19:07

Pull request was closed

@hamzakargin hamzakargin reopened this Nov 24, 2026
@hamzakargin
hamzakargin enabled auto-merge (squash) November 24, 2026 19:07
@hamzakargin
hamzakargin merged commit 1f99a89 into main Nov 25, 2026
8 of 9 checks passed
@hamzakargin
hamzakargin deleted the feat/auto-suppress branch November 25, 2026 06:09
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.

Suppress recipients on mailbox-level hard failures

1 participant