Deliverability: Check now uses fresh DNS answers #387

Merged
jcoffey-dev merged 1 commits from fix/deliverability-check-now-fresh-dns into main 2026-11-13 15:24:58 +00:00
Owner

Contributed by @StefanSa in #385 (attached patch, rebased onto main).

Check now on the Deliverability page used the same cached DNS answers as normal mail traffic, so a report made right after fixing reverse DNS or adding a DMARC record could still show the old state. A manual check now skips this server's DNS caches for PTR, A/AAAA, SPF, DKIM, DMARC, TLS-RPT, blocklists and the MTA-STS record and policy, without reading or writing them.

Unchanged: the scheduled daily check, SMTP delivery, and the ten-minute limit on manual checks.

Rebase note: main had already dropped the unused VerifyPolicy import, so that line is left out. Otherwise the patch is as attached.

Checked locally:

  • cargo test -p services --lib inbuxa_deliverability: 4 passed
  • system::deliverability::deliverability_tests (RocksDB): passed
  • cargo test -p tests --lib --no-run, rustfmt, and the four fork checks: clean

Fixes #385

Contributed by @StefanSa in #385 (attached patch, rebased onto main). **Check now** on the Deliverability page used the same cached DNS answers as normal mail traffic, so a report made right after fixing reverse DNS or adding a DMARC record could still show the old state. A manual check now skips this server's DNS caches for PTR, A/AAAA, SPF, DKIM, DMARC, TLS-RPT, blocklists and the MTA-STS record and policy, without reading or writing them. Unchanged: the scheduled daily check, SMTP delivery, and the ten-minute limit on manual checks. Rebase note: main had already dropped the unused `VerifyPolicy` import, so that line is left out. Otherwise the patch is as attached. Checked locally: - `cargo test -p services --lib inbuxa_deliverability`: 4 passed - `system::deliverability::deliverability_tests` (RocksDB): passed - `cargo test -p tests --lib --no-run`, rustfmt, and the four fork checks: clean Fixes #385
jcoffey-dev added 1 commit 2026-11-13 14:56:38 +00:00
Deliverability: Check now uses fresh DNS answers
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 28m7s
d2b41a93f3
A manually requested check now skips this server's DNS caches for every
DNS-backed finding: PTR, A/AAAA, SPF, DKIM, DMARC, TLS-RPT, blocklists,
and the MTA-STS record and policy. The caches are neither read nor
written, so normal SMTP delivery and the scheduled daily check keep
their cached behavior. The ten-minute limit on manual checks is
unchanged.

The MTA-STS policy fetch is split so the check can fetch a policy
without touching the SMTP policy cache.

Fixes #385
jcoffey-dev merged commit 85695718cd into main 2026-11-13 15:24:58 +00:00
jcoffey-dev deleted branch fix/deliverability-check-now-fresh-dns 2026-11-13 15:24:58 +00:00
Sign in to join this conversation.