From 97ca7ea3ce16af64f5f2b054d3ba4f5cc2c6f184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Bourdeauducq?= Date: Wed, 14 Aug 2024 11:38:19 +0800 Subject: [PATCH] nixbld: mail setup for m-labs-intl.com WIP --- nixbld-etc-nixos/configuration.nix | 2 +- nixbld-etc-nixos/named/m-labs-intl.com | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 5f3c401..0af3ae4 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -1173,7 +1173,7 @@ in enable = true; localDnsResolver = false; # conflicts with dnsmasq fqdn = "mail.m-labs.hk"; - domains = [ "m-labs.hk" "m-labs.ph" "193thz.com" "malloctech.fr" ]; + domains = [ "m-labs.hk" "m-labs.ph" "m-labs-intl.com" "193thz.com" "malloctech.fr" ]; enablePop3 = true; enablePop3Ssl = true; certificateScheme = "acme-nginx"; diff --git a/nixbld-etc-nixos/named/m-labs-intl.com b/nixbld-etc-nixos/named/m-labs-intl.com index 7b2afb2..5901623 100644 --- a/nixbld-etc-nixos/named/m-labs-intl.com +++ b/nixbld-etc-nixos/named/m-labs-intl.com @@ -1,7 +1,7 @@ $TTL 7200 @ SOA ns.m-labs-intl.com. sb.m-labs.hk. ( - 2024060601 + 2024081401 7200 3600 86400 @@ -13,8 +13,16 @@ $TTL 7200 A 5.78.86.156 AAAA 2a01:4ff:1f0:83de::1 + MX 10 mail.m-labs-intl.com. + TXT "v=spf1 mx -all" + TXT "google-site-verification=BlQd5_5wWW7calKC7bZA0GdoxR8-zj4gwJEg9sGJ3l8" ns A 94.190.212.123 ns AAAA 2001:470:18:390::2 +mail A 5.78.86.156 +mail AAAA 2a01:4ff:1f0:83de::1 +mail._domainkey IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDJVPuhSGXghO7ib8Em/Se3jfCCIJK5g4zn5pGZ3/e0I0f+zGHMuvwpjkAKf6eSmo/AAXEaco28pDi3qE5xfV512AJsORCfPoPFyNhLsj/qtri6hc5KVSWW0Ja3MSFBINDCaX78c7PXPY+3jJJGpwSBDLjdxj9AQwtfiCVlH4qE/QIDAQAB" +_dmarc TXT "v=DMARC1; p=none" + www CNAME @