Repository navigation
docs(mail): explain Mail DNS resolver traffic - #298
Merged
Merged
Conversation
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
7 of 15 tasks
Contributor
|
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
approved these changes
Nov 9, 2026
stephdl
left a comment
Contributor
There was a problem hiding this comment.
English part LGTM, thank the MX_MISSING is a real case
lucagasparini
approved these changes
Nov 9, 2026
lucagasparini
approved these changes
Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.Antispamsection: 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 theMX_MISSINGsymbol to legitimate messages (checked in themx_checkcode of Rspamd 3.10.2, the version shipped by Mail).Mail outbound connectionssection: 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 applicationandMail outbound connectionssections: restart the applications, such as Mail, after changing the node DNS servers.Generated by Claude Code:claude-haiku-5-5 with nethserver-pr