Update 'installer.sh'
This commit is contained in:
49
installer.sh
49
installer.sh
@@ -213,32 +213,32 @@ useradd -u 5000 -g vmail -s /usr/sbin/nologin -d /var/mail/vmail -m vmail
|
|||||||
##--------------------##
|
##--------------------##
|
||||||
# Certbot (Auto) #
|
# Certbot (Auto) #
|
||||||
##--------------------##
|
##--------------------##
|
||||||
add-apt-repository ppa:certbot/certbot -y
|
#add-apt-repository ppa:certbot/certbot -y
|
||||||
apt install -y python-certbot-nginx
|
#apt install -y python-certbot-nginx
|
||||||
certbot --nginx -n -d "$domain" -m "$email" --hsts --redirect --no-eff-email --agree-tos
|
#certbot --nginx -n -d "$domain" -m "$email" --hsts --redirect --no-eff-email --agree-tos
|
||||||
echo "certbot --nginx -n -d $domain -m $email --hsts --redirect --no-eff-email --agree-tos" > ~/certbotactivate.sh
|
#echo "certbot --nginx -n -d $domain -m $email --hsts --redirect --no-eff-email --agree-tos" > ~/certbotactivate.sh
|
||||||
sed -i 's/ssl ipv6only/ssl http2 ipv6only/g' /etc/nginx/sites-available/"$domain"
|
#sed -i 's/ssl ipv6only/ssl http2 ipv6only/g' /etc/nginx/sites-available/"$domain"
|
||||||
sed -i 's/listen 443 ssl/listen 443 ssl http2/g' /etc/nginx/sites-available/"$domain"
|
#sed -i 's/listen 443 ssl/listen 443 ssl http2/g' /etc/nginx/sites-available/"$domain"
|
||||||
sed -i 's#include /etc/letsencrypt/options-ssl-nginx.conf;#ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;#g' /etc/nginx/sites-available/"$domain"
|
#sed -i 's#include /etc/letsencrypt/options-ssl-nginx.conf;#ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;#g' /etc/nginx/sites-available/"$domain"
|
||||||
openssl dhparam -out /etc/ssl/certs/dhparam.pem "$dhparam"
|
#openssl dhparam -out /etc/ssl/certs/dhparam.pem "$dhparam"
|
||||||
chmod 777 -R /etc/ssl/certs/dhparam.pem
|
#chmod 777 -R /etc/ssl/certs/dhparam.pem
|
||||||
|
|
||||||
##----------------------##
|
##----------------------##
|
||||||
# Certbot (Manual) #
|
# Certbot (Manual) #
|
||||||
##----------------------##
|
##----------------------##
|
||||||
#mkdir -p /etc/letsencrypt/live/$domain/
|
mkdir -p /etc/letsencrypt/live/$domain/
|
||||||
#sed -i 's/ssl ipv6only/ssl http2 ipv6only/g' /etc/nginx/sites-available/"$domain"
|
sed -i 's/ssl ipv6only/ssl http2 ipv6only/g' /etc/nginx/sites-available/"$domain"
|
||||||
#sed -i 's/listen 443 ssl/listen 443 ssl http2/g' /etc/nginx/sites-available/"$domain"
|
sed -i 's/listen 443 ssl/listen 443 ssl http2/g' /etc/nginx/sites-available/"$domain"
|
||||||
#sed -i 's#include /etc/letsencrypt/options-ssl-nginx.conf;#ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;#g' /etc/nginx/sites-available/"$domain"
|
sed -i 's#include /etc/letsencrypt/options-ssl-nginx.conf;#ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;#g' /etc/nginx/sites-available/"$domain"
|
||||||
#wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/lets-encrypt/cert.pem -O /etc/letsencrypt/live/$domain/
|
wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/lets-encrypt/cert.pem -O /etc/letsencrypt/live/$domain/
|
||||||
#wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/lets-encrypt/chain.pem -O /etc/letsencrypt/live/$domain/
|
wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/lets-encrypt/chain.pem -O /etc/letsencrypt/live/$domain/
|
||||||
#wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/lets-encrypt/fullchain.pem -O /etc/letsencrypt/live/$domain/
|
wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/lets-encrypt/fullchain.pem -O /etc/letsencrypt/live/$domain/
|
||||||
#wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/lets-encrypt/privkey.pem -O /etc/letsencrypt/live/$domain/
|
wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/lets-encrypt/privkey.pem -O /etc/letsencrypt/live/$domain/
|
||||||
#wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/nginx/site-enabled -O /etc/nginx/sites-available/mail.ictdownwerk.com
|
wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/nginx/site-enabled -O /etc/nginx/sites-available/mail.ictdownwerk.com
|
||||||
#openssl dhparam -out /etc/ssl/certs/dhparam.pem "$dhparam"
|
openssl dhparam -out /etc/ssl/certs/dhparam.pem "$dhparam"
|
||||||
#chmod 777 -R /etc/ssl/certs/dhparam.pem
|
chmod 777 -R /etc/ssl/certs/dhparam.pem
|
||||||
#chmod 777 -R /etc/letsencrypt/live/$domain/cert.pem chain.pem fullchain.pem privkey.pem
|
chmod 777 -R /etc/letsencrypt/live/$domain/cert.pem chain.pem fullchain.pem privkey.pem
|
||||||
#chmod 644 -R /etc/nginx/sites-available/mail.ictdownwerk.com
|
chmod 644 -R /etc/nginx/sites-available/mail.ictdownwerk.com
|
||||||
|
|
||||||
##-----------------------##
|
##-----------------------##
|
||||||
# Postfix Installer #
|
# Postfix Installer #
|
||||||
@@ -357,6 +357,7 @@ echo "endif # Mail::SpamAssassin::Plugin::Shortcircuit" >> /etc/spamassassin/loc
|
|||||||
apt install clamav clamav-daemon clamsmtp libclamunrar7 clamdscan -y
|
apt install clamav clamav-daemon clamsmtp libclamunrar7 clamdscan -y
|
||||||
chown -R clamav:clamav /var/log/clamav
|
chown -R clamav:clamav /var/log/clamav
|
||||||
chown -R clamav:clamav /var/lib/clamav
|
chown -R clamav:clamav /var/lib/clamav
|
||||||
|
chmod 775 -R /var/lib/clamav
|
||||||
|
|
||||||
##------------##
|
##------------##
|
||||||
# Amavis #
|
# Amavis #
|
||||||
@@ -388,6 +389,10 @@ echo " -o mynetworks=127.0.0.0/8" >> /etc/postfix/master.cf
|
|||||||
echo " -o strict_rfc821_envelopes=yes" >> /etc/postfix/master.cf
|
echo " -o strict_rfc821_envelopes=yes" >> /etc/postfix/master.cf
|
||||||
echo " -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks" >> /etc/postfix/master.cf
|
echo " -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks" >> /etc/postfix/master.cf
|
||||||
echo " -o smtpd_bind_address=127.0.0.1" >> /etc/postfix/master.cf
|
echo " -o smtpd_bind_address=127.0.0.1" >> /etc/postfix/master.cf
|
||||||
|
wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/omega/config/amavis/15-content_filter_mode -O /etc/amavis/conf.d15-content_filter_mode
|
||||||
|
wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/omega/config/amavis/20-debian_defaults -O /etc/amavis/conf.d/20-debian_defaults
|
||||||
|
wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/omega/config/amavis/21-ubuntu_defaults -O /etc/amavis/conf.d/21-ubuntu_defaults
|
||||||
|
wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/omega/config/amavis/50-user -O /etc/amavis/conf.d/50-user
|
||||||
|
|
||||||
##--------------##
|
##--------------##
|
||||||
# Rainloop #
|
# Rainloop #
|
||||||
|
|||||||
Reference in New Issue
Block a user