summaryrefslogtreecommitdiff
path: root/profiles/server/mail.nix
blob: 7bf0a884751fb54b648bfd799980f0585b8301d6 (plain)
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
{ inputs, config, lib, ... }: with lib; {
  imports = [
    inputs.simple-nixos-mailserver.nixosModule
  ];

  mailserver = {
    enable = true;
    enableImap = false;
    enableSubmission = true;
    enableImapSsl = true;
    enableSubmissionSsl = true;
    # TODO: configurate a local dns server?

    fqdn = my.domain;
    domains = [ my.domain ];
    loginAccounts = {
        ${my.email} = {
            hashedPasswordFile = config.secrets.my.path;
            aliases = [ "@${my.domain}" ];
        };
    };
    certificateScheme = "acme";

    lmtpSaveToDetailMailbox = "no";
  };
}