Skip to content

Commit

Permalink
DNS: actually check whether mta-sts record is set correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
missytake committed Sep 13, 2024
1 parent e13c178 commit 7812596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmdeploy/src/cmdeploy/dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def check_initial_remote_data(remote_data, print=print):
mail_domain = remote_data["mail_domain"]
if not remote_data["A"] and not remote_data["AAAA"]:
print(f"Missing A and/or AAAA DNS records for {mail_domain}!")
elif not remote_data["MTA_STS"]:
elif remote_data["MTA_STS"] != f"{mail_domain}.":
print("Missing MTA-STS CNAME record:")
print(f"mta-sts.{mail_domain}. CNAME {mail_domain}.")
else:
Expand Down

0 comments on commit 7812596

Please sign in to comment.