Add dmarc and fix dkim setup in DNS

Julien LepillerThu Jul 25 11:46:15+0200 2019

b8fd6bd

Add dmarc and fix dkim setup in DNS

modules/config/dns.scm

7272
  ("@"          ""  "IN"  "TXT"   "v=spf1 mx a ~all")
7373
  ("@"          ""  "IN"  "SPF"   "v=spf1 mx a ~all")
7474
  
75-
  ("dkim._domainkey" "" "IN" "TXT" (string-append "v=DKIM1; p=" public-dkim "; s=email; t=s")))
75+
  ("dkim._domainkey" "" "IN" "TXT" (string-append "v=DKIM1\\; p=" public-dkim "\\; s=email\\; t=s"))
76+
  ("_dmarc"     ""  "IN"  "TXT"   "v=DMARC1\\; p=none\\; sp=reject\\; rua=mailto:rua@lepiller.eu!10m\\; ruf=mailto:ruf@lepiller.eu!10m\\; rf=afrf\\; pct=100\\; ri=86400"))
7677
7778
(define-zone-entries ipv4-reverse.zone
7879
  ("@" "" "IN" "PTR" "lepiller.eu.")

120121
    (zone (zone-file
121122
            (origin "lepiller.eu")
122123
            (entries lepiller.eu.zone)
123-
            (serial 2019072401)))))
124+
            (serial 2019072503)))))
124125
125126
(define lepiller-slave-zone
126127
  (knot-zone-configuration