1 # local delivery: aliases only
2 alias_maps = hash:/etc/aliases
3 local_recipient_maps = $alias_maps
4 # explicitly UNSET relay domains to prevent implicit domains
6 # only consider ourselves local
7 mynetworks_style = host
8 {% if postfix.mynetworks is defined %}
9 mynetworks = {{ postfix.mynetworks }}
12 # TLS server parameters
13 smtpd_tls_cert_file=/etc/ssl/mycerts/letsencrypt/live.crt+chain
14 smtpd_tls_key_file=/etc/ssl/private/letsencrypt/live.key
15 smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
16 smtpd_tls_security_level = may
17 smtpd_tls_loglevel = 1
18 smtpd_tls_dh1024_param_file = /etc/ssl/dh2048.pem
19 smtpd_tls_mandatory_protocols = !SSLv2 !SSLv3
20 smtpd_tls_ciphers = low
21 smtpd_tls_mandatory_ciphers = high
22 # TLS client parameters
23 smtp_tls_mandatory_protocols = !SSLv2 !SSLv3
24 smtp_tls_ciphers = low
25 smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
26 smtp_tls_security_level = dane
27 smtp_dns_support_level = dnssec
31 postscreen_dnsbl_threshold = 3
32 postscreen_dnsbl_whitelist_threshold = -2
33 postscreen_dnsbl_sites =
34 ix.dnsbl.manitu.net*2 sbl-xbl.spamhaus.org*2
35 bl.spamcop.net dnsbl.sorbs.net bl.mailspike.net
36 swl.spamhaus.org*-2 list.dnswl.org=127.0.[0..255].[0..254]*-2
37 postscreen_greet_action = enforce
38 postscreen_dnsbl_action = enforce
39 postscreen_pipelining_enable = yes
40 postscreen_non_smtp_command_enable = yes
41 postscreen_bare_newline_enable = yes
42 # control relay access
43 smtpd_relay_restrictions = permit_mynetworks, permit_tls_clientcerts,
45 defer_unauth_destination
46 # spam-protection restrictions
47 smtpd_helo_required = yes
48 smtpd_recipient_restrictions = permit_mynetworks, permit_tls_clientcerts,
49 # check everybody else
50 reject_unauth_pipelining,
51 reject_invalid_helo_hostname,
52 reject_non_fqdn_recipient,
53 reject_non_fqdn_sender,
56 smtpd_delay_reject = yes
57 disable_vrfy_command = yes
58 recipient_delimiter = +
59 delay_warning_time = 4h
60 message_size_limit = 21384000
61 append_dot_mydomain = no