distorted.lisp: Add SPF records for mail servers.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 4 May 2024 23:34:05 +0000 (00:34 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 6 May 2024 03:36:46 +0000 (04:36 +0100)
distorted.lisp
odin.lisp

index 8147a62..8ff1a3a 100644 (file)
   (bugs :mx lists :srv ((:smtp bugs)))
   (lists :mx lists :srv ((:smtp lists)))
   ((_domainkey _domainkey.mail) :dname stratocaster.dkim)
+  ((stratocaster @ mail) :spf ((:version "spf1")
+                              (:pass :ip stratocaster.dmz)
+                              (:shrug :all)))
   ((_domainkey.bugs _domainkey.lists) :dname telecaster.dkim)
+  ((telecaster bugs lists) :spf ((:version "spf1")
+                                (:pass :ip telecaster.dmz)
+                                (:shrug :all)))
 
   ;; Anycast services.
   (dns0 :anycast ((any dns0.any) (dmz radius.dmz)
index 73abae1..fc04fde 100644 (file)
--- a/odin.lisp
+++ b/odin.lisp
@@ -26,4 +26,7 @@
   ;; Mail servers
   :mx ((mail :ip stratocaster))
   :srv ((:smtp mail))
+  :spf ((:version "spf1")
+       (:pass :ip stratocaster.dmz)
+       (:shrug :all))
   (_domainkey :dname stratocaster.dkim.distorted.org.uk.))