Fixed entrypoint
This commit is contained in:
@@ -77,33 +77,39 @@ cat > /etc/postfix/master.cf <<'EOF'
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
# SMTP configuration.
|
# SMTP configuration.
|
||||||
if [ "${POSTFIX_SMTP_ENABLED}" = "yes" ]; then
|
case "${POSTFIX_SMTP_ENABLED}" in
|
||||||
|
true|yes|on|1)
|
||||||
cat >> /etc/postfix/master.cf <<'EOF'
|
cat >> /etc/postfix/master.cf <<'EOF'
|
||||||
smtp inet n - y - - smtpd
|
smtp inet n - y - - smtpd
|
||||||
-o syslog_name=postfix/smtp
|
-o syslog_name=postfix/smtp
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Submission configuration.
|
# Submission configuration.
|
||||||
if [ "${POSTFIX_SUBMISSION_ENABLED}" = "yes" ]; then
|
case "${POSTFIX_SUBMISSION_ENABLED}" in
|
||||||
|
true|yes|on|1)
|
||||||
cat >> /etc/postfix/master.cf <<EOF
|
cat >> /etc/postfix/master.cf <<EOF
|
||||||
submission inet n - y - - smtpd
|
submission inet n - y - - smtpd
|
||||||
-o syslog_name=postfix/submission
|
-o syslog_name=postfix/submission
|
||||||
-o smtpd_tls_security_level=${POSTFIX_SUBMISSION_TLS_SECURITY_LEVEL}
|
-o smtpd_tls_security_level=${POSTFIX_SUBMISSION_TLS_SECURITY_LEVEL}
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# SSL encrypted SMTP configuration.
|
# SSL encrypted SMTP configuration.
|
||||||
if [ "${POSTFIX_SMTPS_ENABLED}" = "yes" ]; then
|
case "${POSTFIX_SMTPS_ENABLED}" in
|
||||||
|
true|yes|on|1)
|
||||||
cat >> /etc/postfix/master.cf <<EOF
|
cat >> /etc/postfix/master.cf <<EOF
|
||||||
smtps inet n - y - - smtpd
|
smtps inet n - y - - smtpd
|
||||||
-o syslog_name=postfix/smtps
|
-o syslog_name=postfix/smtps
|
||||||
-o smtpd_tls_wrappermode=${POSTFIX_SMTPS_TLS_WRAPPERMODE}
|
-o smtpd_tls_wrappermode=${POSTFIX_SMTPS_TLS_WRAPPERMODE}
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Other internal services.
|
# Other internal services.
|
||||||
cat >> /etc/postfix/master.cf <<EOF
|
cat >> /etc/postfix/master.cf <<EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user