mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-30 23:00:04 +02:00
fix: SRS setup (#3158)
This commit is contained in:
parent
0baf82f7d0
commit
2da3e1b022
4 changed files with 60 additions and 36 deletions
|
@ -201,6 +201,15 @@ function _install_fail2ban
|
|||
sedfile -i -r 's/^_nft_add_set = .+/_nft_add_set = <nftables> add set <table_family> <table> <addr_set> \\{ type <addr_type>\\; flags interval\\; \\}/' /etc/fail2ban/action.d/nftables.conf
|
||||
}
|
||||
|
||||
function _remove_data_after_package_installations
|
||||
{
|
||||
_log 'debug' 'Deleting sensitive files (secrets)'
|
||||
rm /etc/postsrsd.secret
|
||||
|
||||
_log 'debug' 'Deleting default logwatch cronjob'
|
||||
rm /etc/cron.daily/00logwatch
|
||||
}
|
||||
|
||||
function _post_installation_steps
|
||||
{
|
||||
_log 'debug' 'Running post-installation steps (cleanup)'
|
||||
|
@ -216,4 +225,5 @@ _install_packages
|
|||
_install_dovecot
|
||||
_install_rspamd
|
||||
_install_fail2ban
|
||||
_remove_data_after_package_installations
|
||||
_post_installation_steps
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue