summaryrefslogtreecommitdiff
path: root/flora/services/mail.nix
blob: 4705e25012a97dea4aab0850d3bd9e8b2baf75a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ config, lib, pkgs, inputs, ... }:

{
  imports = [ inputs.nixos-mailserver ];

  sops.secrets."mail/hashedPassword" = {};

  mailserver = {
    enable = false;
    fqdn = "mail.stuebinm.eu";
    domains = [ "stuebinm.eu" ];

    # A list of all login accounts. To create the password hashes, use
    # nix run nixpkgs.apacheHttpd -c htpasswd -nbB "" "super secret password" | cut -d: -f2
    accounts = {
        "hello@stuebinm.eu" = {
            hashedPasswordFile = "/run/secrets/mail/hashedPassword";
            aliases = ["postmaster@stuebinm.eu" "abuse@stuebinm.eu"];
        };
    };
  };
}