Skip to content

Make inbound DMARC enforcement switchable; document rejected mail - #40

Open
byjpr wants to merge 1 commit into
claude/admiring-planck-25cvzffrom
claude/fix-16-dmarc-docs
Open

byjpr wants to merge 1 commit into
claude/admiring-planck-25cvzffrom
claude/fix-16-dmarc-docs

Conversation

@byjpr

@byjpr byjpr commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Closes #16

Changes

  • settings.dmarc.enforceInbound (default true, unchanged behaviour). With false, Rspamd only scores DMARC failures instead of rejecting or quarantining according to the sender's policy.
  • docs/deliverability.md covers:
    • Apps and services sending as your domain:
      • Send-only account: create one (sendOnly = true) and submit on 465, so the mail is DKIM-signed and passes DMARC.
      • Authorise the service: prefer the service's custom DKIM, use relay.spfInclude and its 10-lookup limit, and use subdomains for bulk mail.
      • Rollout: take a domain that already sends elsewhere through p=none → read reports → quarantine → reject.
    • Mailing lists that break DKIM without rewriting From: are rejected under enforcement, as Gmail and Outlook would do. It explains when to turn enforcement off.
  • The README limitation links to it.

Testing

  • The CI fixture now sets enforceInbound = false. The generated local.d/dmarc.conf then has no actions block, only reporting. With the default (true), the block is present as before. Enforcement itself was verified with Rspamd in Reject authenticated mail with a From: header the user does not own #26: DMARC_POLICY_REJECT → reject.
  • All 5 provider example systems build. nixfmt, shellcheck and tofu validate pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01G22o7QQ17GRtkCqpJNFr9B


Generated by Claude Code

settings.dmarc.enforceInbound (default true) controls whether other
domains' DMARC policies are enforced or only scored. docs/deliverability.md
explains the two deliberate rejections and what to do about them: apps
and services sending as your domain (send-only accounts on port 465, or
authorising the service via DKIM/SPF, and a p=none -> reject rollout) and
mailing lists that break DKIM without rewriting From:.

Closes #16

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01G22o7QQ17GRtkCqpJNFr9B
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.

[Medium] Legitimate mail is rejected: mailing lists under DMARC enforcement, and apps sending as our domain

2 participants