2016-07-06 09:42:10 +00:00
|
|
|
compatibility_level = 2
|
2016-07-08 08:21:21 +00:00
|
|
|
|
2016-07-06 09:42:10 +00:00
|
|
|
mail_owner = postfix
|
|
|
|
myhostname = {{getenv "MYHOSTNAME"}}
|
|
|
|
mydomain = {{getenv "MYDOMAIN"}}
|
|
|
|
myorigin = $mydomain
|
|
|
|
mydestination = localhost
|
2016-07-08 08:21:21 +00:00
|
|
|
|
2016-07-06 09:42:10 +00:00
|
|
|
unknown_local_recipient_reject_code = 550
|
|
|
|
mynetworks_style = subnet
|
|
|
|
relay_domains = $mydestination
|
|
|
|
recipient_delimiter = +
|
2016-07-08 08:21:21 +00:00
|
|
|
|
2016-07-06 09:42:10 +00:00
|
|
|
mailbox_transport = lmtp:{{getenv "LMTPHOST"}}
|
2016-07-07 12:53:32 +00:00
|
|
|
mailbox_size_limit = {{getenv "MAILBOXSIZELIMIT"}}
|
2016-07-08 08:21:21 +00:00
|
|
|
smtpd_banner = {{getenv "SMTP"}} $myhostname ESMTP $mail_name
|
|
|
|
|
2016-07-06 09:42:10 +00:00
|
|
|
virtual_mailbox_domains = proxy:ldap:/etc/postfix/ldap-virtual-mailbox-domains.cf
|
|
|
|
virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap-virtual-mailbox-maps.cf
|
|
|
|
virtual_alias_maps = proxy:ldap:/etc/postfix/ldap-virtual-alias-maps.cf
|
|
|
|
virtual_transport = lmtp:inet:{{getenv "LMTPHOST"}}:{{getenv "LMTPPORT"}}
|
2016-07-08 08:21:21 +00:00
|
|
|
|
|
|
|
smtpd_tls_key_file=/etc/ssl/mail/privkey.pem
|
|
|
|
smtpd_tls_cert_file=/etc/ssl/mail/fullchain.pem
|
|
|
|
|
|
|
|
smtpd_tls_security_level = {{getenv "TLSSECURITYLEVEL"}}
|
|
|
|
smtpd_tls_auth_only = yes
|
|
|
|
|
|
|
|
smtpd_tls_mandatory_protocols = {{getenv "TLSMANDATORYPROTOCOLS"}}
|
|
|
|
smtpd_tls_mandatory_ciphers = {{getenv "TLSMANDATORYCIPHERS"}}
|
|
|
|
smtpd_tls_ciphers = {{getenv "TLSCIPHERS"}}
|
|
|
|
smtpd_tls_mandatory_exclude_ciphers = {{getenv "TLSMANDATORYEXCLUDECIPHERS"}}
|
|
|
|
smtpd_tls_wrappermode = no
|
|
|
|
|
|
|
|
smtp_tls_mandatory_ciphers = $smtpd_tls_mandatory_ciphers
|
|
|
|
smtp_tls_ciphers = $smtpd_tls_ciphers
|
|
|
|
|
|
|
|
lmtp_tls_mandatory_ciphers = $smtpd_tls_mandatory_ciphers
|
|
|
|
lmtp_tls_ciphers = $smtpd_tls_ciphers
|
|
|
|
|
|
|
|
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
|
|
|
|
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
|
|
|
|
|
2016-07-06 09:42:10 +00:00
|
|
|
smtpd_sasl_type = dovecot
|
|
|
|
smtpd_sasl_path = inet:{{getenv "DOVECOTHOST"}}:{{getenv "DOVECOTAUTHPORT"}}
|
|
|
|
smtpd_sasl_auth_enable = yes
|
2016-07-08 08:21:21 +00:00
|
|
|
|
|
|
|
smtpd_relay_restrictions = permit_mynetworks,permit_sasl_authenticated,defer_unauth_destination
|
|
|
|
|
2016-07-06 09:42:10 +00:00
|
|
|
smtpd_milters =
|
2016-07-11 11:11:16 +00:00
|
|
|
unix:/var/run/spamass.sock
|
2016-07-06 09:42:10 +00:00
|
|
|
non_smtpd_milters = $smtpd_milters
|
|
|
|
milter_default_action = accept
|
2016-07-08 08:21:21 +00:00
|
|
|
milter_macro_daemon_name = ORIGINATING
|
2016-07-11 09:38:52 +00:00
|
|
|
milter_connect_macros = "i j {daemon_name} v {if_name} _"
|
2016-07-08 08:21:21 +00:00
|
|
|
|
2016-07-06 09:42:10 +00:00
|
|
|
message_size_limit = {{getenv "MESSAGESIZELIMIT"}}
|
2016-07-08 08:21:21 +00:00
|
|
|
|
2016-07-07 12:53:32 +00:00
|
|
|
tls_preempt_cipherlist = yes
|
2016-07-08 08:21:21 +00:00
|
|
|
|
2016-07-08 07:58:07 +00:00
|
|
|
smtputf8_enable = no
|
|
|
|
biff = no
|