Merge branch 'dmarc' into 'main'

added dmarc policy- relaxed for now but can be made more strict if needed

See merge request compsoc1/skynet/nixos!15
This commit is contained in:
silver 2023-10-19 23:41:15 +00:00
commit ff0ba0ef3a

View file

@ -145,7 +145,13 @@ in {
{ {
record = "_dmarc.${cfg.domain}."; record = "_dmarc.${cfg.domain}.";
r_type = "TXT"; r_type = "TXT";
value = ''"v=DMARC1; p=none"''; # p : quarantine => sends to spam, reject => never sent
# rua : mail that receives reports about DMARC activity
# pct : percentage of unathenticated messages that DMARC stops
# adkim : alignment policy for DKIM, s => Strict, subdomains arent allowed, r => relaxed, subdomains allowed
# aspf : alignment policy for SPF, s => Strict, subdomains arent allowed, r => relaxed, subdomains allowed
# sp : DMARC policy for subdomains, none => no action, reports to rua, quarantine => spam, reject => never sent
value = ''"v=DMARC1; p=quarantine; rua=mailto:mailman@skynet.ie; pct=100; adkim=s; aspf=s; sp=none"'';
} }
# reverse pointer # reverse pointer