Merge branch 'fix/mail_logspam' into 'main'

services/mail: reduce logspam

See merge request hacc/infra/haccfiles!87
keep-around/85caabc3b31b9b825c255187b435fa644c63f01a
schweby 2022-01-31 21:35:04 +00:00
commit 85caabc3b3
1 changed files with 5 additions and 0 deletions

View File

@ -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";