fix: move the mailserver dns config to the proper file
This commit is contained in:
parent
1a07781c4d
commit
356ac2e505
2 changed files with 8 additions and 5 deletions
|
@ -74,11 +74,6 @@
|
||||||
@ NS ns2.${domain}.
|
@ NS ns2.${domain}.
|
||||||
; @ stands for teh root domain so teh A record below is where ${domain} points to
|
; @ stands for teh root domain so teh A record below is where ${domain} points to
|
||||||
;@ A 193.1.99.76
|
;@ A 193.1.99.76
|
||||||
;@ MX 5 ${domain}.
|
|
||||||
|
|
||||||
; can have multiple mailserves
|
|
||||||
@ MX 10 mail.${domain}.
|
|
||||||
|
|
||||||
|
|
||||||
; ------------------------------------------
|
; ------------------------------------------
|
||||||
; Server Names (A Records)
|
; Server Names (A Records)
|
||||||
|
|
|
@ -268,6 +268,14 @@ in {
|
||||||
|
|
||||||
# set up dns record for it
|
# set up dns record for it
|
||||||
services.skynet.dns.records = [
|
services.skynet.dns.records = [
|
||||||
|
# core record
|
||||||
|
{
|
||||||
|
record = "@";
|
||||||
|
r_type = "MX";
|
||||||
|
# the number is the priority in teh case of multiple mailservers
|
||||||
|
value = "10 mail.${cfg.domain}.";
|
||||||
|
}
|
||||||
|
|
||||||
# basic one
|
# basic one
|
||||||
{
|
{
|
||||||
record = "mail";
|
record = "mail";
|
||||||
|
|
Loading…
Reference in a new issue