]> git.proxmox.com Git - pmg-api.git/blob - src/templates/main.cf.in.demo
Revert "improve csrf backward compatibility"
[pmg-api.git] / src / templates / main.cf.in.demo
1 # auto-generated by proxmox
2
3 compatibility_level = 2
4 command_directory = /usr/sbin
5 daemon_directory = /usr/lib/postfix/sbin
6 data_directory = /var/lib/postfix
7
8 # appending .domain is the MUA's job.
9 append_dot_mydomain = yes
10
11 smtpd_banner = $myhostname [% pmg.mail.banner %]
12 biff = no
13
14 [% IF pmg.mail.dwarning %]
15 delay_warning_time = [% pmg.mail.dwarning %]h
16 [% END %]
17
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) %]
21
22 mydomain = [% dns.domain %]
23 myhostname = [% dns.hostname %].[% dns.domain %]
24
25 parent_domain_matches_subdomains = debug_peer_list,fast_flush_domains,mynetworks,permit_mx_backup_networks,qmqpd_authorized_clients,smtpd_access_maps
26
27 alias_maps = hash:/etc/aliases
28 alias_database = hash:/etc/aliases
29 mydestination = localhost, $myhostname
30 mynetworks = [% postfix.mynetworks %]
31
32 relay_domains = hash:/etc/pmg/domains
33
34 transport_maps = hash:/etc/pmg/transport
35
36 [% IF pmg.mail.relay %]
37 [% IF pmg.mail.relayprotocol == 'lmtp' %]
38 relay_transport = [% pmg.mail.relayprotocol %]:inet:[% pmg.mail.relay %]:[% pmg.mail.relayport %]
39 [% ELSE %]
40 [% IF pmg.mail.relaynomx %]
41 relay_transport = [% pmg.mail.relayprotocol %]:[[% pmg.mail.relay %]]:[% pmg.mail.relayport %]
42 [% ELSE %]
43 relay_transport = [% pmg.mail.relayprotocol %]:[% pmg.mail.relay %]:[% pmg.mail.relayport %]
44 [% END %]
45 [% END %]
46 [% END %]
47
48 [% IF pmg.mail.smarthost %]
49 default_transport = smtp:[% pmg.mail.smarthost %]:[% pmg.mail.smarthostport %]
50 [% END %]
51
52 mail_name = Proxmox
53
54 [% IF pmg.mail.rejectunknown %]
55 smtpd_client_restrictions =
56 reject_unknown_client
57 [% END %]
58
59 smtpd_sender_restrictions =
60 reject_non_fqdn_sender
61 [%- IF pmg.mail.rejectunknownsender %] reject_unknown_sender_domain[% END %]
62
63 smtpd_recipient_restrictions =
64 permit_mynetworks
65 reject_unauth_destination
66 reject_non_fqdn_recipient
67
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 %]
71
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
77
78 recipient_delimiter = +