Research and experiments

Sendavio Labs tests email authentication against reality: records published on real domains, read through public DNS, and compared with what a correct checker must say.

Method

  1. Publish a configuration on purpose under fx.sendaviolabs.com, with its expected results written down before it goes live.
  2. Read it through public DNS with the same engine Sendavio's customers use, and compare every expectation with what was observed.
  3. When reality and the expectation disagree, decide which one is wrong, fix it, and keep the specimen so it cannot regress.

Published specimens

SpecimenDomainRecordsExpectations
FX-01: A correct baselinevalid.fx.sendaviolabs.com42
FX-02: Nothing publishedmissing.fx.sendaviolabs.com12
FX-03: Common mistakesmalformed.fx.sendaviolabs.com43
FX-04: Several DKIM selectorsmulti.fx.sendaviolabs.com54
FX-05: Delegated DKIM by CNAMEcname.fx.sendaviolabs.com42
FX-06: A 1024-bit key in testing modeweak.fx.sendaviolabs.com22
FX-07: DMARC inheritancedeep.inherit.fx.sendaviolabs.com11
FX-08: Sending-service fingerprintssenders.fx.sendaviolabs.com33

Findings

1024-bit DKIM keys are not failures

When FX-06 was first published, its written expectation said a 1024-bit key should warn. The checker passed it, and the checker was right: RFC 8301 allows 1024 bits and some services offer nothing longer. The expectation was corrected; 2048 bits stays a recommendation where a provider offers it.

See FX-06

DMARC inheritance skips intermediate names

A subdomain without its own record uses the organisational domain's policy. The lab publishes a name three labels deep to check that the policy is not taken from a name in between.

See FX-07

Selector discovery is guided by SPF and MX

Trying generic selector names finds few keys. Reading SPF includes and MX hosts first, then trying each recognised service's names, finds keys from Google, Microsoft and Mailgun on the same domain within the lookup budget.

See FX-04

CNAME chains must be followed to the key

Sending services delegate DKIM by CNAME. A checker that stops at the first answer reports a CNAME instead of a key. The lab publishes one and two hop chains to the same key.

See FX-05

Duplicate DMARC records found a verification defect

A remediation scenario with duplicate DMARC records exposed a defect in how the fix engine verified its own change. The defect was fixed in the engine, and the scenario now guards against it.

Every remediation rule has a scenario

45 scenarios run Sendavio's checks, fix rules, provider writers and verification against simulated DNS hosts, so a change that breaks a promised fix fails before release.

The remediation scenarios run privately against simulated DNS hosts, because they exercise change permissions. Only their results are published here.