bobnethu

main.cf

Jun 7th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. inet_interfaces = all
  2.  
  3. inet_protocols = ipv4
  4.  
  5. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  6.  
  7. myhostname = mail.example.com
  8.  
  9. append_dot_mydomain = no
  10.  
  11. mynetworks =
  12. # Local
  13. 127.0.0.0/8
  14. # External
  15. ip/32
  16.  
  17. local_transport = error:Local Transport Disabled
  18.  
  19. alias_maps =
  20.  
  21. mydomain = example.com
  22.  
  23. mydestination =
  24. $myhostname
  25. localhost.$mydomain
  26. localhost
  27.  
  28. virtual_transport = dovecot
  29.  
  30. dovecot_destination_recipient_limit = 1
  31.  
  32. virtual_mailbox_domains = hash:/etc/postfix/virtual_domains
  33.  
  34. virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap_virtual_recipients.cf
  35.  
  36. virtual_alias_maps = proxy:ldap:/etc/postfix/ldap_virtual_aliases.cf
  37.  
  38. smtpd_sasl_auth_enable = yes
  39.  
  40. broken_sasl_auth_clients = yes
  41.  
  42. smtpd_tls_security_level = may
  43.  
  44. smtpd_tls_auth_only = yes
  45.  
  46. smtpd_tls_cert_file = /etc/postfix/certs/mail_public_cert.pem
  47.  
  48. smtpd_tls_key_file = /etc/postfix/certs/mail_private_key.pem
  49.  
  50. tls_random_source = dev:/dev/urandom
  51.  
  52. smtpd_tls_loglevel = 0
  53.  
  54. smtpd_client_new_tls_session_rate_limit = 10
  55.  
  56. smtpd_tls_session_cache_database = btree:/etc/postfix/smtpd_session_cache
  57.  
  58. smtpd_tls_exclude_ciphers =
  59. EXP
  60. EDH-RSA-DES-CBC-SHA
  61. ADH-DES-CBC-SHA
  62. DES-CBC-SHA
  63. SEED-SHA
  64.  
  65. smtpd_tls_dh512_param_file = ${config_directory}/certs/dh_512.pem
  66. smtpd_tls_dh1024_param_file = ${config_directory}/certs/dh_1024.pem
  67.  
  68. postscreen_greet_action = enforce
  69.  
  70. smtpd_recipient_restrictions =
  71. reject_non_fqdn_recipient
  72. reject_unknown_recipient_domain
  73. permit_sasl_authenticated
  74. permit_mynetworks
  75. reject_unauth_destination
  76. check_sender_ns_access cidr:/etc/postfix/drop.cidr
  77. check_sender_mx_access cidr:/etc/postfix/drop.cidr
  78. reject_rbl_client ix.dnsbl.manitu.net
  79. permit
  80.  
  81. smtpd_data_restrictions = reject_multi_recipient_bounce
  82.  
  83. smtpd_sender_restrictions =
  84. reject_non_fqdn_sender
  85. reject_unknown_sender_domain
  86.  
  87. smtpd_helo_restrictions =
  88. permit_mynetworks
  89. check_helo_access pcre:/etc/postfix/identitycheck.pcre
  90. reject_invalid_hostname
  91. disable_vrfy_command = yes
  92. smtpd_helo_required = yes
  93. smtpd_delay_reject = no
  94. smtpd_client_restrictions = check_client_access cidr:/etc/postfix/drop.cidr
Advertisement
Add Comment
Please, Sign In to add comment