From 16b152717dc463b3973c7692f387f439aacba2dc Mon Sep 17 00:00:00 2001 From: sefidel Date: Tue, 1 Aug 2023 21:24:37 +0900 Subject: feat(services/nixos-mailserver): split internal and system mailer --- modules/services/nixos-mailserver.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'modules/services') diff --git a/modules/services/nixos-mailserver.nix b/modules/services/nixos-mailserver.nix index 7a8c5a5..59571bc 100644 --- a/modules/services/nixos-mailserver.nix +++ b/modules/services/nixos-mailserver.nix @@ -17,6 +17,11 @@ in owner = "dovecot2"; group = "dovecot2"; }; + sops.secrets.system-imap-pass = { + mode = "0440"; + owner = "dovecot2"; + group = "dovecot2"; + }; sops.secrets.internal-imap-pass = { mode = "0440"; owner = "dovecot2"; @@ -84,7 +89,11 @@ in hashedPasswordFile = config.sops.secrets.sefidel-imap-pass.path; }; "system@exotic.sh" = { - aliases = [ "system@nand.moe" ]; + aliases = [ "system" "system@nand.moe" ]; + hashedPasswordFile = config.sops.secrets.system-imap-pass.path; + }; + "internal@exotic.sh" = { + aliases = [ "internal" ]; hashedPasswordFile = config.sops.secrets.internal-imap-pass.path; }; }; -- cgit 1.4.1