From 644ded431114d0cb83f5176c245a81dc39fcb20c Mon Sep 17 00:00:00 2001 From: djmaze Date: Tue, 23 Mar 2021 22:01:04 +0100 Subject: [PATCH] Fix for github markdown view --- fail2ban/README.md | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) 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 +```