katzen-cafe/modules/mailserver.nix

32 lines
965 B
Nix
Raw Normal View History

2024-07-29 18:44:41 +02:00
{inputs, ...}: {
imports = [inputs.simple-nixos-mailserver.nixosModule];
# hack to fix https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/issues/275
services.dovecot2.sieve.extensions = ["fileinto"];
2023-07-30 16:24:46 +02:00
mailserver = {
enable = true;
fqdn = "mail.katzen.cafe";
sendingFqdn = "katzen.cafe";
2024-07-29 18:44:41 +02:00
domains = ["katzen.cafe"];
2023-07-30 16:24:46 +02:00
loginAccounts = {
"admin@katzen.cafe" = {
hashedPasswordFile = "/var/lib/secrets/admin-mail-pw";
2024-07-29 18:44:41 +02:00
aliases = ["postmaster@katzen.cafe" "abuse@katzen.cafe"];
2023-07-30 16:24:46 +02:00
};
2023-08-05 18:46:25 +02:00
"noreply@katzen.cafe" = {
hashedPasswordFile = "/var/lib/secrets/noreply-mail-pw";
2023-07-30 16:24:46 +02:00
};
};
certificateScheme = "acme-nginx";
};
deployment.keys = {
"admin-mail-pw" = {
2024-07-29 18:44:41 +02:00
keyCommand = ["pass" "mailpws/hashes/admin"];
2023-07-30 16:24:46 +02:00
destDir = "/var/lib/secrets";
};
2023-08-05 18:46:25 +02:00
"noreply-mail-pw" = {
2024-07-29 18:44:41 +02:00
keyCommand = ["pass" "mailpws/hashes/noreply"];
2023-07-30 16:24:46 +02:00
destDir = "/var/lib/secrets";
};
};
}