mydomain = domain.ru
relayhost = mars.domain.ru
relay_domains =
mynetworks = тут перечислены сети, откуда можно отправлять
virtual_alias_maps = proxy:pgsql:/etc/postfix/virtual_alias_maps.cf
virtual_mailbox_domains = proxy:pgsql:/etc/postfix/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:pgsql:/etc/postfix/virtual_mailbox_maps.cf
virtual_mailbox_base = /home/ztmail
virtual_mailbox_limit = 16106127360
virtual_minimum_uid = 5000
virtual_transport = virtual
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
local_transport = virtual
local_recipient_maps =
transport_maps = hash:/etc/postfix/transport
#sender_bcc_maps = hash:/etc/postfix/senders_mails
#recipient_bcc_maps = hash:/etc/postfix/recipients_mails
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_security_options = noanonymous
smtpd_sasl_tls_security_options =
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/cert/domain.pem
smtpd_tls_key_file = /etc/cert/domain.key
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
smtpd_tls_loglevel = 1
html_directory = /usr/share/doc/postfix/html
queue_directory = /var/spool/postfix
mydestination = localhost
message_size_limit = 157286400
compatibility_level = 2