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

DNS: fix _mta-sts TXT record on initial setup #461

Merged
merged 3 commits into from
Dec 17, 2024
Merged

Conversation

missytake
Copy link
Contributor

fix #460

@missytake missytake requested a review from hpk42 December 17, 2024 16:35
@@ -34,7 +35,10 @@ def perform_initial_checks(mail_domain):

# parse out sts-id if exists, example: "v=STSv1; id=2090123"
parts = query_dns("TXT", f"_mta-sts.{mail_domain}").split("id=")
res["sts_id"] = parts[1].rstrip('"') if len(parts) == 2 else ""
if len(parts) == 2 and len(parts[1]) > 1:
Copy link
Contributor

Choose a reason for hiding this comment

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

this could use a comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there is a much more elegant fix now <.<

Copy link
Contributor

@hpk42 hpk42 left a comment

Choose a reason for hiding this comment

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

looks good :)

@hpk42
Copy link
Contributor

hpk42 commented Dec 17, 2024

changelog missing

@missytake missytake merged commit 69fe5ea into main Dec 17, 2024
6 checks passed
@missytake missytake deleted the fix-mta-sts-460 branch December 17, 2024 17:27
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.

_mta-sts TXT DNS record generates an empty ID on freshly set up chatmail servers
2 participants