Advertisement
Guest User

postfix main.cf

a guest
Feb 2nd, 2014
588
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. Debian specific: Specifying a file name will cause the first
  2. # line of that file to be used as the name. The Debian default
  3. # is /etc/mailname.
  4. #myorigin = /etc/mailname
  5.  
  6. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  7. biff = no
  8.  
  9. # appending .domain is the MUA's job.
  10. append_dot_mydomain = no
  11.  
  12. # Uncomment the next line to generate "delayed mail" warnings
  13. #delay_warning_time = 4h
  14.  
  15. readme_directory = no
  16.  
  17. # TLS parameters
  18. smtpd_tls_cert_file=/etc/ssl/certs/mailcert.pem
  19. smtpd_tls_key_file=/etc/ssl/private/mail.key
  20. smtpd_use_tls=yes
  21. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  22. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  23. smtpd_tls_security_level=may
  24. smtpd_tls_protocols = !SSLv2, !SSLv3
  25. smtpd_tls_auth_only=yes
  26.  
  27. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  28. # information on enabling SSL in the smtp client.
  29.  
  30. myhostname = MYDOMAINHERE.COM
  31. alias_maps = hash:/etc/aliases
  32. alias_database = hash:/etc/aliases
  33. myorigin = /etc/mailname
  34. mydestination = mail.MYDOMAINHERE.COM, MYDOMAINHERE.COM, localhost, localhost.localdomain
  35. relayhost =
  36. #mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  37. mynetworks = 0.0.0.0/0 [::/0]
  38. mailbox_size_limit = 0
  39. recipient_delimiter = +
  40. inet_interfaces = all
  41. inet_protocols = ipv4
  42.  
  43. local_recipient_maps = proxy:unix:passwd.byname $alias_maps
  44.  
  45.  
  46. smtpd_recipient_restrictions =
  47. permit_mynetworks,
  48. permit_sasl_authenticated,
  49. reject_unauth_destination,
  50. check_client_access hash:/etc/postfix/access,
  51. reject_rbl_client bl.spamcop.net,
  52. reject_rbl_client sbl-xbl.spamhaus.org,
  53. reject_rbl_client korea.services.net
  54. smtpd_sasl_auth_enable = yes
  55. smtpd_sasl_authenticated_header = no
  56. smtpd_sasl_exceptions_networks =
  57. smtpd_sasl_local_domain =
  58. #smtpd_sasl_path = private/auth
  59. smtpd_sasl_path = /var/spool/postfix/private/auth
  60. smtpd_sasl_security_options = noanonymous, noplaintext
  61. smtpd_sasl_tls_security_options = noanonymous
  62. smtpd_sasl_type = dovecot
  63. smtpd_relay_restrictions =
  64. permit_mynetworks
  65. permit_sasl_authenticated
  66. reject_unauth_destination
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement