From a635ae0313b1b1c19443d809df6edce65a61bba4 Mon Sep 17 00:00:00 2001 From: schweby Date: Mon, 31 Jan 2022 21:39:35 +0100 Subject: [PATCH] services/mail: reduce logspam reduce logspam by out mail services by seeting them to logleven 5 (notice) and 3 (error) --- services/mail.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/mail.nix b/services/mail.nix index 901dfcf..90c6b0b 100644 --- a/services/mail.nix +++ b/services/mail.nix @@ -5,6 +5,11 @@ sources.nixos-mailserver.outPath ]; + # reduce log spam + systemd.services.rspamd.serviceConfig.LogLevelMax = 3; # this is set to error because rspamd regularly complains about not enough learns + systemd.services.postfix.serviceConfig.LogLevelMax = 5; # = notice + systemd.services.dovecot2.serviceConfig.LogLevelMax = 5; # = notice + # stop postfix from dying if rspamd hiccups systemd.services.postfix.unitConfig = { Requires = lib.mkForce "dovecot2.service opendkim.service";