about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--fail2ban-filters/maddy.conf1
-rw-r--r--fail2ban.nix1
2 files changed, 1 insertions, 1 deletions
diff --git a/fail2ban-filters/maddy.conf b/fail2ban-filters/maddy.conf
index b354315..68f18a1 100644
--- a/fail2ban-filters/maddy.conf
+++ b/fail2ban-filters/maddy.conf
@@ -7,3 +7,4 @@ before = common.conf
 _daemon = maddy
 
 failregex = authentication failed\s{"reason":"auth: invalid credentials","src_ip":"<HOST>
+journalmatch = _SYSTEMD_UNIT=maddy.service
diff --git a/fail2ban.nix b/fail2ban.nix
index 9aaa2e2..0301878 100644
--- a/fail2ban.nix
+++ b/fail2ban.nix
@@ -34,7 +34,6 @@
       maddy = {
         settings = {
           filter = "maddy";
-          logpath = "/var/log/maddy/maddy.log";
         };
       };
     };