From 2d429492fe3a8be6b13c1c8544f9c5ae6ef3313a Mon Sep 17 00:00:00 2001 From: schweby Date: Mon, 31 Jan 2022 21:43:25 +0100 Subject: [PATCH] services/mail: stop postfix from dying by rspamd --- services/mail.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/mail.nix b/services/mail.nix index bdb754b..901dfcf 100644 --- a/services/mail.nix +++ b/services/mail.nix @@ -5,6 +5,11 @@ sources.nixos-mailserver.outPath ]; + # stop postfix from dying if rspamd hiccups + systemd.services.postfix.unitConfig = { + Requires = lib.mkForce "dovecot2.service opendkim.service"; + }; + mailserver = { mailDirectory = "/persist/mail"; enable = true;