Skip to content

feat(endpoint/smtp): Add rdns_lookup option - #889

Merged
foxcpp merged 1 commit into
foxcpp:masterfrom
kabeer7121:rdns-lookup-option
Nov 7, 2026
Merged

foxcpp merged 1 commit into
foxcpp:masterfrom
kabeer7121:rdns-lookup-option

Conversation

@kabeer7121

Copy link
Copy Markdown
Contributor

Adds an rdns_lookup boolean to the smtp/submission/lmtp endpoint (default yes, so nothing changes unless it is set).

With rdns_lookup no no PTR query is sent for connecting clients. Conn.RDNSName stays nil, which require_matching_rdns already treats as "rDNS lookup is disabled", and the Received header omits the name. Documented in the endpoint reference.

Test added for the disabled case; go test ./internal/endpoint/smtp/ passes.

Fixes #150

@github-project-automation github-project-automation Bot moved this from First Feedback Needed to Approved in Maddy Mail Server PR Review Nov 7, 2026
@foxcpp
foxcpp merged commit 35203eb into foxcpp:master Nov 7, 2026
3 checks passed
@foxcpp

foxcpp commented Nov 7, 2026

Copy link
Copy Markdown
Owner

Thanks!

@github-project-automation github-project-automation Bot moved this from Approved to Merged in Maddy Mail Server PR Review Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

endpoint/smtp: Allow to disable rDNS lookup

2 participants