summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/python/powerdns_mailcow_dkim_dmarc_spf_patcher.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/python/powerdns_mailcow_dkim_dmarc_spf_patcher.py b/scripts/python/powerdns_mailcow_dkim_dmarc_spf_patcher.py
index 78ce036..fc6dca9 100755
--- a/scripts/python/powerdns_mailcow_dkim_dmarc_spf_patcher.py
+++ b/scripts/python/powerdns_mailcow_dkim_dmarc_spf_patcher.py
@@ -5,6 +5,7 @@ Pulls DKIM information from Mailcow.
Created and Last modified: 13/09/2021 by Georg Pfuetzenreuter <georg@lysergic.dev>
"""
+
import requests
import sys
import os
@@ -138,8 +139,6 @@ else:
print(status)
print(response.json())
sys.exit(1)
-print("Done.")
-sys.exit(0)
print("Patching DKIM ...")
payload = {
"rrsets": [{"name": selector + "._domainkey." + domain + ".", "type": "TXT", "ttl": "3600", "changetype": "REPLACE", "records": [{"content": "\""+ txtshould + "\"", "disabled": False, "name": selector + "._domainkey." + domain + "."}]}]