update main.cf
This commit is contained in:
parent
45274c3220
commit
8f9c429679
@ -13,6 +13,7 @@ mynetworks_style = subnet
|
|||||||
relay_domains = $mydestination
|
relay_domains = $mydestination
|
||||||
recipient_delimiter = +
|
recipient_delimiter = +
|
||||||
mailbox_transport = lmtp:{{getenv "LMTPHOST"}}
|
mailbox_transport = lmtp:{{getenv "LMTPHOST"}}
|
||||||
|
mailbox_size_limit = {{getenv "MAILBOXSIZELIMIT"}}
|
||||||
smtpd_banner = $myhostname ESMTP $mail_name
|
smtpd_banner = $myhostname ESMTP $mail_name
|
||||||
virtual_mailbox_domains = proxy:ldap:/etc/postfix/ldap-virtual-mailbox-domains.cf
|
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_mailbox_maps = proxy:ldap:/etc/postfix/ldap-virtual-mailbox-maps.cf
|
||||||
@ -30,3 +31,10 @@ milter_default_action = accept
|
|||||||
milter_connect_macros = "i j {daemon_name} v {if_name} _"
|
milter_connect_macros = "i j {daemon_name} v {if_name} _"
|
||||||
message_size_limit = {{getenv "MESSAGESIZELIMIT"}}
|
message_size_limit = {{getenv "MESSAGESIZELIMIT"}}
|
||||||
sender_dependent_default_transport_maps = hash:/etc/postfix/sender-transport
|
sender_dependent_default_transport_maps = hash:/etc/postfix/sender-transport
|
||||||
|
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
|
||||||
|
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
|
||||||
|
smtpd_tls_mandatory_protocols = {{getenv "TLSMANDATORYPROTOCOLS"}}
|
||||||
|
tls_preempt_cipherlist = yes
|
||||||
|
smtpd_tls_mandatory_ciphers = {{getenv "TLSMANDATORYCIPHERS"}}
|
||||||
|
smtpd_tls_ciphers = {{getenv "TLSCIPHERS"}}
|
||||||
|
smtpd_tls_mandatory_exclude_ciphers = {{getenv "TLSMANDATORYEXCLUDECIPHERS"}}
|
@ -1,13 +1,16 @@
|
|||||||
smtp inet n - - - - smtpd
|
smtp inet n - - - - smtpd
|
||||||
|
-o syslog_name=postfix/smtp
|
||||||
-o myhostname={{getenv "MYDOMAIN"}}
|
-o myhostname={{getenv "MYDOMAIN"}}
|
||||||
-o smtpd_tls_key_file=/etc/ssl/mail/privkey.pem
|
-o smtpd_tls_key_file=/etc/ssl/mail/privkey.pem
|
||||||
-o smtpd_tls_cert_file=/etc/ssl/mail/fullchain.pem
|
-o smtpd_tls_cert_file=/etc/ssl/mail/fullchain.pem
|
||||||
|
|
||||||
{{getenv "MYDOMAIN"}}-out unix - - - - - smtp
|
{{getenv "MYDOMAIN"}}-out unix - - - - - smtp
|
||||||
-o smtp_helo_name={{getenv "MYHOSTNAME"}}
|
-o smtp_helo_name={{getenv "MYHOSTNAME"}}
|
||||||
|
-o syslog_name=postfix/smtp-out
|
||||||
|
|
||||||
submission inet n - - - - smtpd
|
submission inet n - - - - smtpd
|
||||||
-o syslog_name=postfix/submission
|
-o syslog_name=postfix/submission
|
||||||
|
-o smtpd_tls_wrappermode=no
|
||||||
-o smtpd_tls_security_level=encrypt
|
-o smtpd_tls_security_level=encrypt
|
||||||
-o smtpd_sasl_auth_enable=yes
|
-o smtpd_sasl_auth_enable=yes
|
||||||
-o smtpd_relay_restrictions=permit_mynetworks,permit_sasl_authenticated,defer_unauth_destination
|
-o smtpd_relay_restrictions=permit_mynetworks,permit_sasl_authenticated,defer_unauth_destination
|
||||||
|
Loading…
Reference in New Issue
Block a user