Skip to content

docs(mail): explain Mail DNS resolver traffic - #298

Merged
DavidePrincipi merged 2 commits into
mainfrom
docs-mail-rspamd-dns
Nov 9, 2026
Merged

DavidePrincipi merged 2 commits into
mainfrom
docs-mail-rspamd-dns

Conversation

@DavidePrincipi

@DavidePrincipi DavidePrincipi commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

The Mail application's spam filter (Rspamd) does not use the DNS servers configured on the node: it sends its queries to a local Unbound recursive resolver, which walks the DNS hierarchy from the root servers down to the authoritative servers of each zone. When firewalls or other network devices block or redirect this DNS traffic, spam filtering gives wrong results, but the docs did not say so.

The PR also explains that applications must be restarted after a change of the node DNS servers (/etc/resolv.conf), because containers get a copy of that file when they start: Postfix and Dovecot, unlike Rspamd, use the node DNS servers. No behavior changes: only the administrator manual is updated, in English and Italian.

  • Antispam section: describe the local Unbound resolver and add a warning that its outbound DNS queries must not be blocked or redirected. Failed MX lookups make Rspamd add the MX_MISSING symbol to legitimate messages (checked in the mx_check code of Rspamd 3.10.2, the version shipped by Mail).
  • Mail outbound connections section: the DNS table row and a new note explain the recursive queries and ask to allow port 53 (UDP and TCP) to any destination.
  • Name resolution, Restart application and Mail outbound connections sections: restart the applications, such as Mail, after changing the node DNS servers.

Generated by Claude Code:claude-haiku-5-5 with nethserver-pr

Rspamd sends its DNS queries to a local Unbound recursive resolver
that walks the DNS hierarchy from the root servers, instead of using
the node DNS servers. Describe this in the Antispam and outbound
connections sections, and warn that blocked or redirected DNS traffic
breaks spam filtering, for example by adding the MX_MISSING symbol to
legitimate messages.

Assisted-by: Claude Code:claude-haiku-5-5
@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2
Preview removed because the pull request was closed.
2026-11-09 10:40 UTC

Application containers get a copy of /etc/resolv.conf when they start,
so a change of the node DNS servers is not applied until they restart.
Postfix and Dovecot, unlike Rspamd, use those servers: document the
Mail restart in the Name resolution, Restart application and Mail
outbound connections sections.

Assisted-by: Claude Code:claude-opus-5-5

@stephdl stephdl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

English part LGTM, thank the MX_MISSING is a real case

@DavidePrincipi DavidePrincipi changed the title docs(mail): explain Rspamd DNS resolver traffic docs(mail): explain Mail DNS resolver traffic Nov 9, 2026
@DavidePrincipi
DavidePrincipi merged commit 8ccfb37 into main Nov 9, 2026
2 checks passed
@DavidePrincipi
DavidePrincipi deleted the docs-mail-rspamd-dns branch November 9, 2026 10:40
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.

3 participants