diff --git a/installer.sh b/installer.sh index fb93475..c9bb3c2 100644 --- a/installer.sh +++ b/installer.sh @@ -274,7 +274,6 @@ postconf -e "smtpd_sasl_auth_enable = yes" postconf -e "smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination" sed -i 's/mynetworks = /#mynetworks = /g' /etc/postfix/main.cf wget --tries=3 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/$branch/config/postfix/master.cf -O /etc/postfix/master.cf -systemctl restart postfix.service ##-----------------------## # Dovecot Installer # @@ -301,4 +300,14 @@ sed -i 's/PASSword/'$password'/g' /etc/dovecot/dovecot-sql.conf.ext sed -i 's/PASSword/'$password'/g' /etc/dovecot/dovecot-dict-sql.conf.ext sed -i -e 's/DOMAINname/'$domain'/' -e 's/#ssl_cert = /ssl_cert = /' -e 's/#ssl_key = /ssl_key = /' -e 's/#ssl_dh = /ssl_dh = /' /etc/dovecot/conf.d/10-ssl.conf chmod +x /usr/local/bin/quota-warning.sh -systemctl restart dovecot \ No newline at end of file + +##--------------------------------------## +# Dovecot move Spam to Spam Folder # +##--------------------------------------## +apt install dovecot-sieve dovecot-managesieved -y +mkdir -p /etc/dovecot/sieve/ +wget --tries=3 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/sieve/default.sieve -O /etc/dovecot/sieve/default.sieve +sievec /etc/dovecot/sieve/default.sieve +chown vmail:vmail /etc/dovecot/sieve/ -R +service postfix restart +service dovecot restart \ No newline at end of file