2023-01-30 16:27:06 +03:00
$ORIGIN example.
$TTL 5m
@ IN SOA dns.example. webmaster.example. ( 1 0m 0m 0m 5m )
@ NS dns.example.
moxmail1.mox 1 IN A 172.28.1.10
moxmail2.mox 2 IN A 172.28.2.10
moxmail3.mox 3 IN A 172.28.3.10
postfixmail.postfix IN A 172.28.1.20
dns IN A 172.28.1.30
2023-07-01 19:48:29 +03:00
localserve.mox 1 IN A 172.28.1.50
2023-01-30 16:27:06 +03:00
mox1 MX 10 moxmail1.mox1.example.
mox2 MX 10 moxmail2.mox2.example.
mox3 MX 10 moxmail3.mox3.example.
postfix MX 10 postfixmail.postfix.example.
mox1dkim0._domainkey.mox 1 IN TXT " v = D K I M 1 ;h=sha256;t=s;k=ed25519;p=nNs/2BSurEunCKJjfE61p0r2C4OMv/S8IDU/p7nL91c="
mox2dkim0._domainkey.mox 2 IN TXT " v = D K I M 1 ;h=sha256;t=s;k=ed25519;p=gVAOjqEeNS2e6jjGX1c61zhCOPXMcX6o5If/AVI5STk="
mox3dkim0._domainkey.mox 3 IN TXT " v = D K I M 1 ;h=sha256;t=s;k=ed25519;p=vzv50BpMhk6moYWq9jBNR+oHmlZcL2LARgL9144nJfk="
postfixdkim0._domainkey.postfix IN TXT " v = D K I M 1 ;h=sha256;t=s;k=ed25519;p=a4IsBTuMsSQjU+xVyx8KEd8eObis4FrCiV72OaEkvDY="
mox1 IN TXT " v = s p f 1 i p 4 : 172.28.1.10 i p 4 : 172.28.1.20 - a l l "
mox2 IN TXT " v = s p f 1 i p 4 : 172.28.2.10 i p 4 : 172.28.3.10 - a l l " ; 172.28.3.10 because that's where connections from mox to mox3 are going from. perhaps linux prefers to use same source ip if possible?
mox3 IN TXT " v = s p f 1 i p 4 : 172.28.3.10 - a l l "
postfix IN TXT " v = s p f 1 i p 4 : 172.28.1.20 - a l l "
_dmarc.mox 1 IN TXT " v = D M A R C 1 ; p=reject; rua=mailto:dmarc-reports@mox1.example"
_dmarc.mox 2 IN TXT " v = D M A R C 1 ; p=reject; rua=mailto:dmarc-reports@mox2.example"
_dmarc.mox 3 IN TXT " v = D M A R C 1 ; p=reject; rua=mailto:dmarc-reports@mox3.example"
; _dmarc.mox4 IN TXT "v=DMARC1; p=reject; rua=mailto:dmarc-reports@postfix.example"