mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-15 03:44:56 +02:00
chore: Remove wrapper script for fail2ban service (#3032)
* chore: Remove the wrapper script for `fail2ban` - This does not appear necessary. The server can be run with foreground mode. - `daemons-stack.sh` removal of the socket can be handled by the fail2ban server when using the `-x` option. * chore: Remove `touch /var/log/auth.log` These were both added as supposed fixes in 2016 for the then Ubuntu 2014 base image. Removing them causes no failures in tests. * fix: Install optional python packages for `fail2ban` These have barely any overhead in layer weight. The DNS package may provide some QoL improvements, while the `pyinotify` is a better alternative than polling logs to check for updates. We have `gamin` package installed but `fail2ban` would complain in the log that it was not able to initialize the module for it. There only appears to be a `python-gamin` dependent on EOL python 2, no longer available from Debian Bullseye.
This commit is contained in:
parent
14829a8459
commit
3d8cfc5b5a
5 changed files with 2 additions and 38 deletions
|
@ -56,11 +56,6 @@ function _start_daemon_postgrey
|
|||
|
||||
function _start_daemon_fail2ban
|
||||
{
|
||||
touch /var/log/auth.log
|
||||
|
||||
# delete fail2ban.sock that probably was left here after container restart
|
||||
[[ -e /var/run/fail2ban/fail2ban.sock ]] && rm /var/run/fail2ban/fail2ban.sock
|
||||
|
||||
_default_start_daemon 'fail2ban'
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue