nixfiles/hosts/hetzner-vm/services/mailserver/config.nix
2022-06-22 16:59:41 +01:00

43 lines
877 B
Nix

{ }: rec {
fqdn = "mail.owo.monster";
domains = [
"owo.monster"
"kitteh.pw"
];
debug_mode = true;
ssl_config = {
cert = "/var/lib/acme/${fqdn}/fullchain.pem";
key = "/var/lib/acme/${fqdn}/key.pem";
#cert = "/tmp/cert-${fqdn}.pem";
#key = "/tmp/key-${fqdn}.pem";
};
# generate password files with:
# nix run nixpkgs.apacheHttpd -c htpasswd -nbB "" "password" | cut -d: -f2
accounts = {
"chaoticryptidz@owo.monster" = {
passwordFile = "/secrets/chaos-mail-password";
aliases = [
"all@owo.monster"
"chaos@owo.monster"
"kitteh@owo.monster"
"kitteh@kitteh.pw"
];
};
};
sieve_directory = "/var/sieve";
dkim_directory = "/var/dkim";
policyd_config = "";
vmail_config = {
user_group_name = "vmail";
user_group_id = 5000;
directory = "/home/vmail";
};
}