]> git.proxmox.com Git - pmg-api.git/blob - templates/main.cf.in.demo
bump version to 5.1-4
[pmg-api.git] / 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.relaynomx %]
38 relay_transport = smtp:[[% pmg.mail.relay %]]:[% pmg.mail.relayport %]
39 [% ELSE %]
40 relay_transport = smtp:[% pmg.mail.relay %]:[% pmg.mail.relayport %]
41 [% END %]
42 [% END %]
43
44 [% IF pmg.mail.smarthost %]
45 default_transport = smtp:[% pmg.mail.smarthost %]:[% pmg.mail.smarthostport %]
46 [% END %]
47
48 mail_name = Proxmox
49
50 [% IF pmg.mail.rejectunknown %]
51 smtpd_client_restrictions =
52 reject_unknown_client
53 [% END %]
54
55 smtpd_sender_restrictions =
56 reject_non_fqdn_sender
57 [%- IF pmg.mail.rejectunknownsender %] reject_unknown_sender_domain[% END %]
58
59 smtpd_recipient_restrictions =
60 permit_mynetworks
61 reject_unauth_destination
62 reject_non_fqdn_recipient
63
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 %]
67
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
73
74 recipient_delimiter = +