Update 'installer.sh'

This commit is contained in:
b.waal
2019-08-31 23:16:37 +02:00
parent 4b5d290b16
commit 4574d0008a

View File

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