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