Advertisement
Guest User

Postfix main.cf

a guest
Apr 20th, 2018
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.70 KB | None | 0 0
  1. smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
  2. biff = no
  3. append_dot_mydomain = no
  4. myhostname = mail2test.domain.tld
  5. alias_maps = hash:/etc/aliases
  6. alias_database = hash:/etc/aliases
  7. myorigin = $mydomain
  8. mydestination = $myhostname, private.mail2test.domain.tld, localhost.$mydomain, localhost
  9. mynetworks = 127.0.0.0/8 10.0.0.0/8
  10. recipient_delimiter = +
  11. home_mailbox = Maildir/
  12. smtpd_helo_required = yes
  13. strict_rfc821_envelopes = yes
  14. relay_domains = proxy:mysql:/etc/postfix/mysql_relay_domains_maps.cf
  15. relay_recipient_maps = proxy:mysql:/etc/postfix/mysql_relay_recipients_maps.cf
  16. virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf,proxy:mysql:/etc/postfix/mysql_virtual_alias_domain_maps.cf,proxy:mysql:/etc/postfix/mysql_virtual_alias_domain_catchall_maps.cf
  17. virtual_gid_maps = static:20001
  18. virtual_mailbox_base = /home/virtual
  19. virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
  20. virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf,proxy:mysql:/etc/postfix/mysql_virtual_alias_domain_mailbox_maps.cf
  21. virtual_minimum_uid = 20001
  22. virtual_uid_maps = static:20001
  23. #transport_maps = proxy:mysql:/etc/postfix/mysql_transport.cf,proxy:mysql:/etc/postfix/mysql_transport2.cf
  24. transport_maps = hash:/etc/postfix/transport
  25. 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 $smtpd_recipient_restrictions $smtpd_sender_login_maps $has_our_domain_as_sender
  26. message_size_limit = 50240000
  27. smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql-sasl-sender-check.cf,proxy:mysql:/etc/postfix/mysql_virtual_alias_domain_maps.cf
  28. smtpd_reject_unlisted_sender = yes
  29. smtpd_restriction_classes =
  30. has_our_domain_as_sender,
  31. client_throttle
  32. has_our_domain_as_sender = reject
  33. client_throttle =
  34. check_policy_service inet:127.0.0.1:10031
  35. smtpd_client_restrictions =
  36. permit_sasl_authenticated
  37. #check_policy_service inet:127.0.0.1:10031
  38. smtpd_recipient_restrictions =
  39. reject_non_fqdn_recipient,
  40. reject_unknown_sender_domain,
  41. reject_non_fqdn_sender,
  42. reject_unknown_recipient_domain,
  43. reject_invalid_helo_hostname,
  44. reject_unlisted_recipient,
  45. reject_unlisted_sender,
  46. permit_mynetworks,
  47. permit_sasl_authenticated,
  48. reject_unauth_destination,
  49. #check_policy_service unix:private/policy-spf,
  50. #check_client_access hash:/etc/postfix/internal_networks,
  51. #check_sender_access proxy:mysql:/etc/postfix/mysql_not_our_domain_as_sender.cf,
  52. check_helo_access proxy:mysql:/etc/postfix/mysql-hello.cf,
  53. check_sender_access proxy:mysql:/etc/postfix/mysql-sender.cf,
  54. check_client_access proxy:mysql:/etc/postfix/mysql-client.cf,
  55. permit
  56. smtpd_data_restrictions =
  57. reject_unauth_pipelining,
  58. permit
  59. smtpd_end_of_data_restrictions =
  60. check_policy_service inet:127.0.0.1:10031
  61. smtp_tls_security_level = may
  62. smtp_tls_session_cache_database = btree:${data_directory}/smtp_tls_session_cache
  63. smtpd_tls_security_level = may
  64. smtpd_tls_auth_only = no
  65. smtp_tls_loglevel = 1
  66. smtpd_tls_loglevel = 1
  67. smtpd_tls_received_header = yes
  68. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_tls_session_cache
  69. tls_random_source = dev:/dev/urandom
  70. dovecot_destination_recipient_limit = 1
  71. virtual_transport = dovecot
  72. smtpd_sasl_auth_enable = yes
  73. smtpd_sasl_type = dovecot
  74. smtpd_sasl_path = private/auth
  75. smtpd_sasl_security_options = noanonymous
  76. smtpd_sasl_local_domain =
  77. broken_sasl_auth_clients = yes
  78. smtpd_sasl_authenticated_header = yes
  79. postscreen_dnsbl_threshold = 2
  80. postscreen_dnsbl_sites = bl.spamcop.net*2 bl.mailspike.net*1
  81. postscreen_dnsbl_action = enforce
  82. postscreen_greet_action = enforce
  83. header_checks = regexp:/etc/postfix/header_checks.cf
  84. mime_header_checks = regexp:/etc/postfix/header_checks.cf
  85. content_filter = smtp-amavis:[127.0.0.1]:10024
  86. virtual_maps = hash:/etc/postfix/virtusertable
  87. smtp_bind_address = xxx.xxx.xxx.xxx
  88. smtpd_recipient_limit = 100
  89. sender_dependent_default_transport_maps = regexp:/etc/postfix/sdd_transport_maps.regexp
  90. smtp_tls_CAfile = /var/www/_letsencrypt/live/mail2test.domain.tld-0002/chain.pem
  91. smtpd_tls_cert_file = /var/www/_letsencrypt/live/mail2test.domain.tld-0002/cert.pem
  92. smtpd_tls_key_file = /var/www/_letsencrypt/live/mail2test.domain.tld-0002/privkey.pem
  93. sender_bcc_maps = hash:/etc/postfix/sender_bcc
  94. policy-spf_time_limit = 3600s
  95. smtpd_relay_restrictions = permit_sasl_authenticated, reject_unauth_destination
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement