Deliverability: leave out addresses no receiver sees, and skip /etc/hosts #409

Merged
jcoffey-dev merged 1 commits from fix/408-deliverability-public-addresses into main 2026-11-16 19:41:36 +00:00
Owner

On a container install, Deliverability failed SPF for 172.31.253.10 and fd69:6e62:7578::2 (inbuxa/inbuxa-admin#224): with no source addresses set the check uses what the server's name resolves to, and the container's /etc/hosts maps that name to the container itself.

  • resolve_name drops private, CGNAT, loopback, link-local, unique-local and unspecified addresses (seen_by_receivers).
  • When those are all it found, it asks Resolvers::public: the same name servers and options with use_hosts_file = Never. The main resolver is unchanged, so delivery still honours /etc/hosts.
  • Unit test a_container_s_own_addresses_are_not_sending_addresses; system::deliverability::deliverability_tests (RocksDb, --ignored) still passes.
  • CHANGELOG line added to 27.1-rc.25.

Fixes #408

On a container install, Deliverability failed SPF for 172.31.253.10 and fd69:6e62:7578::2 (inbuxa/inbuxa-admin#224): with no source addresses set the check uses what the server's name resolves to, and the container's /etc/hosts maps that name to the container itself. - `resolve_name` drops private, CGNAT, loopback, link-local, unique-local and unspecified addresses (`seen_by_receivers`). - When those are all it found, it asks `Resolvers::public`: the same name servers and options with `use_hosts_file = Never`. The main resolver is unchanged, so delivery still honours /etc/hosts. - Unit test `a_container_s_own_addresses_are_not_sending_addresses`; `system::deliverability::deliverability_tests` (RocksDb, --ignored) still passes. - CHANGELOG line added to 27.1-rc.25. Fixes #408
jcoffey-dev added 1 commit 2026-11-16 19:32:24 +00:00
Deliverability: leave out addresses no receiver sees, and skip /etc/hosts
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 8m46s
9dbcaee689
With no source addresses set, the check tests what the server's name
resolves to. In a container /etc/hosts maps that name to the container's
own addresses, so on an installer's container install Deliverability
failed SPF (and asked blocklists) for 172.31.253.10 and
fd69:6e62:7578::2.

Private, shared, loopback, link-local and unique-local addresses are left
out now. When those are all the name gave, a resolver on the same servers
that never reads /etc/hosts is asked instead (Resolvers::public).

Fixes #408
jcoffey-dev merged commit d3f97653d5 into main 2026-11-16 19:41:36 +00:00
jcoffey-dev deleted branch fix/408-deliverability-public-addresses 2026-11-16 19:41:36 +00:00
Sign in to join this conversation.