add variable for smtpd_banner

This commit is contained in:
Robert Kaussow 2018-12-10 23:28:15 +01:00
parent 1392fb7432
commit b3d0d49470
2 changed files with 34 additions and 28 deletions

View File

@ -3,3 +3,9 @@ postfix_relay_sasl_host: smtp.gmail.com
postfix_relay_sasl_user: user
postfix_relay_sasl_domain: gmail.com
postfix_relay_sasl_passwd: secure
# smtpd_banner contains $myhostname by default and
# can't be removed
postfix_relay_smtpd_banner:
- ESMTP
- $mail_name

View File

@ -580,7 +580,7 @@ alias_database = hash:/etc/aliases
# You MUST specify $myhostname at the start of the text. That is an
# RFC requirement. Postfix itself does not care.
#
#smtpd_banner = $myhostname ESMTP $mail_name
smtpd_banner = {{ (['$myhostname'] + postfix_relay_smtpd_banner) | join(' ') }}
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
# PARALLEL DELIVERY TO THE SAME DESTINATION