1 # auto-generated by proxmox
3 compatibility_level = 2
4 command_directory = /usr/sbin
5 daemon_directory = /usr/lib/postfix/sbin
6 data_directory = /var/lib/postfix
8 # appending .domain is the MUA's job.
9 append_dot_mydomain = yes
11 smtpd_banner = $myhostname [% pmg.mail.banner %]
14 [% IF pmg.mail.dwarning %]
15 delay_warning_time = [% pmg.mail.dwarning %]h
18 best_mx_transport = local
19 message_size_limit = [% pmg.mail.maxsize %]
20 mailbox_size_limit = [% ((pmg.mail.maxsize*2 > 51200000) ? pmg.mail.maxsize*2 : 51200000) %]
22 mydomain = [% dns.domain %]
23 myhostname = [% dns.hostname %].[% dns.domain %]
25 parent_domain_matches_subdomains = debug_peer_list,fast_flush_domains,mynetworks,permit_mx_backup_networks,qmqpd_authorized_clients,smtpd_access_maps
27 alias_maps = hash:/etc/aliases
28 alias_database = hash:/etc/aliases
29 mydestination = localhost, $myhostname
30 mynetworks = [% postfix.mynetworks %]
32 relay_domains = hash:/etc/pmg/domains
34 transport_maps = texthash:/etc/postfix/transport
36 [% IF pmg.mail.relay %]
37 [% IF pmg.mail.relaynomx %]
38 relay_transport = smtp:[[% pmg.mail.relay %]]:[% pmg.mail.relayport %]
40 relay_transport = smtp:[% pmg.mail.relay %]:[% pmg.mail.relayport %]
44 [% IF pmg.mail.smarthost %]
45 default_transport = smtp:[% pmg.mail.smarthost %]
50 [% IF pmg.mail.rejectunknown %]
51 smtpd_client_restrictions =
55 smtpd_sender_restrictions =
56 reject_non_fqdn_sender
57 [%- IF pmg.mail.rejectunknownsender %] reject_unknown_sender_domain[% END %]
59 smtpd_recipient_restrictions =
61 reject_unauth_destination
62 reject_non_fqdn_recipient
64 smtpd_client_connection_count_limit = [% pmg.mail.conn_count_limit %]
65 smtpd_client_connection_rate_limit = [% pmg.mail.conn_rate_limit %]
66 smtpd_client_message_rate_limit = [% pmg.mail.message_rate_limit %]
68 default_destination_concurrency_limit = 40
69 lmtp_destination_concurrency_limit = 20
70 relay_destination_concurrency_limit = 20
71 smtp_destination_concurrency_limit = 20
72 virtual_destination_concurrency_limit = 20
74 recipient_delimiter = +