Advertisement
Guest User

Postfix conf

a guest
Sep 24th, 2013
108
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. smtpd_banner = $myhostname ESMTP
  2. biff = no
  3. append_dot_mydomain = no
  4. readme_directory = no
  5. always_add_missing_headers = yes
  6. smtpd_helo_required = yes
  7. disable_vrfy_command = yes
  8. strict_rfc821_envelopes = yes
  9. smtpd_delay_reject = yes
  10. allow_percent_hack = no
  11. swap_bangpath = no
  12. soft_bounce = no
  13. message_size_limit = 26214400
  14. virtual_alias_expansion_limit = 5000
  15.  
  16. unknown_address_reject_code = 554
  17.  
  18. empty_address_recipient = MAILER-DAEMON@domain.com
  19.  
  20. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  21. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  22.  
  23. myhostname = mail.domain.com
  24. myorigin = /etc/mailname
  25. mydestination = $myhostname, localhost
  26. mynetworks = 127.0.0.0/8 89.185.253.148
  27. mailbox_size_limit = 0
  28. inet_interfaces = all
  29. inet_protocols = ipv4
  30.  
  31. virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
  32. virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
  33. virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf,proxy:mysql:/etc/postfix/mysql/virtual_alias_email_maps.cf
  34. virtual_uid_maps = static:500
  35. virtual_gid_maps = static:500
  36. virtual_transport = defer
  37. virtual_transport = lmtp:unix:private/dovecot-lmtp
  38.  
  39. receive_override_options=no_address_mappings
  40.  
  41. alias_maps = hash:/etc/aliases
  42.  
  43. # auth
  44. smtpd_sasl_type = dovecot
  45. smtpd_sasl_path = private/auth
  46. smtpd_sasl_auth_enable = yes
  47. smtpd_sasl_authenticated_header = yes
  48.  
  49.  
  50. smtpd_client_restrictions =
  51. check_client_access cidr:/etc/postfix/cidr_check_client_access,
  52. reject_unknown_reverse_client_hostname,
  53. reject_rbl_client zen.spamhaus.org,
  54. reject_rbl_client b.barracudacentral.org,
  55.  
  56. smtpd_helo_restrictions =
  57. permit_mynetworks,
  58. reject_invalid_helo_hostname,
  59. check_helo_access hash:/etc/postfix/hash_check_helo_access,
  60.  
  61. smtpd_recipient_restrictions =
  62. reject_non_fqdn_sender,
  63. reject_non_fqdn_recipient,
  64. reject_unknown_sender_domain,
  65. reject_unknown_recipient_domain,
  66. permit_mynetworks,
  67. permit_sasl_authenticated,
  68. reject_unauth_destination,
  69. reject_unlisted_recipient,
  70. check_recipient_access pcre:/etc/postfix/pcre_check_recipient_checks,
  71. check_sender_access hash:/etc/postfix/hash_check_sender_checks,
  72. permit_auth_destination,
  73.  
  74. smtpd_data_restrictions =
  75. reject_unauth_pipelining,
  76. reject_multi_recipient_bounce,
  77.  
  78. smtpd_etrn_restrictions =
  79. reject
Advertisement
RAW Paste Data Copied
Advertisement