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