alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
dovecot_destination_recipient_limit = 1
inet_interfaces = all
inet_protocols = ipv4
local_recipient_maps = $alias_maps
message_size_limit = 31457280
mydestination = site.ru, site2.ru
mydomain = site.ru
myhostname = mail.site.ru
mynetworks =
myorigin = site.ru
notify_classes = resource, software, protocol, policy
relay_domains = proxy:mysql:/etc/postfix/sql/backup_domains.cf
smtp_tls_loglevel = 2
smtpd_client_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unknown_client_hostname
smtpd_helo_required = yes
smtpd_helo_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_invalid_helo_hostname,
reject_non_fqdn_helo_hostname,
reject_unknown_helo_hostname
smtpd_recipient_restrictions =
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
check_recipient_access proxy:mysql:/etc/postfix/sql/mailbox_limit.cf,
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
reject_unlisted_recipient
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sender_restrictions =
reject_non_fqdn_sender,
reject_unknown_sender_domain,
permit_mynetworks,
permit_sasl_authenticated
smtpd_tls_cert_file = /etc/ssl/cert.pem
smtpd_tls_key_file = /etc/ssl/key.pem
smtpd_tls_loglevel = 2
smtpd_tls_received_header = yes
smtpd_use_tls = yes
virtual_alias_maps =
mysql:/etc/postfix/sql/alias.cf,
mysql:/etc/postfix/sql/alias_domain.cf,
mysql:/etc/postfix/sql/alias_domain_catchall.cf
virtual_gid_maps = static:1200
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/sql/domains.cf
virtual_mailbox_maps =
mysql:/etc/postfix/sql/mailbox.cf,
mysql:/etc/postfix/sql/alias_domain_mailbox.cf
virtual_minimum_uid = 1200
virtual_transport = dovecot
virtual_uid_maps = static:1200