Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.35 KB | None | 0 0
  1. alias_database = hash:/etc/aliases
  2. alias_maps = hash:/etc/aliases
  3. append_dot_mydomain = no
  4. biff = no
  5. body_checks = regexp:/etc/postfix/body_checks
  6. broken_sasl_auth_clients = yes
  7. config_directory = /etc/postfix
  8. content_filter = amavis:[127.0.0.1]:10024
  9. debug_peer_level = 3
  10. debug_peer_list = 10.85.2.219
  11. header_checks = regexp:/etc/postfix/header_checks
  12. home_mailbox = Maildir/
  13. mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-mail-stack-delivery.conf -n -m "${EXTENSION}"
  14. mailbox_size_limit = 0
  15. message_size_limit = 0
  16. mime_header_checks = regexp:/etc/postfix/mime_header_checks
  17. mydestination = localhost, localhost.localdomain
  18. 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
  19. myorigin = /etc/mailname
  20. nested_header_checks = regexp:/etc/postfix/nested_header_checks
  21. 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
  22. readme_directory = no
  23. receive_override_options = no_address_mappings
  24. recipient_delimiter = +
  25. relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
  26. relayhost = [mail.on-nets.com]
  27. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  28. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  29. smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
  30. smtpd_delay_reject = yes
  31. 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
  32. smtpd_sasl_auth_enable = yes
  33. smtpd_sasl_authenticated_header = yes
  34. smtpd_sasl_local_domain = $myhostname
  35. smtpd_sasl_path = smtpd
  36. smtpd_sasl_security_options = noanonymous
  37. smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql_sender-login-maps.cf
  38. smtpd_sender_restrictions = permit_mynetworks, reject_authenticated_sender_login_mismatch, permit_sasl_authenticated, reject_unknown_sender_domain, reject_unauth_pipelining, permit
  39. smtpd_tls_cert_file = /etc/ssl/certs/ssl-mail.pem
  40. smtpd_tls_key_file = /etc/ssl/private/ssl-mail.key
  41. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  42. smtpd_use_tls = yes
  43. virtual_alias_domains =
  44. virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
  45. virtual_gid_maps = static:5000
  46. virtual_mailbox_base = /home/vmail
  47. virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
  48. virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
  49. virtual_transport = dovecot
  50. virtual_uid_maps = static:5000
  51.  
  52.  
  53. ###### mysq_sender-login-maps.cf ######
  54. user = postfix
  55. password = xxxxxxxxxxx
  56. dbname = postfix
  57. table = mail_user
  58. select_field = email
  59. where_field = email
  60. additional_conditions = and email='%s' UNION SELECT source FROM mail_forwarding WHERE destination LIKE '%%%u%%'
  61. hosts = 127.0.0.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement