mail: switch to mail.pub.solar

This commit is contained in:
teutat3s 2024-05-27 17:51:02 +02:00
parent a3f7afd7a0
commit 1ca1168d7a
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
3 changed files with 18 additions and 26 deletions

View file

@ -11,10 +11,9 @@
mailserver = { mailserver = {
enable = true; enable = true;
fqdn = "metronom.pub.solar"; fqdn = "mail.pub.solar";
domains = [ domains = [
"pub.solar" "pub.solar"
"metronom.pub.solar"
]; ];
# A list of all login accounts. To create the password hashes, use # A list of all login accounts. To create the password hashes, use
@ -24,7 +23,7 @@
hashedPasswordFile = config.age.secrets.mail-hensoko.path; hashedPasswordFile = config.age.secrets.mail-hensoko.path;
quota = "2G"; quota = "2G";
}; };
"teutat3s@metronom.pub.solar" = { "teutat3s@pub.solar" = {
hashedPasswordFile = config.age.secrets.mail-teutat3s.path; hashedPasswordFile = config.age.secrets.mail-teutat3s.path;
quota = "2G"; quota = "2G";
}; };

View file

@ -7,6 +7,10 @@
{ {
networking.hostName = "metronom"; networking.hostName = "metronom";
networking.extraHosts = ''
127.0.0.2 mail.pub.solar mail
::1 mail.pub.solar mail
'';
networking.domain = "pub.solar"; networking.domain = "pub.solar";
networking.hostId = "00000002"; networking.hostId = "00000002";

View file

@ -14,6 +14,11 @@ resource "namecheap_domain_records" "pub-solar" {
type = "A" type = "A"
address = "49.13.236.167" address = "49.13.236.167"
} }
record {
hostname = "mail"
type = "A"
address = "49.13.236.167"
}
record { record {
hostname = "auth" hostname = "auth"
type = "CNAME" type = "CNAME"
@ -148,7 +153,7 @@ resource "namecheap_domain_records" "pub-solar" {
record { record {
hostname = "@" hostname = "@"
type = "TXT" type = "TXT"
address = "v=spf1 include:spf.greenbaum.zone a:list.pub.solar ~all" address = "v=spf1 a:mail.pub.solar a:list.pub.solar ~all"
} }
record { record {
hostname = "list" hostname = "list"
@ -165,6 +170,11 @@ resource "namecheap_domain_records" "pub-solar" {
type = "TXT" type = "TXT"
address = "v=DMARC1; p=reject;" address = "v=DMARC1; p=reject;"
} }
record {
hostname = "mail._domainkey"
type = "TXT"
address = "v=DKIM1;k=rsa;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDI333HhjmVmDYc5hYTtmB6o9KYb782xw+ewH1eQlpFcCMyJ1giYFeGKviNki9uSm52tk34zUIthsqJMRlz2WsKGgk4oq3MRtgPtogxbh1ipJlynXejPU5WVetjjMnwr6AtV1DP1Sv4n5Vz0EV8cTi3tRZdgYpG6hlriiHXbrvlIwIDAQAB"
}
record { record {
hostname = "modoboa._domainkey" hostname = "modoboa._domainkey"
type = "TXT" type = "TXT"
@ -173,7 +183,7 @@ resource "namecheap_domain_records" "pub-solar" {
record { record {
hostname = "@" hostname = "@"
type = "MX" type = "MX"
address = "mail.greenbaum.zone." address = "mail.pub.solar."
mx_pref = "0" mx_pref = "0"
} }
record { record {
@ -182,27 +192,6 @@ resource "namecheap_domain_records" "pub-solar" {
address = "list.pub.solar." address = "list.pub.solar."
mx_pref = "0" mx_pref = "0"
} }
record {
hostname = "metronom"
type = "TXT"
address = "v=spf1 a:metronom.pub.solar ?all"
}
record {
hostname = "mail._domainkey.metronom"
type = "TXT"
address = "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCpFkI+IqTwyUIo5LqYVPMXlkTJe7trcE+ln6vjLFcoXBZaXfFVRJThMtfEZLkJ84ndEHadszFdSZs8eLRVCt/h7x9+GaOPIdKI9lbOn+AepwxhE3z/VrKKfO0CFyLsA6+XY7ebiF1aYctalY+r8Jtt8LuXh0Fj6+4YAFkvNxJEnQIDAQAB"
}
record {
hostname = "_dmarc.metronom"
type = "TXT"
address = "v=DMARC1; p=reject;"
}
record {
hostname = "metronom"
type = "MX"
address = "metronom.pub.solar."
mx_pref = "0"
}
record { record {
hostname = "nachtigall" hostname = "nachtigall"
type = "A" type = "A"