Global Postfix configuration file This file lists only small subset of

 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
# Global Postfix configuration file. This file lists only a small subset
# of all parameters. For the syntax, and for a complete parameter list,
# see the postconf(5) manual page. For a commented and more complete
# version of this file see /etc/postfix/main.cf.dist
myhostname = samarskiy.ru
mydomain = samarskiy.ru
mynetworks = 127.0.0.1/32, 10.0.0.0/24, all
alias_maps = hash:/etc/postfix/aliases
virtual_alias_maps = mysql:/etc/postfix/mysqlLookupMaps/alias.conf
virtual_mailbox_domains = mysql:/etc/postfix/mysqlLookupMaps/domain.conf
virtual_mailbox_maps = mysql:/etc/postfix/mysqlLookupMaps/mailbox.conf
virtual_mailbox_base = /var/spool/mail
transport_maps = mysql:/etc/postfix/mysqlLookupMaps/transport.conf
home_mailbox = Maildir/
mail_spool_directory = /var/spool/mail
virtual_gid_maps = static:1981
virtual_uid_maps = static:1981
virtual_minimum_uid = 1000
mailbox_command = /usr/bin/procmail -a $DOMAIN -d $LOGNAME
# TLS
tls_random_source = dev:/dev/urandom
smtpd_use_tls = yes
smtpd_tls_loglevel = 1
smtpd_tls_auth_only = no
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_tls_key_file = /etc/httpd2/conf/ssl.key/server.key
smtpd_tls_cert_file = /etc/httpd2/conf/ssl.crt/server.crt
smtpd_tls_CAfile = /etc/httpd2/conf/ssl.ca/ca.crt
smtp_use_tls = yes
smtp_tls_loglevel = 1
smtp_tls_note_starttls_offer = yes
smtp_tls_key_file = /etc/httpd2/conf/ssl.key/server.key
smtp_tls_cert_file = /etc/httpd2/conf/ssl.crt/server.crt
smtp_tls_CAfile = /etc/httpd2/conf/ssl.ca/ca/crt
# SASL2
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = permit_sasl_authenticated
##antispam
#content_filter = scan:127.0.0.1:10026
#receive_override_options = no_address_mappings