Package: fail2ban
Version: 0.11.2-1
Severity: normal
Tags: patch

Dear Maintainer,

When the Debian roundcube packages are used, Debian places its error log in
/var/log/roundcube/errors.log

While fail2ban's default paths has it at:
/var/log/roundcube/errors

This means that activating fail2ban's built-in roundcube rules will cause
fail2ban to be unable to start.

Since Debian moved the log from its common location, the omission of the
path in paths-debian.conf is a bug as it makes the built-in rule fail.

Attached is a patch to correct this.  It simply adds the correct path to
path-debian.conf.



-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-6-amd64 (SMP w/2 CPU threads)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages fail2ban depends on:
ii  lsb-base  11.1.0
ii  python3   3.9.2-3

Versions of packages fail2ban recommends:
ii  iptables           1.8.7-1
ii  python3-pyinotify  0.9.6-1.3
ii  python3-systemd    234-3+b4
ii  whois              5.5.9

Versions of packages fail2ban suggests:
ii  bsd-mailx [mailx]            8.1.2-0.20180807cvs-2
pn  monit                        <none>
ii  rsyslog [system-log-daemon]  8.2102.0-2
pn  sqlite3                      <none>

-- no debconf information

*** /home/kfitzner/fail2ban_debian_roundcube.diff
--- paths-debian.conf   2020-11-23 16:43:03.000000000 -0400
+++ paths-debian.conf.fixed     2021-05-10 09:48:41.193223094 -0300
@@ -24,5 +24,7 @@
 exim_main_log = /var/log/exim4/mainlog
 
 # was in debian squeezy but not in wheezy
 # /etc/proftpd/proftpd.conf (SystemLog)
 proftpd_log = /var/log/proftpd/proftpd.log
+
+roundcube_errors_log = /var/log/roundcube/errors.log
--- paths-debian.conf   2020-11-23 16:43:03.000000000 -0400
+++ paths-debian.conf.fixed     2021-05-10 09:48:41.193223094 -0300
@@ -24,5 +24,7 @@
 exim_main_log = /var/log/exim4/mainlog
 
 # was in debian squeezy but not in wheezy
 # /etc/proftpd/proftpd.conf (SystemLog)
 proftpd_log = /var/log/proftpd/proftpd.log
+
+roundcube_errors_log = /var/log/roundcube/errors.log

Reply via email to