summaryrefslogtreecommitdiff
path: root/services/mailserver.nix
blob: 29ad079537f0678f5105f8ce1333b07c46b3e430 (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 = [ "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;
  };
}