SHOW:
|
|
- or go back to the newest paste.
1 | - | myhostname = mail.triton.tk |
1 | + | myhostname = mail.tritoniada.tk |
2 | mydestination = localhost, localhost.localdomain | |
3 | mynetworks = 127.0.0.0/8 | |
4 | mailbox_size_limit = 0 | |
5 | inet_interfaces = all | |
6 | inet_protocols = ipv4 | |
7 | smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) | |
8 | biff = no | |
9 | append_dot_mydomain = no | |
10 | readme_directory = no | |
11 | ||
12 | # TLS configuration | |
13 | smtpd_use_tls = yes | |
14 | smtpd_tls_cert_file=/etc/postfix/certificate/smtpd.pem | |
15 | smtpd_tls_key_file=/etc/postfix/certificate/smtpd.key | |
16 | smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache | |
17 | smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache | |
18 | smtpd_tls_loglevel = 0 | |
19 | smtpd_tls_received_header = yes | |
20 | ||
21 | # MySQL configuration | |
22 | virtual_alias_domains = | |
23 | virtual_alias_maps = proxy:mysql:/etc/postfix/mysqlconf/virtual_forwardings.cf, mysql:/etc/postfix/mysqlconf/virtual_email2email.cf | |
24 | virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysqlconf/virtual_domains.cf | |
25 | virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysqlconf/virtual_mailboxes.cf | |
26 | virtual_mailbox_base = /home/vmail | |
27 | virtual_uid_maps = static:5000 | |
28 | virtual_gid_maps = static:5000 | |
29 | ||
30 | # SASL configuration | |
31 | smtpd_sasl_auth_enable = yes | |
32 | smtpd_sasl_authenticated_header = yes | |
33 | smtpd_sasl_local_domain = $myhostname | |
34 | smtpd_sasl_security_options = noanonymous | |
35 | smtpd_sasl_type = dovecot | |
36 | smtpd_sasl_path = private/auth | |
37 | broken_sasl_auth_clients = yes | |
38 | ||
39 | # SMTPD configuration | |
40 | smtpd_delay_reject = yes | |
41 | ||
42 | smtpd_client_restrictions = | |
43 | permit_mynetworks, | |
44 | permit_sasl_authenticated | |
45 | - | permit |
45 | + | |
46 | smtpd_helo_restrictions = | |
47 | permit_mynetworks, | |
48 | permit_sasl_authenticated, | |
49 | reject_invalid_helo_hostname, | |
50 | reject_non_fqdn_helo_hostname, | |
51 | reject_unknown_helo_hostname | |
52 | - | reject_unknown_helo_hostname, |
52 | + | |
53 | - | permit |
53 | + | |
54 | permit_mynetworks, | |
55 | reject_non_fqdn_sender, | |
56 | permit_sasl_authenticated | |
57 | ||
58 | smtpd_recipient_restrictions = | |
59 | - | permit |
59 | + | |
60 | reject_unknown_recipient_domain, | |
61 | reject_unlisted_recipient, | |
62 | permit_mynetworks, | |
63 | permit_sasl_authenticated, | |
64 | reject_unknown_sender_domain, | |
65 | reject_rbl_client sbl.spamhaus.org, | |
66 | reject_rbl_client dnsbl-1.uceprotect.net, | |
67 | reject_rbl_client dnsbl.sorbs.net, | |
68 | reject_rbl_client ix.dnsbl.manitu.net, | |
69 | reject_rbl_client bl.spamcop.net, | |
70 | reject_rbl_client access.redhawk.org, | |
71 | reject_rbl_client bl.deadbeef.com, | |
72 | reject_rbl_client dnsbl.cyberlogic.net, | |
73 | reject_rbl_client dul.ru, | |
74 | reject_rbl_client korea.services.net, | |
75 | reject_unknown_client_hostname, | |
76 | reject_unauth_pipelining, | |
77 | reject_unauth_destination | |
78 | ||
79 | smtpd_relay_restrictions = | |
80 | - | reject_unauth_destination, |
80 | + | permit_mynetworks |
81 | - | permit |
81 | + | permit_sasl_authenticated |
82 | defer_unauth_destination | |
83 | ||
84 | - | permit |
84 | + | |
85 | permit_mynetworks, | |
86 | permit_sasl_authenticated, | |
87 | reject_unauth_pipelining | |
88 | ||
89 | smtpd_end_of_data_restrictions = | |
90 | - | permit |
90 | + | |
91 | permit_sasl_authenticated, | |
92 | reject_multi_recipient_bounce | |
93 | ||
94 | proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps | |
95 | - | reject_multi_recipient_bounce, |
95 | + | |
96 | - | permit |
96 | + | |
97 | alias_maps = hash:/etc/aliases | |
98 | alias_database = hash:/etc/aliases |