X-Git-Url: https://dehnerts.com/gitweb/?a=blobdiff_plain;f=main.cf;h=bba2fed424ff4410e50723cc5910bae32ce9b84f;hb=1e88f4e82197f80a6b0f512b2d372d4faa504896;hp=b57cef06de5a2902e5380a0fcb5fd461c4aa0e62;hpb=6692ef67c5beca9054f0b9642461ecf95327c70b;p=sysconfig%2Fpostfix.git diff --git a/main.cf b/main.cf index b57cef0..bba2fed 100644 --- a/main.cf +++ b/main.cf @@ -212,7 +212,8 @@ local_recipient_maps = unix:passwd.byname $alias_maps # with 450 (try again later) until you are certain that your # local_recipient_maps settings are OK. # -unknown_local_recipient_reject_code = 450 +#unknown_local_recipient_reject_code = 450 +unknown_local_recipient_reject_code = 550 # TRUST AND RELAY CONTROL @@ -256,7 +257,7 @@ unknown_local_recipient_reject_code = 450 # (the value on the table right-hand side is not used). # # Added by Alex Dehnert -mynetworks = 66.92.29.156/32, 66.92.29.144/32, 127.0.0.1/32, 18.111.8.18/32, 18.102.208.15/32 +mynetworks = 66.92.29.156/32, 66.92.29.144/32, 127.0.0.1/32, 18.111.8.18/32, [::1]/128 #mynetworks = 168.100.189.0/28, 127.0.0.0/8 #mynetworks = $config_directory/mynetworks #mynetworks = hash:/etc/postfix/network_table @@ -278,6 +279,17 @@ smtpd_tls_auth_only = yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache +# Milter configuration +# Based on https://www.linode.com/docs/guides/configure-spf-and-dkim-in-postfix-on-debian-9/#testing-postfix-dkim-on-debian-9-with-a-gmail-test +# http://www.opendkim.org/opendkim-README +# http://www.postfix.org/MILTER_README.html +# OpenDKIM +milter_default_action = accept +# Postfix ≥ 2.6 milter_protocol = 6, Postfix ≤ 2.5 milter_protocol = 2 +milter_protocol = 6 +smtpd_milters = unix:opendkim/opendkim.sock +non_smtpd_milters = $smtpd_milters + # Alex Dehnert, 2017-11-01 # Based on https://serverfault.com/questions/663979/virtual-alias-domains-how-to-use-different-ip-addresses-when-forwarding-mail @@ -483,6 +495,9 @@ mailbox_command = /usr/lib/dovecot/deliver # See https://wiki.dovecot.org/LDA/Postfix mailbox_size_limit = 512000000 +# Max message size 40MB +message_size_limit = 41943040 + # The mailbox_transport specifies the optional transport in master.cf # to use after processing aliases and .forward files. This parameter # has precedence over the mailbox_command, fallback_transport and