about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--modules/services/nixos-mailserver.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/services/nixos-mailserver.nix b/modules/services/nixos-mailserver.nix
index 5e28b6e..cba1386 100644
--- a/modules/services/nixos-mailserver.nix
+++ b/modules/services/nixos-mailserver.nix
@@ -40,6 +40,13 @@ in
       '';
     };
 
+    # HACK: nixos-mailserver sets up reload hook on 'fqdn', which is 'mail.exotic.sh'.
+    # Since our cert is a wildcard cert with domain 'exotic.sh', it is excluded from the hook.
+    security.acme.certs."exotic.sh".reloadServices = [
+      "postfix.service"
+      "dovecot2.service"
+    ];
+
     mailserver = {
       enable = true;
       fqdn = "mail.exotic.sh";