mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-24 14:18:13 +03:00
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:
parent
282041fb7b
commit
90aa42b683
@ -21,6 +21,9 @@ pythonPackages.buildPythonApplication {
|
|||||||
--replace /usr/sbin/sendmail sendmail \
|
--replace /usr/sbin/sendmail sendmail \
|
||||||
--replace /usr/bin/whois whois
|
--replace /usr/bin/whois whois
|
||||||
done
|
done
|
||||||
|
|
||||||
|
substituteInPlace config/filter.d/dovecot.conf \
|
||||||
|
--replace dovecot.service dovecot2.service
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user