34 lines
1000 B
Django/Jinja
34 lines
1000 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
|
|
biff = no
|
|
|
|
append_dot_mydomain = no
|
|
|
|
readme_directory = no
|
|
|
|
compatibility_level = 2
|
|
|
|
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
|
|
alias_maps = hash:/etc/aliases
|
|
alias_database = hash:/etc/aliases
|
|
{% if common_postfix_configure_sasl is true %}
|
|
relayhost = [{{ common_postfix_mail_relay }}]:587
|
|
{% else %}
|
|
relayhost = {{ common_postfix_mail_relay }}
|
|
{% endif %}
|
|
mynetworks = {{ common_postfix_mynetworks }}
|
|
inet_interfaces = localhost
|
|
inet_protocols = all
|
|
|
|
# reecritures d'adresses si besoin
|
|
sender_canonical_maps = regexp:/etc/postfix/sender_canonical_maps_regexp
|
|
recipient_canonical_maps = regexp:/etc/postfix/recipient_canonical_maps_regexp
|
|
|
|
{% if common_postfix_configure_sasl is true %}
|
|
smtp_sasl_auth_enable = yes
|
|
smtp_sasl_password_maps = hash:/etc/postfix/sasl-password-map
|
|
smtp_sasl_security_options = noanonymous
|
|
smtp_tls_security_level = encrypt
|
|
{% endif %}
|