fail2ban: fix dovecot filter's journalmatch

The dovecot filter config distributed with fail2ban watches for log
entries with a journalmatch filter of "_SYSTEMD_UNIT=dovecot.service",
but NixOS's Dovecot runs as dovecot2.service. Fix the journalmatch
config to match NixOS's Dovecot.
This commit is contained in:
Josh Steadmon 2019-06-20 19:09:04 -07:00
parent 282041fb7b
commit 90aa42b683

View File

@ -21,6 +21,9 @@ pythonPackages.buildPythonApplication {
--replace /usr/sbin/sendmail sendmail \
--replace /usr/bin/whois whois
done
substituteInPlace config/filter.d/dovecot.conf \
--replace dovecot.service dovecot2.service
'';
doCheck = false;