summaryrefslogtreecommitdiffstats
path: root/postfix/main.cf
blob: 6eb5ad22281714d09838773c4a85d82669ffcf17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Global Postfix configuration file. This file lists only a subset
# of all parameters. For the syntax, and for a complete parameter
# list, see the postconf(5) manual page (command: "man 5 postconf").
#
# TIP: use the command "postconf -n" to view main.cf parameter
# settings, "postconf parametername" to view a specific parameter,
# and "postconf 'parametername=value'" to set a specific parameter.
#
# For common configuration examples, see BASIC_CONFIGURATION_README
# and STANDARD_CONFIGURATION_README. To find these documents, use
# the command "postconf html_directory readme_directory", or go to
# http://www.postfix.org/BASIC_CONFIGURATION_README.html etc.
#
# For best results, change no more than 2-3 parameters at a time,
# and test if Postfix still works after every change.

# See http://www.postfix.org/COMPATIBILITY_README.html
compatibility_level = 3.6

smtpd_banner = $myhostname ESMTP $mail_name (mailnode)
maillog_file = /dev/stdout
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# TLS parameters
smtpd_tls_cert_file = /etc/certs/ENV_HOSTNAME/fullchain.pem
smtpd_tls_key_file = /etc/certs/ENV_HOSTNAME/key.pem
smtpd_tls_security_level = may

smtp_tls_CApath = /etc/ssl/certs
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# System parameters
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_sender_login_maps = hash:/etc/postfix/vaddress
myhostname = ENV_HOSTNAME
mydestination = $myhostname localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all

# Virtual mailbox parameters
virtual_mailbox_domains = ENV_VIRTUAL_DOMAINS
virtual_mailbox_base = /var/mail/vhost
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 2000
virtual_uid_maps = static:2000
virtual_gid_maps = static:2000
virtual_mailbox_limit = 0

# opendkim parameters
smtpd_milters = local:/opendkim/opendkim.sock
non_smtpd_milters = local:/opendkim/opendkim.sock

# Mlmmj mailing list parameters
mlmmj_destination_recipient_limit = 1
transport_maps = hash:/etc/postfix/mltransport

virtual_alias_maps = hash:/etc/userconfig/aliases hash:/etc/postfix/mlvirtual