-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cf
135 lines (90 loc) · 4.01 KB
/
main.cf
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
alias_maps = pgsql:/usr/local/etc/postfix/pgsql-aliases.cf
append_dot_mydomain = no
biff = no
compatibility_level = 2
data_directory = /var/run/postfix
inet_interfaces = all
inet_protocols = ipv4
local_transport = virtual
local_recipient_maps = $virtual_mailbox_maps
mail_owner = email
mailbox_size_limit = 0
maillog_file=/var/log/postfix.log
mailbox_transport = lmtp:[127.0.0.1]:24
message_size_limit = 51200000
milter_default_action = accept
milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen}
milter_protocol = 6
mydestination = mydomain.vpn, mail.mydomain.vpn, localhost, localhost.localdomain
mydomain = mydomain.vpn
myhostname = mail.mydomain.vpn
mynetworks = 127.0.0.0/8 10.8.0.0/24
mynetworks_style = host
myorigin = /etc/mailname
non_smtpd_milters = $smtpd_milters
queue_directory = /var/run/postfix/spool
readme_directory = no
recipient_delimiter = +
relayhost=
relay_domains = gmail.com, myisp.com
relay_recipient_maps = hash:/usr/local/etc/postfix/relay_recipients
sender_dependent_default_transport_maps = hash:/usr/local/etc/postfix/relay_transport
sender_dependent_relayhost_maps = hash:/usr/local/etc/postfix/sender_relay
smtp_always_send_ehlo = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/usr/local/etc/postfix/smtp_sasl_password
smtp_sasl_security_options = noanonymous, noplaintext
smtp_sasl_tls_security_options = noanonymous
smtp_sender_dependent_authentication = yes
smtp_tls_CAfile = /usr/local/etc/ssl/ca-mydomainvpn/ca.crt
smtp_tls_loglevel = 3
smtp_tls_mandatory_protocols=!SSLv2,!SSLv3
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Raspbian)
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_rbl_client cbl.abuseat.org, permit
smtpd_milters = inet:127.0.0.1:11332
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain = mydomain.vpn
smtpd_sasl_path = auth-dovecot
smtpd_sasl_security_options = noanonymous, noplaintext
smtpd_sasl_tls_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /usr/local/etc/ssl/mail.mydomain.vpn.TLS.crt
smtpd_tls_exclude_ciphers = aNULL, eNULL, EXPORT, DES, RC4, MD5, PSK, aECDH, EDH-DSS-DES-CBC3-SHA, EDH-RSA-DES-CDC3-SHA, KRB5-DE5, CBC3-SHA
smtpd_tls_key_file = /usr/local/etc/ssl/mail.mydomain.vpn.TLS.key
smtpd_tls_loglevel = 1
smtpd_tls_mandatory_protocols=!SSLv2,!SSLv3
smtpd_tls_protocols = TLS1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls=yes
transport_maps = pgsql:/usr/local/etc/postfix/transport.cf
virtual_alias_maps = pgsql:/usr/local/etc/postfix/virtual_alias_maps.cf,pgsql:/usr/local/etc/postfix/virtual_alias_domains_maps.cf
virtual_alias_domains = pgsql:/usr/local/etc/postfix/virtual_alias_domains.cf
virtual_gid_maps = static:2020
virtual_mailbox_base = /data/local/mail
virtual_mailbox_domains = pgsql:/usr/local/etc/postfix/virtual_mailbox_domains.cf
virtual_mailbox_maps = pgsql:/usr/local/etc/postfix/virtual_mailbox_maps.cf
virtual_maps = pgsql:/usr/local/etc/postfix/virtual_maps.cf
virtual_minimum_uid = 2020
virtual_transport = lmtp:[127.0.0.1]:24
virtual_uid_maps = static:2020
meta_directory = /etc/postfix
setgid_group = postdrop
command_directory = /usr/sbin
sample_directory = /etc/postfix
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
sendmail_path = /usr/sbin/sendmail
daemon_directory = /usr/lib/postfix/sbin
manpage_directory = /usr/share/man
html_directory = /usr/share/doc/postfix/html
shlib_directory = /usr/lib/postfix