1,15 → 1,13 |
#!/bin/bash |
|
############################################################################################################################## |
## |
## ALCASAR SERVICE MAIL INSTALL |
## |
## Script by joss_p |
## V 1.0 Dec 2021. |
## This script configure the mail conf file and execute the fonfiguration from the acc. |
## |
## |
############################################################################################################################## |
########################################################################################### |
## |
## ALCASAR SERVICE MAIL INSTALL |
## |
## Script by joss_p |
## This script configure the mail conf file and execute the configuration from the acc. |
## |
########################################################################################### |
|
#. /usr/local/etc/alcasar-mail.conf |
|
63,8 → 61,6 |
done |
fi |
|
|
|
if [[ $TYPE_MAIL -eq 2 ]]; then |
echo "relayhost = [${smtp}]:${port}" >> /etc/postfix/main.cf |
elif [[ $TYPE_MAIL -eq 3 ]]; then |
79,7 → 75,6 |
echo "Erreur ! Aucun type de messagerie sélectionné !" |
exit 0 |
fi |
|
old_smtpIP=`grep "SMTP_IP=" /usr/local/etc/alcasar-iptables-local.sh | cut -d "'" -f2` |
old_port=`grep "SMTP_PORT=" /usr/local/etc/alcasar-iptables-local.sh | cut -d "=" -f2 | cut -f1` |
sed -ie "/SMTP_IP=/ s@${old_smtpIP}@${smtpIP}@" /usr/local/etc/alcasar-iptables-local.sh |
89,5 → 84,4 |
#chmod 740 /usr/local/etc/alcasar-iptables-local.sh |
#chmod 700 /usr/local/bin/alcasar-iptables.sh |
bash /usr/local/bin/alcasar-iptables.sh |
|
exit 0 |