38 lines
1.1 KiB
Django/Jinja
38 lines
1.1 KiB
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
|
|
biff = no
|
|
|
|
# appending .domain is the MUA's job.
|
|
append_dot_mydomain = no
|
|
|
|
readme_directory = no
|
|
|
|
# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 3.6 on
|
|
# fresh installs.
|
|
compatibility_level = 3.6
|
|
|
|
myhostname = {{ ansible_hostname }}.{{ mydomain }}
|
|
mydomain = {{ mydomain }}
|
|
myorigin = $myhostname
|
|
mydestination = $myhostname localhost.$mydomain localhost
|
|
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
|
|
|
|
alias_maps = hash:/etc/aliases
|
|
alias_database = hash:/etc/aliases
|
|
relayhost = [{{ hostvars[relayhost].ipv4_addr }}]:587
|
|
mailbox_size_limit = 0
|
|
recipient_delimiter = +
|
|
inet_interfaces = all
|
|
inet_protocols = all
|
|
|
|
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
|
|
|
|
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
|
|
smtpd_tls_security_level = may
|
|
smtpd_tls_auth_only = yes
|
|
|
|
smtp_tls_CApath = /etc/ssl/certs
|
|
smtp_tls_security_level = may
|
|
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
|