dns: fixed some records related to email
This commit is contained in:
parent
9b1a936f03
commit
f24b450b36
2 changed files with 5 additions and 10 deletions
|
@ -26,7 +26,7 @@ let
|
|||
;@ MX 5 ${domain}.
|
||||
|
||||
; can have multiple mailserves
|
||||
;@ MX 20 mail2.${domain}.
|
||||
@ MX 10 mail.${domain}.
|
||||
|
||||
|
||||
; ------------------------------------------
|
||||
|
|
|
@ -79,21 +79,16 @@
|
|||
# set up dns record for it
|
||||
skynet_dns.records.external = [
|
||||
# basic one
|
||||
"mail A ${cfg.host.ip}"
|
||||
|
||||
"${cfg.domain} MX 10 ${cfg.sub}.${cfg.domain}"
|
||||
|
||||
# reverse pointer
|
||||
"${builtins.substring 9 3 cfg.host.ip}.99.1.193.in-addr.arpa IN PTR ${cfg.sub}.${cfg.domain}"
|
||||
"mail A ${cfg.host.ip}"
|
||||
|
||||
# SPF record
|
||||
"${cfg.domain} TXT v=spf1 a:${cfg.sub}.${cfg.domain} -all"
|
||||
''${cfg.domain}. IN TXT "v=spf1 a:${cfg.sub}.${cfg.domain} -all"''
|
||||
|
||||
# DKIM
|
||||
#"mail._domainkey 10800 TXT v=DKIM1; p=<really-long-key>"
|
||||
''mail._domainkey.${cfg.domain}. IN TXT "v=DKIM1; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDl8ptSASx37t5sfmU2d2Y6yi9AVrsNFBZDmJ2uaLa4NuvAjxGQCw4wx+1Jui/HOuKYLpntLsjN851wgPR+3i51g4OblqBDvcHn9NYgWRZfHj9AASANQjdsaAbkXuyKuO46hZqeWlpESAcD6a4Evam4fkm+kiZC0+rccb4cWgsuLwIDAQAB"''
|
||||
|
||||
# DMARC
|
||||
"_dmarc TXT v=DMARC1; p=none"
|
||||
''_dmarc.${cfg.domain}. IN TXT "v=DMARC1; p=none"''
|
||||
];
|
||||
|
||||
skynet_dns.records.reverse = [
|
||||
|
|
Loading…
Reference in a new issue