diff --git a/fail2ban/README.md b/fail2ban/README.md index 6eac73bef..96b22b7d4 100644 --- a/fail2ban/README.md +++ b/fail2ban/README.md @@ -13,18 +13,21 @@ Upload the following to /etc/fail2ban/* Modify your /etc/fail2ban/jail.local with: -[snappymail-fpm-journal]
-enabled = true
+``` +[snappymail-fpm-journal] +enabled = true +``` ## Default log (not recommended) Modify /PATH-TO-RAINLOOP-DATA/_data_/_default_/configs/application.ini -[logs]
-auth_logging = On
-auth_logging_filename = "fail2ban/auth-fail.log"
+``` +[logs] +auth_logging = On +auth_logging_filename = "fail2ban/auth-fail.log" auth_logging_format = "[{date:Y-m-d H:i:s T}] Auth failed: ip={request:ip} user={imap:login} host={imap:host} port={imap:port}" -
+``` Modify the path in /jail.d/snappymail-log.conf @@ -35,5 +38,7 @@ Upload the following to /etc/fail2ban/* Modify your /etc/fail2ban/jail.local with: -[snappymail-log]
-enabled = true
+``` +[snappymail-log] +enabled = true +```