add variable for smtpd_banner
This commit is contained in:
parent
1392fb7432
commit
b3d0d49470
|
@ -3,3 +3,9 @@ postfix_relay_sasl_host: smtp.gmail.com
|
||||||
postfix_relay_sasl_user: user
|
postfix_relay_sasl_user: user
|
||||||
postfix_relay_sasl_domain: gmail.com
|
postfix_relay_sasl_domain: gmail.com
|
||||||
postfix_relay_sasl_passwd: secure
|
postfix_relay_sasl_passwd: secure
|
||||||
|
|
||||||
|
# smtpd_banner contains $myhostname by default and
|
||||||
|
# can't be removed
|
||||||
|
postfix_relay_smtpd_banner:
|
||||||
|
- ESMTP
|
||||||
|
- $mail_name
|
||||||
|
|
|
@ -68,7 +68,7 @@ mail_owner = postfix
|
||||||
#default_privs = nobody
|
#default_privs = nobody
|
||||||
|
|
||||||
# INTERNET HOST AND DOMAIN NAMES
|
# INTERNET HOST AND DOMAIN NAMES
|
||||||
#
|
#
|
||||||
# The myhostname parameter specifies the internet hostname of this
|
# The myhostname parameter specifies the internet hostname of this
|
||||||
# mail system. The default is to use the fully-qualified domain name
|
# mail system. The default is to use the fully-qualified domain name
|
||||||
# from gethostname(). $myhostname is used as a default value for many
|
# from gethostname(). $myhostname is used as a default value for many
|
||||||
|
@ -87,7 +87,7 @@ mydomain = {{ ansible_domain }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# SENDING MAIL
|
# SENDING MAIL
|
||||||
#
|
#
|
||||||
# The myorigin parameter specifies the domain that locally-posted
|
# The myorigin parameter specifies the domain that locally-posted
|
||||||
# mail appears to come from. The default is to append $myhostname,
|
# mail appears to come from. The default is to append $myhostname,
|
||||||
# which is fine for small sites. If you run a domain with multiple
|
# which is fine for small sites. If you run a domain with multiple
|
||||||
|
@ -193,7 +193,7 @@ mydestination =
|
||||||
#
|
#
|
||||||
# - You define $mydestination domain recipients in files other than
|
# - You define $mydestination domain recipients in files other than
|
||||||
# /etc/passwd, /etc/aliases, or the $virtual_alias_maps files.
|
# /etc/passwd, /etc/aliases, or the $virtual_alias_maps files.
|
||||||
# For example, you define $mydestination domain recipients in
|
# For example, you define $mydestination domain recipients in
|
||||||
# the $virtual_mailbox_maps files.
|
# the $virtual_mailbox_maps files.
|
||||||
#
|
#
|
||||||
# - You redefine the local delivery agent in master.cf.
|
# - You redefine the local delivery agent in master.cf.
|
||||||
|
@ -213,7 +213,7 @@ mydestination =
|
||||||
# The right-hand side of the lookup tables is conveniently ignored.
|
# The right-hand side of the lookup tables is conveniently ignored.
|
||||||
# In the left-hand side, specify a bare username, an @domain.tld
|
# In the left-hand side, specify a bare username, an @domain.tld
|
||||||
# wild-card, or specify a user@domain.tld address.
|
# wild-card, or specify a user@domain.tld address.
|
||||||
#
|
#
|
||||||
#local_recipient_maps = unix:passwd.byname $alias_maps
|
#local_recipient_maps = unix:passwd.byname $alias_maps
|
||||||
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
|
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
|
||||||
#local_recipient_maps =
|
#local_recipient_maps =
|
||||||
|
@ -245,16 +245,16 @@ unknown_local_recipient_reject_code = 550
|
||||||
# clients in the same IP subnetworks as the local machine.
|
# clients in the same IP subnetworks as the local machine.
|
||||||
# On Linux, this does works correctly only with interfaces specified
|
# On Linux, this does works correctly only with interfaces specified
|
||||||
# with the "ifconfig" command.
|
# with the "ifconfig" command.
|
||||||
#
|
#
|
||||||
# Specify "mynetworks_style = class" when Postfix should "trust" SMTP
|
# Specify "mynetworks_style = class" when Postfix should "trust" SMTP
|
||||||
# clients in the same IP class A/B/C networks as the local machine.
|
# clients in the same IP class A/B/C networks as the local machine.
|
||||||
# Don't do this with a dialup site - it would cause Postfix to "trust"
|
# Don't do this with a dialup site - it would cause Postfix to "trust"
|
||||||
# your entire provider's network. Instead, specify an explicit
|
# your entire provider's network. Instead, specify an explicit
|
||||||
# mynetworks list by hand, as described below.
|
# mynetworks list by hand, as described below.
|
||||||
#
|
#
|
||||||
# Specify "mynetworks_style = host" when Postfix should "trust"
|
# Specify "mynetworks_style = host" when Postfix should "trust"
|
||||||
# only the local machine.
|
# only the local machine.
|
||||||
#
|
#
|
||||||
#mynetworks_style = class
|
#mynetworks_style = class
|
||||||
#mynetworks_style = subnet
|
#mynetworks_style = subnet
|
||||||
mynetworks_style = host
|
mynetworks_style = host
|
||||||
|
@ -284,7 +284,7 @@ mynetworks = 127.0.0.1
|
||||||
# - from "untrusted" clients to destinations that match $relay_domains or
|
# - from "untrusted" clients to destinations that match $relay_domains or
|
||||||
# subdomains thereof, except addresses with sender-specified routing.
|
# subdomains thereof, except addresses with sender-specified routing.
|
||||||
# The default relay_domains value is $mydestination.
|
# The default relay_domains value is $mydestination.
|
||||||
#
|
#
|
||||||
# In addition to the above, the Postfix SMTP server by default accepts mail
|
# In addition to the above, the Postfix SMTP server by default accepts mail
|
||||||
# that Postfix is final destination for:
|
# that Postfix is final destination for:
|
||||||
# - destinations that match $inet_interfaces or $proxy_interfaces,
|
# - destinations that match $inet_interfaces or $proxy_interfaces,
|
||||||
|
@ -292,7 +292,7 @@ mynetworks = 127.0.0.1
|
||||||
# - destinations that match $virtual_alias_domains,
|
# - destinations that match $virtual_alias_domains,
|
||||||
# - destinations that match $virtual_mailbox_domains.
|
# - destinations that match $virtual_mailbox_domains.
|
||||||
# These destinations do not need to be listed in $relay_domains.
|
# These destinations do not need to be listed in $relay_domains.
|
||||||
#
|
#
|
||||||
# Specify a list of hosts or domains, /file/name patterns or type:name
|
# Specify a list of hosts or domains, /file/name patterns or type:name
|
||||||
# lookup tables, separated by commas and/or whitespace. Continue
|
# lookup tables, separated by commas and/or whitespace. Continue
|
||||||
# long lines by starting the next line with whitespace. A file name
|
# long lines by starting the next line with whitespace. A file name
|
||||||
|
@ -338,7 +338,7 @@ relayhost = [hamal.uberspace.de]:587
|
||||||
# The right-hand side of the lookup tables is conveniently ignored.
|
# The right-hand side of the lookup tables is conveniently ignored.
|
||||||
# In the left-hand side, specify an @domain.tld wild-card, or specify
|
# In the left-hand side, specify an @domain.tld wild-card, or specify
|
||||||
# a user@domain.tld address.
|
# a user@domain.tld address.
|
||||||
#
|
#
|
||||||
#relay_recipient_maps = hash:/etc/postfix/relay_recipients
|
#relay_recipient_maps = hash:/etc/postfix/relay_recipients
|
||||||
|
|
||||||
# INPUT RATE CONTROL
|
# INPUT RATE CONTROL
|
||||||
|
@ -347,15 +347,15 @@ relayhost = [hamal.uberspace.de]:587
|
||||||
# flow control. This feature is turned on by default, although it
|
# flow control. This feature is turned on by default, although it
|
||||||
# still needs further development (it's disabled on SCO UNIX due
|
# still needs further development (it's disabled on SCO UNIX due
|
||||||
# to an SCO bug).
|
# to an SCO bug).
|
||||||
#
|
#
|
||||||
# A Postfix process will pause for $in_flow_delay seconds before
|
# A Postfix process will pause for $in_flow_delay seconds before
|
||||||
# accepting a new message, when the message arrival rate exceeds the
|
# accepting a new message, when the message arrival rate exceeds the
|
||||||
# message delivery rate. With the default 100 SMTP server process
|
# message delivery rate. With the default 100 SMTP server process
|
||||||
# limit, this limits the mail inflow to 100 messages a second more
|
# limit, this limits the mail inflow to 100 messages a second more
|
||||||
# than the number of messages delivered per second.
|
# than the number of messages delivered per second.
|
||||||
#
|
#
|
||||||
# Specify 0 to disable the feature. Valid delays are 0..10.
|
# Specify 0 to disable the feature. Valid delays are 0..10.
|
||||||
#
|
#
|
||||||
#in_flow_delay = 1s
|
#in_flow_delay = 1s
|
||||||
|
|
||||||
# ADDRESS REWRITING
|
# ADDRESS REWRITING
|
||||||
|
@ -385,7 +385,7 @@ relayhost = [hamal.uberspace.de]:587
|
||||||
# On systems with NIS, the default is to search the local alias
|
# On systems with NIS, the default is to search the local alias
|
||||||
# database, then the NIS alias database. See aliases(5) for syntax
|
# database, then the NIS alias database. See aliases(5) for syntax
|
||||||
# details.
|
# details.
|
||||||
#
|
#
|
||||||
# If you change the alias database, run "postalias /etc/aliases" (or
|
# If you change the alias database, run "postalias /etc/aliases" (or
|
||||||
# wherever your system stores the mail alias file), or simply run
|
# wherever your system stores the mail alias file), or simply run
|
||||||
# "newaliases" to build the necessary DBM or DB file.
|
# "newaliases" to build the necessary DBM or DB file.
|
||||||
|
@ -428,7 +428,7 @@ alias_database = hash:/etc/aliases
|
||||||
#
|
#
|
||||||
#home_mailbox = Mailbox
|
#home_mailbox = Mailbox
|
||||||
#home_mailbox = Maildir/
|
#home_mailbox = Maildir/
|
||||||
|
|
||||||
# The mail_spool_directory parameter specifies the directory where
|
# The mail_spool_directory parameter specifies the directory where
|
||||||
# UNIX-style mailboxes are kept. The default setting depends on the
|
# UNIX-style mailboxes are kept. The default setting depends on the
|
||||||
# system type.
|
# system type.
|
||||||
|
@ -470,7 +470,7 @@ alias_database = hash:/etc/aliases
|
||||||
#
|
#
|
||||||
# NOTE: if you use this feature for accounts not in the UNIX password
|
# NOTE: if you use this feature for accounts not in the UNIX password
|
||||||
# file, then you must update the "local_recipient_maps" setting in
|
# file, then you must update the "local_recipient_maps" setting in
|
||||||
# the main.cf file, otherwise the SMTP server will reject mail for
|
# the main.cf file, otherwise the SMTP server will reject mail for
|
||||||
# non-UNIX accounts with "User unknown in local recipient table".
|
# non-UNIX accounts with "User unknown in local recipient table".
|
||||||
#
|
#
|
||||||
# Cyrus IMAP over LMTP. Specify ``lmtpunix cmd="lmtpd"
|
# Cyrus IMAP over LMTP. Specify ``lmtpunix cmd="lmtpd"
|
||||||
|
@ -495,7 +495,7 @@ alias_database = hash:/etc/aliases
|
||||||
# can be used to take advantage of the single instance message store
|
# can be used to take advantage of the single instance message store
|
||||||
# capability of Cyrus. The concurrency limit can be used to control
|
# capability of Cyrus. The concurrency limit can be used to control
|
||||||
# how many simultaneous LMTP sessions will be permitted to the Cyrus
|
# how many simultaneous LMTP sessions will be permitted to the Cyrus
|
||||||
# message store.
|
# message store.
|
||||||
#
|
#
|
||||||
# Cyrus IMAP via command line. Uncomment the "cyrus...pipe" and
|
# Cyrus IMAP via command line. Uncomment the "cyrus...pipe" and
|
||||||
# subsequent line in master.cf.
|
# subsequent line in master.cf.
|
||||||
|
@ -512,7 +512,7 @@ alias_database = hash:/etc/aliases
|
||||||
#
|
#
|
||||||
# NOTE: if you use this feature for accounts not in the UNIX password
|
# NOTE: if you use this feature for accounts not in the UNIX password
|
||||||
# file, then you must update the "local_recipient_maps" setting in
|
# file, then you must update the "local_recipient_maps" setting in
|
||||||
# the main.cf file, otherwise the SMTP server will reject mail for
|
# the main.cf file, otherwise the SMTP server will reject mail for
|
||||||
# non-UNIX accounts with "User unknown in local recipient table".
|
# non-UNIX accounts with "User unknown in local recipient table".
|
||||||
#
|
#
|
||||||
#fallback_transport = lmtp:unix:/var/lib/imap/socket/lmtp
|
#fallback_transport = lmtp:unix:/var/lib/imap/socket/lmtp
|
||||||
|
@ -534,15 +534,15 @@ alias_database = hash:/etc/aliases
|
||||||
#
|
#
|
||||||
# NOTE: if you use this feature for accounts not in the UNIX password
|
# NOTE: if you use this feature for accounts not in the UNIX password
|
||||||
# file, then you must specify "local_recipient_maps =" (i.e. empty) in
|
# file, then you must specify "local_recipient_maps =" (i.e. empty) in
|
||||||
# the main.cf file, otherwise the SMTP server will reject mail for
|
# the main.cf file, otherwise the SMTP server will reject mail for
|
||||||
# non-UNIX accounts with "User unknown in local recipient table".
|
# non-UNIX accounts with "User unknown in local recipient table".
|
||||||
#
|
#
|
||||||
#luser_relay = $user@other.host
|
#luser_relay = $user@other.host
|
||||||
#luser_relay = $local@other.host
|
#luser_relay = $local@other.host
|
||||||
#luser_relay = admin+$local
|
#luser_relay = admin+$local
|
||||||
|
|
||||||
# JUNK MAIL CONTROLS
|
# JUNK MAIL CONTROLS
|
||||||
#
|
#
|
||||||
# The controls listed here are only a very small subset. The file
|
# The controls listed here are only a very small subset. The file
|
||||||
# SMTPD_ACCESS_README provides an overview.
|
# SMTPD_ACCESS_README provides an overview.
|
||||||
|
|
||||||
|
@ -564,11 +564,11 @@ alias_database = hash:/etc/aliases
|
||||||
# deferred mail, so that mail can be flushed quickly with the SMTP
|
# deferred mail, so that mail can be flushed quickly with the SMTP
|
||||||
# "ETRN domain.tld" command, or by executing "sendmail -qRdomain.tld".
|
# "ETRN domain.tld" command, or by executing "sendmail -qRdomain.tld".
|
||||||
# See the ETRN_README document for a detailed description.
|
# See the ETRN_README document for a detailed description.
|
||||||
#
|
#
|
||||||
# The fast_flush_domains parameter controls what destinations are
|
# The fast_flush_domains parameter controls what destinations are
|
||||||
# eligible for this service. By default, they are all domains that
|
# eligible for this service. By default, they are all domains that
|
||||||
# this server is willing to relay mail to.
|
# this server is willing to relay mail to.
|
||||||
#
|
#
|
||||||
#fast_flush_domains = $relay_domains
|
#fast_flush_domains = $relay_domains
|
||||||
|
|
||||||
# SHOW SOFTWARE VERSION OR NOT
|
# SHOW SOFTWARE VERSION OR NOT
|
||||||
|
@ -580,7 +580,7 @@ alias_database = hash:/etc/aliases
|
||||||
# You MUST specify $myhostname at the start of the text. That is an
|
# You MUST specify $myhostname at the start of the text. That is an
|
||||||
# RFC requirement. Postfix itself does not care.
|
# 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)
|
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
|
||||||
|
|
||||||
# PARALLEL DELIVERY TO THE SAME DESTINATION
|
# PARALLEL DELIVERY TO THE SAME DESTINATION
|
||||||
|
@ -592,7 +592,7 @@ alias_database = hash:/etc/aliases
|
||||||
# too many are run at the same time. With SMTP deliveries, 10
|
# too many are run at the same time. With SMTP deliveries, 10
|
||||||
# simultaneous connections to the same domain could be sufficient to
|
# simultaneous connections to the same domain could be sufficient to
|
||||||
# raise eyebrows.
|
# raise eyebrows.
|
||||||
#
|
#
|
||||||
# Each message delivery transport has its XXX_destination_concurrency_limit
|
# Each message delivery transport has its XXX_destination_concurrency_limit
|
||||||
# parameter. The default is $default_destination_concurrency_limit for
|
# parameter. The default is $default_destination_concurrency_limit for
|
||||||
# most delivery transports. For the local delivery agent the default is 2.
|
# most delivery transports. For the local delivery agent the default is 2.
|
||||||
|
@ -650,10 +650,10 @@ debugger_command =
|
||||||
# INSTALL-TIME CONFIGURATION INFORMATION
|
# INSTALL-TIME CONFIGURATION INFORMATION
|
||||||
#
|
#
|
||||||
# The following parameters are used when installing a new Postfix version.
|
# The following parameters are used when installing a new Postfix version.
|
||||||
#
|
#
|
||||||
# sendmail_path: The full pathname of the Postfix sendmail command.
|
# sendmail_path: The full pathname of the Postfix sendmail command.
|
||||||
# This is the Sendmail-compatible mail posting interface.
|
# This is the Sendmail-compatible mail posting interface.
|
||||||
#
|
#
|
||||||
sendmail_path = /usr/sbin/sendmail.postfix
|
sendmail_path = /usr/sbin/sendmail.postfix
|
||||||
|
|
||||||
# newaliases_path: The full pathname of the Postfix newaliases command.
|
# newaliases_path: The full pathname of the Postfix newaliases command.
|
||||||
|
@ -663,7 +663,7 @@ newaliases_path = /usr/bin/newaliases.postfix
|
||||||
|
|
||||||
# mailq_path: The full pathname of the Postfix mailq command. This
|
# mailq_path: The full pathname of the Postfix mailq command. This
|
||||||
# is the Sendmail-compatible mail queue listing command.
|
# is the Sendmail-compatible mail queue listing command.
|
||||||
#
|
#
|
||||||
mailq_path = /usr/bin/mailq.postfix
|
mailq_path = /usr/bin/mailq.postfix
|
||||||
|
|
||||||
# setgid_group: The group for mail submission and queue management
|
# setgid_group: The group for mail submission and queue management
|
||||||
|
|
Loading…
Reference in New Issue