Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 3004 → Rev 3005

/alcasar.sh
2134,18 → 2134,15
##################################################################
mail_service()
{
[ -e /etc/postfix/main.cf.default ] || cp /etc/postfix/main.cf /etc/postfix/main.cf.default
[ -e /etc/postfix/main.cf.orig ] || cp /etc/postfix/main.cf /etc/postfix/main.cf.orig
cat << EOT >> /etc/postfix/main.cf
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd
smtpd_banner = \$myhostname ESMTP
relayhost =
myhostname = $HOSTNAME.$DOMAIN
EOT
# Enable SASL authentication
$SED "s?^smtp_sasl_auth_enable =.*?smtp_sasl_auth_enable = yes?g" /etc/postfix/main.cf
# Disallow methods that allow anonymous authentication
$SED "s?^smtp_sasl_security_options =.*?smtp_sasl_security_options = noanonymous?g" /etc/postfix/main.cf
# Location of sasl_passwd
$SED "s?^smtp_sasl_password_maps =.*?smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd?g" /etc/postfix/main.cf
# Banner anonymisation
$SED "s?^smtpd_banner =.*?smtpd_banner = \$myhostname ESMTP?g" /etc/postfix/main.cf
chown -R postfix:postfix /var/lib/postfix
} # end of mail_service
 
2189,9 → 2186,9
echo "SMS_NUM=" >> $CONF_FILE
echo "MAIL=off" >> $CONF_FILE
echo "MAIL_TYPE=" >> $CONF_FILE
echo "MAIL_SMTP=" >> $CONF_FILE
echo "MAIL_SMTP_IP=" >> $CONF_FILE
echo "MAIL_PORT=" >> $CONF_FILE
echo "MAIL_SMTP=" >> $CONF_FILE
echo "MAIL_ADDR=" >> $CONF_FILE
echo "MAIL_WHITEDOMAIN=" >> $CONF_FILE
echo "MAIL_ADMIN=" >> $CONF_FILE
/scripts/alcasar-uninstall.sh
279,6 → 279,12
[ -e /opt/acme.sh ] && rm -rf /opt/acme.sh && echo -n "3"
}
 
mail_service()
{
echo -en "(1) : "
[ -e /etc/postfix/main.cf.orig ] && mv /etc/postfix/main.cf.orig /etc/postfix/main.cf && echo -n "1"
}
 
post_install ()
{
echo -en "(7) : "