Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use relaxed DNS parsing, allowing underscores in DNS labels #172

Closed
wants to merge 1 commit into from

Conversation

fabian-z
Copy link

@fabian-z fabian-z commented Dec 20, 2023

With the default hickory-dns name parsing, DNS labels cannot contain underscores due to a certain interpretation of RFCs which disallow usage for naming of hosts. However, DNS labels are allowed and do contain underscores, which causes issues with mail delivery.

Most usages of hickory-dns are corrected in stalwartlabs/mail-auth#25 which also adds a parsing helper function. The PR also contains additional reasoning and examples of mail flow issues.

To test this PR, a branch containing the Cargo references to a fixed mail-auth branch is provided here: https://github.com/fabian-z/mail-server/tree/fix-dns-build

This corresponds to
https://github.com/hickory-dns/hickory-dns issue #1904, #2009

This corresponds to
https://github.com/hickory-dns/hickory-dns issue #1904, #2009

Other usages of hickory-dns are corrected in
stalwartlabs/mail-auth#25
@CLAassistant
Copy link

CLAassistant commented Dec 20, 2023

CLA assistant check
All committers have signed the CLA.

@williamdes
Copy link
Contributor

Fixes #126

@fabian-z
Copy link
Author

This is now fixed in the dependency stalwartlabs/mail-auth@8be9cb4 - pending publication to crates and fix of the code adapted in this PR.

@mdecimus mdecimus closed this in 851c3b6 Mar 14, 2024
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