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

View file

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

View file

@ -14,6 +14,11 @@ resource "namecheap_domain_records" "pub-solar" {
type = "A"
address = "49.13.236.167"
}
record {
hostname = "mail"
type = "A"
address = "49.13.236.167"
}
record {
hostname = "auth"
type = "CNAME"
@ -148,7 +153,7 @@ resource "namecheap_domain_records" "pub-solar" {
record {
hostname = "@"
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 {
hostname = "list"
@ -165,6 +170,11 @@ resource "namecheap_domain_records" "pub-solar" {
type = "TXT"
address = "v=DMARC1; p=reject;"
}
record {
hostname = "mail._domainkey"
type = "TXT"
address = "v=DKIM1;k=rsa;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDI333HhjmVmDYc5hYTtmB6o9KYb782xw+ewH1eQlpFcCMyJ1giYFeGKviNki9uSm52tk34zUIthsqJMRlz2WsKGgk4oq3MRtgPtogxbh1ipJlynXejPU5WVetjjMnwr6AtV1DP1Sv4n5Vz0EV8cTi3tRZdgYpG6hlriiHXbrvlIwIDAQAB"
}
record {
hostname = "modoboa._domainkey"
type = "TXT"
@ -173,7 +183,7 @@ resource "namecheap_domain_records" "pub-solar" {
record {
hostname = "@"
type = "MX"
address = "mail.greenbaum.zone."
address = "mail.pub.solar."
mx_pref = "0"
}
record {
@ -182,27 +192,6 @@ resource "namecheap_domain_records" "pub-solar" {
address = "list.pub.solar."
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 {
hostname = "nachtigall"
type = "A"