summary refs log tree commit diff stats
path: root/system/mail/default.nix
blob: b09f8f164d82a3eaf3f1200a29de9f56b8cf0cb2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# vim: ts=2
{...}: {
  enable = true;
  fqdn = "server1.vhack.eu";
  domains = ["vhack.eu"];

  mailDirectory = "/srv/mail/vmail";
  dkimKeyDirectory = "/srv/mail/dkim";
  backup.snapshotRoot = "/srv/mail/backup";

  loginAccounts = {
    "sils@vhack.eu" = {
      hashedPasswordFile = "/srv/mail/.secrets/silsmailpswd";
    };
  };

  extraVirtualAliases = {
    "abuse@vhack.eu" = ["sils@vhack.eu"];
    "postmaster@vhack.eu" = ["sils@vhack.eu"];
    "admin@vhack.eu" = ["sils@vhack.eu"];
  };

  sieveDirectory = "/srv/mail/sieve";
  keyFile = "/var/lib/acme/server1.vhack.eu/key.pem";
  certificateScheme = 1;
  certificateFile = "/var/lib/acme/server1.vhack.eu/fullchain.pem";
}