Update 'installer.sh'
This commit is contained in:
15
installer.sh
15
installer.sh
@@ -323,12 +323,23 @@ wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$bra
|
|||||||
source /tmp/rainloop.sh
|
source /tmp/rainloop.sh
|
||||||
ln -s /opt/rainloop /var/www/"$domain"/html/
|
ln -s /opt/rainloop /var/www/"$domain"/html/
|
||||||
|
|
||||||
|
##--------------##
|
||||||
|
# Fail2Ban #
|
||||||
|
##--------------##
|
||||||
|
apt install fail2ban -y
|
||||||
|
wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/fail2ban/dovecot-pop3imap.conf -O /etc/fail2ban/filter.d/dovecot-pop3imap.conf
|
||||||
|
wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/fail2ban/postfix-sasl.conf -O /etc/fail2ban/filter.d/postfix-sasl.conf
|
||||||
|
wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/fail2ban/rainloop.conf -O /etc/fail2ban/filter.d/rainloop.conf
|
||||||
|
wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/fail2ban/jail.local -O /etc/fail2ban/jail.local
|
||||||
|
sed -i 's/root@localhost/'$email'/g' /etc/fail2ban/jail.conf
|
||||||
|
systemctl restart fail2ban
|
||||||
|
|
||||||
##-----------------------##
|
##-----------------------##
|
||||||
# Enabling Services #
|
# Enabling Services #
|
||||||
##-----------------------##
|
##-----------------------##
|
||||||
systemctl enable postfix.service postfix@-.service dovecot.service
|
systemctl enable postfix.service postfix@-.service dovecot.service fail2ban.service
|
||||||
|
|
||||||
##-----------------------##
|
##-----------------------##
|
||||||
# Starting Services #
|
# Starting Services #
|
||||||
##-----------------------##
|
##-----------------------##
|
||||||
systemctl restart postfix.service postfix@-.service dovecot.service
|
systemctl restart postfix.service postfix@-.service dovecot.service fail2ban.service
|
||||||
Reference in New Issue
Block a user