fix: SRS setup (#3158)

This commit is contained in:
Casper 2023-03-12 12:10:45 +01:00 committed by GitHub
parent 0baf82f7d0
commit 2da3e1b022
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 60 additions and 36 deletions

View file

@ -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