chgrp mail /etc/ssmtp/ssmtp.conf

This commit is contained in:
fred 2022-12-10 13:24:50 +01:00
parent f0677e4ca7
commit d41da77a99
2 changed files with 3 additions and 2 deletions

View File

@ -121,7 +121,7 @@ RUN chmod +rx /usr/local/bin/cronlock
# config ssmtp
COPY templates/.ssmtprc /etc/ssmtp/ssmtp.conf
RUN chmod 600 /etc/ssmtp/ssmtp.conf
RUN chmod 640 /etc/ssmtp/ssmtp.conf && chgrp mail /etc/ssmtp/ssmtp.conf
EXPOSE 1234 12345

View File

@ -99,7 +99,8 @@ echo "## INSTALLATION AstroGEEK OpenCV = 'Intelligence Amie' - DEV - "
## MAILJET SSMTP RELAYING : ADD YOUR CREDENTIALS
sudo cp ~/.zen/Astroport.ONE/templates/.ssmtprc /etc/ssmtp/ssmtp.conf
sudo chmod 600 /etc/ssmtp/ssmtp.conf
sudo chmod 640 /etc/ssmtp/ssmtp.conf
sudo chgrp mail /etc/ssmtp/ssmtp.conf
echo "$USER:support@g1sms.fr:mail.asycn.io:587" | (sudo su -c 'tee -a /etc/ssmtp/revaliases')