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 = hash:/etc/pmg/transport
36 [% IF pmg.mail.relay %]
37 [% IF pmg.mail.relayprotocol == 'lmtp' %]
38 relay_transport = [% pmg.mail.relayprotocol %]:inet:[% pmg.mail.relay %]:[% pmg.mail.relayport %]
40 [% IF pmg.mail.relaynomx %]
41 relay_transport = [% pmg.mail.relayprotocol %]:[[% pmg.mail.relay %]]:[% pmg.mail.relayport %]
43 relay_transport = [% pmg.mail.relayprotocol %]:[% pmg.mail.relay %]:[% pmg.mail.relayport %]
48 [% IF pmg.mail.smarthost %]
49 default_transport = smtp:[% pmg.mail.smarthost %]:[% pmg.mail.smarthostport %]
54 [% IF pmg.mail.rejectunknown %]
55 smtpd_client_restrictions =
59 smtpd_sender_restrictions =
60 reject_non_fqdn_sender
61 [%- IF pmg.mail.rejectunknownsender %] reject_unknown_sender_domain[% END %]
63 smtpd_recipient_restrictions =
65 reject_unauth_destination
66 reject_non_fqdn_recipient
68 smtpd_client_connection_count_limit = [% pmg.mail.conn_count_limit %]
69 smtpd_client_connection_rate_limit = [% pmg.mail.conn_rate_limit %]
70 smtpd_client_message_rate_limit = [% pmg.mail.message_rate_limit %]
72 default_destination_concurrency_limit = 40
73 lmtp_destination_concurrency_limit = 20
74 relay_destination_concurrency_limit = 20
75 smtp_destination_concurrency_limit = 20
76 virtual_destination_concurrency_limit = 20
78 recipient_delimiter = +