Commit f2c18185 authored by Romain Courteaud's avatar Romain Courteaud

report missing SPF configuration

parent ad6f2e6b
......@@ -556,7 +556,17 @@ class WebBot:
}
)
if "TXT" not in checked_domain_dict[domain]:
if "TXT" in checked_domain_dict[domain]:
if '"v=spf' not in checked_domain_dict[domain]["TXT"]:
result_dict["warning"].append(
{
"text": "(No spf configured: %s) "
% str(checked_domain_dict[domain]["TXT"])
+ domain,
"date": result_dict["bot_status"][0]["date"],
}
)
else:
result_dict["missing_data"].append(
{
"text": "(TXT) " + domain,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment