summaryrefslogtreecommitdiff
path: root/services/mailserver.nix
blob: 015f0df8d436ef154e35eae1ab3df22b27d78c38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ hashedPasswordFile }: { config, pkgs, ... }:
{
  mailserver = {
    stateVersion = 3;
    fqdn = "mail.crashoverburn.com";
    domains = [ "mail.crashoverburn.com" "crashoverburn.com" ];
    enable = true;
    # A list of all login accounts. To create the password hashes, use
    # nix-shell -p mkpasswd --run 'mkpasswd -sm bcrypt'
    loginAccounts = {
      "crash@crashoverburn.com" = {
        inherit hashedPasswordFile;
        aliases = [ "postmaster@mail.crashoverburn.com" "overburn@crashoverburn.com" ];
      };
    };
    x509.useACMEHost = config.mailserver.fqdn;
  };
}