Advertisement
Guest User

main.cf

a guest
Jul 21st, 2011
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.51 KB | None | 0 0
  1. smtpd_banner = $myhostname
  2. biff = no
  3.  
  4. # appending .domain is the MUA's job.
  5. append_dot_mydomain = no
  6.  
  7. # Uncomment the next line to generate "delayed mail" warnings
  8. delay_warning_time = 4h
  9.  
  10. readme_directory = no
  11.  
  12. # TLS parameters
  13. #smtpd_tls_cert_file = /etc/ssl/certs/ssl-mail.pem
  14. #smtpd_tls_key_file = /etc/ssl/private/ssl-mail.key
  15. smtpd_use_tls = yes
  16. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  17. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  18.  
  19. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  20. # information on enabling SSL in the smtp client.
  21.  
  22. alias_maps = hash:/etc/aliases
  23. alias_database = hash:/etc/aliases
  24. #myorigin = /etc/mailname
  25. relay_domains =
  26. relayhost =
  27. local_recipient_maps =
  28. #mynetworks = 127.0.0.0/8
  29. #[::ffff:127.0.0.0]/104 [::1]/128
  30. #mynetworks = 127.0.0.0/8, proxy:mysql:/etc/postfix/mysql-mynetworks.cf
  31. mynetworks_style = host
  32. mailbox_command =
  33. mailbox_size_limit = 0512000000
  34. recipient_delimiter = +
  35. inet_interfaces = all
  36. inet_protocols = all
  37. home_mailbox = Maildir/
  38. smtpd_sasl_auth_enable = yes
  39. #smtpd_sasl_type = dovecot
  40. #smtpd_sasl_path = private/dovecot-auth
  41. smtpd_sasl_path = smtpd
  42. smtpd_sasl_application_name = smtpd
  43. smtpd_sasl_security_options = noanonymous noplaintext
  44. #smtpd_sasl_authenticated_header = yes
  45. #smtpd_sasl_security_options = noanonymous
  46. smtpd_sasl_local_domain = $myhostname
  47. broken_sasl_auth_clients = yes
  48. #smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, warn_if_reject reject_non_fqdn_hostname, reject_invalid_hostname, regexp:/etc/postfix/helo.regexp, permit
  49. smtpd_recipient_restrictions = permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, permit_mynetworks,reject_unauth_destination, reject_rbl_client cbl.abuseat.org, reject_rbl_client sbl-xbl.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_rhsbl_sender dsn.rfc-ignorant.org
  50. smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname, reject_unknown_helo_hostname, regexp:/etc/postfix/helo.regexp, permit
  51. smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, warn_if_reject reject_non_fqdn_sender, reject_unknown_sender_domain, reject_unauth_pipelining, permit
  52. smtpd_client_restrictions = reject_rbl_client sbl.spamhaus.org, reject_rbl_client blackholes.easynet.nl, reject_rbl_client dnsb1.njab1.org,permit_mynetworks, permit_sasl_authenticated, permit
  53. smtpd_data_restrictions = reject_unauth_pipelining
  54. smtp_use_tls = yes
  55. smtpd_use_tls = yes
  56. smtpd_tls_received_header = yes
  57. smtpd_tls_mandatory_protocols = SSLv3, TLSv1
  58. smtpd_tls_mandatory_ciphers = medium
  59. smtpd_tls_auth_only = yes
  60. tls_random_source = dev:/dev/urandom
  61. maximal_queue_lifetime = 7d
  62. minimal_backoff_time = 1000s
  63. maximal_backoff_time = 8000s
  64. smtp_helo_timeout = 60s
  65. smtpd_recipient_limit = 16
  66. smtpd_soft_error_limit = 3
  67. smtpd_hard_error_limit = 12
  68. smtpd_delay_reject = yes
  69. smtpd_helo_required = yes
  70. disable_vrfy_command = yes
  71. strict_rfc821_envelopes = yes
  72. unknown_address_reject_code = 554
  73.  
  74. unknown_hostname_reject_code = 554
  75.  
  76. unknown_client_reject_code = 554
  77. smtp_tls_note_starttls_offer = yes
  78. smtpd_tls_key_file = /etc/postfix/ssl/smtpd.pem
  79. smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.pem
  80. smtpd_tls_CAfile = /etc/postfix/ssl/smtpd.pem
  81. smtpd_tls_loglevel = 1
  82. smtpd_tls_received_header = yes
  83. smtpd_tls_session_cache_timeout = 3600s
  84. tls_random_source = dev:/dev/urandom
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement