nixbld: setup email server for m-labs.hk

This commit is contained in:
Sebastien Bourdeauducq 2022-06-27 18:17:30 +08:00
parent 8bc44199fc
commit 6333165321
1 changed files with 2 additions and 5 deletions

View File

@ -851,14 +851,11 @@ in
mailserver = { mailserver = {
enable = true; enable = true;
localDnsResolver = false; # conflicts with dnsmasq localDnsResolver = false; # conflicts with dnsmasq
# Some mail servers do reverse DNS lookups to filter spam. fqdn = "mail.m-labs.hk";
# Getting a proper reverse DNS record from ISP is difficult, so use whatever already exists. domains = [ "m-labs.hk" ];
fqdn = "42-200-147-171.static.imsbiz.com";
domains = [ "nmigen.org" ];
loginAccounts = (import /etc/nixos/secret/email_accounts.nix); loginAccounts = (import /etc/nixos/secret/email_accounts.nix);
certificateScheme = 3; certificateScheme = 3;
}; };
security.acme.certs."${config.mailserver.fqdn}".extraDomainNames = [ "mail.nmigen.org" ];
system.stateVersion = "21.05"; system.stateVersion = "21.05";
} }