-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cf
34 lines (28 loc) · 842 Bytes
/
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
# Basic Postfix configuration
compatibility_level = 3.6
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
queue_directory = /var/spool/postfix
mail_owner = postfix
# Network settings
inet_protocols = ipv4
inet_interfaces = all
# SMTP Settings
smtpd_banner = $myhostname ESMTP
smtpd_tls_security_level = none
# Authentication
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = cyrus
smtpd_sasl_path = smtpd
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $mydomain
broken_sasl_auth_clients = yes
# Access restrictions
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
# Resource limits
message_size_limit = 52428800
mailbox_size_limit = 0
# Logging
maillog_file = /var/log/postfix/postfix.log
debug_peer_level = 2