Skip to content

Agent sign-in: with all sites on, require a DMARC pass and a plain sender domain - #46

Merged
MehdiMamas merged 5 commits into
mainfrom
sender-strict
Nov 16, 2026
Merged

MehdiMamas merged 5 commits into
mainfrom
sender-strict

Conversation

@MehdiMamas

@MehdiMamas MehdiMamas commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

With "Allow all sites" on, a site that is not listed only gets codes and links mailed from its own site. This tightens how the sender's site is decided:

  • Only mail that passed Gmail's DMARC check counts, and the From address must be on the same site as the domain Gmail's check evaluated (header.from). Before, a missing DMARC result was accepted on the From header alone.
  • The DMARC result is read only from a method segment of the Authentication-Results header added by mx.google.com, after comments and quoted strings are removed. Text the sender controls (echoed in a comment or a property value) no longer counts.
  • The From header must hold exactly one plain address (one @, an ASCII domain; punycode for IDN), read after comments and quoted strings are removed. An address in a comment, a second address, URL parts, escapes or Unicode look-alikes give no site.

Listed sites behave as before. Codes stored before this change carry no header.from and are not used for unlisted sites; new mail is. Tests: 142 pass; pnpm compile clean.

@MehdiMamas
MehdiMamas merged commit 76ee0e6 into main Nov 16, 2026
3 checks passed
@MehdiMamas
MehdiMamas deleted the sender-strict branch November 16, 2026 09:18
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