summaryrefslogtreecommitdiff
path: root/services/mailserver.nix
blob: 3bd75a450f26548136ce118fc0af5238de985269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ hashedPasswordFile } :{ pkgs,... }:
{
                mailserver = {
                  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" ];
                    };
                  };
                  certificateScheme = "acme-nginx";
                };
}