Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias_database = hash:/etc/aliases
- alias_maps = hash:/etc/aliases
- append_dot_mydomain = no
- biff = no
- body_checks = regexp:/etc/postfix/body_checks
- broken_sasl_auth_clients = yes
- config_directory = /etc/postfix
- content_filter = amavis:[127.0.0.1]:10024
- debug_peer_level = 3
- debug_peer_list = 10.85.2.219
- header_checks = regexp:/etc/postfix/header_checks
- home_mailbox = Maildir/
- mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-mail-stack-delivery.conf -n -m "${EXTENSION}"
- mailbox_size_limit = 0
- message_size_limit = 0
- mime_header_checks = regexp:/etc/postfix/mime_header_checks
- mydestination = localhost, localhost.localdomain
- mynetworks = 127.0.0.0/8 10.85.2.0/32 115.160.161.146 10.85.211.52 10.85.211.50 10.85.200.68 10.85.200.66 10.85.2.92 10.85.2.91 10.85.2.59 10.85.12.62 10.85.11.85 10.85.11.215 10.85.1.0/32 10.85.0.0/16
- myorigin = /etc/mailname
- nested_header_checks = regexp:/etc/postfix/nested_header_checks
- 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 $smtpd_sender_login_maps proxy:mysql:/etc/postfix/mysql_sender-login-maps.cf
- readme_directory = no
- receive_override_options = no_address_mappings
- recipient_delimiter = +
- relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
- relayhost = [mail.on-nets.com]
- smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
- smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
- smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
- smtpd_delay_reject = yes
- smtpd_recipient_restrictions = reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_destination, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net, permit
- smtpd_sasl_auth_enable = yes
- smtpd_sasl_authenticated_header = yes
- smtpd_sasl_local_domain = $myhostname
- smtpd_sasl_path = smtpd
- smtpd_sasl_security_options = noanonymous
- smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql_sender-login-maps.cf
- smtpd_sender_restrictions = permit_mynetworks, reject_authenticated_sender_login_mismatch, permit_sasl_authenticated, reject_unknown_sender_domain, reject_unauth_pipelining, permit
- smtpd_tls_cert_file = /etc/ssl/certs/ssl-mail.pem
- smtpd_tls_key_file = /etc/ssl/private/ssl-mail.key
- smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
- smtpd_use_tls = yes
- virtual_alias_domains =
- virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
- virtual_gid_maps = static:5000
- virtual_mailbox_base = /home/vmail
- virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
- virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
- virtual_transport = dovecot
- virtual_uid_maps = static:5000
- ###### mysq_sender-login-maps.cf ######
- user = postfix
- password = xxxxxxxxxxx
- dbname = postfix
- table = mail_user
- select_field = email
- where_field = email
- additional_conditions = and email='%s' UNION SELECT source FROM mail_forwarding WHERE destination LIKE '%%%u%%'
- hosts = 127.0.0.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement