mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1713 from yorffuoj/enh-improve-diagnosis-for-dmarc-records
diagnosis: be more flexible regarding accepted values for DMARC DNS records
This commit is contained in:
commit
dd161e8d63
1 changed files with 5 additions and 0 deletions
|
@ -215,6 +215,11 @@ class MyDiagnoser(Diagnoser):
|
||||||
for part in current
|
for part in current
|
||||||
if not part.startswith("ip4:") and not part.startswith("ip6:")
|
if not part.startswith("ip4:") and not part.startswith("ip6:")
|
||||||
}
|
}
|
||||||
|
if "v=DMARC1" in r["value"]:
|
||||||
|
for param in current:
|
||||||
|
key, value = param.split("=")
|
||||||
|
if key == "p":
|
||||||
|
return value in ["none", "quarantine", "reject"]
|
||||||
return expected == current
|
return expected == current
|
||||||
elif r["type"] == "MX":
|
elif r["type"] == "MX":
|
||||||
# For MX, we want to ignore the priority
|
# For MX, we want to ignore the priority
|
||||||
|
|
Loading…
Add table
Reference in a new issue