From 6239745db6647c8c09494095b399283855d2110a Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 28 Oct 2022 13:27:57 +0200 Subject: [PATCH] -tls on --- install.sh | 6 +++++- templates/.msmtprc | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 2eb89952..f387ad67 100755 --- a/install.sh +++ b/install.sh @@ -49,7 +49,7 @@ for i in git fail2ban npm netcat-traditional inotify-tools curl net-tools libsod fi done -for i in qrencode jq bc file gawk yt-dlp ffmpeg sqlite dnsutils v4l-utils espeak vlc mp3info musl-dev openssl* detox nmap httrack html2text ssmtp imagemagick ttf-mscorefonts-installer; do +for i in qrencode jq bc file gawk yt-dlp ffmpeg sqlite dnsutils v4l-utils espeak vlc mp3info musl-dev openssl* detox nmap httrack html2text msmtp imagemagick ttf-mscorefonts-installer; do if [ $(dpkg-query -W -f='${Status}' $i 2>/dev/null | grep -c "ok installed") -eq 0 ]; then echo ">>> Installation $i <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<" sudo apt install -y $i @@ -80,6 +80,10 @@ fi echo "## INSTALLATION AstroGEEK OpenCV = 'Intelligence Amie' - DEV - " # sudo apt-get install python3-opencv -y +## MAILJET RELAYING +cp ~/.zen/Astroport.ONE/templates/.msmtprc ~/ +chmod 600 ~/.msmtprc + ## Correct PDF restrictions for imagemagick echo "# Correction des droits export PDF imagemagick" if [[ $(cat /etc/ImageMagick-6/policy.xml | grep PDF) ]]; then diff --git a/templates/.msmtprc b/templates/.msmtprc index 753928c2..6599b703 100644 --- a/templates/.msmtprc +++ b/templates/.msmtprc @@ -1,5 +1,4 @@ account default -tls on host in-v3.mailjet.com port 587 from support@qo-op.com