blob: 5bfdb8cd978aa1e2b76fa65d3119f13756ffa3ab (
plain) (
tree)
|
|
{lib, ...}: let
all_admins = [
"sils@vhack.eu"
"soispha@vhack.eu"
"nightingale@vhack.eu"
];
users = import ./users.nix {};
in {
mailserver =
lib.recursiveUpdate {
enable = true;
fqdn = "server1.vhack.eu";
useFsLayout = true;
extraVirtualAliases = {
"abuse@vhack.eu" = all_admins;
"postmaster@vhack.eu" = all_admins;
"admin@vhack.eu" = all_admins;
};
mailDirectory = "/srv/mail/vmail";
dkimKeyDirectory = "/srv/mail/dkim";
sieveDirectory = "/srv/mail/sieve";
backup.snapshotRoot = "/srv/mail/backup";
enableImap = false;
enableImapSsl = true;
enablePop3 = false;
enablePop3Ssl = true;
# SMTP
enableSubmission = false;
enableSubmissionSsl = true;
openFirewall = true;
keyFile = "/var/lib/acme/server1.vhack.eu/key.pem";
certificateScheme = "acme";
certificateFile = "/var/lib/acme/server1.vhack.eu/fullchain.pem";
}
users;
}
# vim: ts=2
|