Skip to content

fix(smtp-server): bind envelope sender to SASL login - #44

Open
prdai wants to merge 1 commit into
OpenGovMail:mainfrom
prdai-archive:fix/smtp-sender-login-mismatch
Open

prdai wants to merge 1 commit into
OpenGovMail:mainfrom
prdai-archive:fix/smtp-sender-login-mismatch

Conversation

@prdai

@prdai prdai commented Nov 18, 2026

Copy link
Copy Markdown

what changed

  • Render smtpd_sender_login_maps and smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch in main.cf when submission is enabled.
  • Document the behavior in the chart README.

why

Postfix accepted any MAIL FROM after XOAUTH2 login, so a client authorized for one address could send DKIM-signed mail as any other address. Binding the envelope sender to the raven-approved login closes that gap. Refs #41.

verification

  • helm lint helm/charts/smtp-server --set domain=example.org --set tlsSecret.name=tls passes.
  • helm template renders both directives when submission is enabled and omits them when postfix.submission.enabled=false.
  • Not verified: no live submission session against the image. Null-sender behavior is from Postfix's smtpd_check.c guard (if (state->sender && *state->sender)).

Co-authored-by: Codex <codex@openai.com>
@CLAassistant

CLAassistant commented Nov 18, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@prdai
prdai marked this pull request as ready for review November 18, 2026 17:22
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.

2 participants