Advertisement
Guest User

/etc/postfix/main.cf

a guest
Mar 19th, 2015
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  2.  
  3.  
  4. # Debian specific: Specifying a file name will cause the first
  5. # line of that file to be used as the name. The Debian default
  6. # is /etc/mailname.
  7. #myorigin = /etc/mailname
  8.  
  9. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  10. biff = no
  11.  
  12. # appending .domain is the MUA's job.
  13. append_dot_mydomain = no
  14.  
  15. # Uncomment the next line to generate "delayed mail" warnings
  16. #delay_warning_time = 4h
  17.  
  18. readme_directory = no
  19.  
  20. # TLS parameters
  21. smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt
  22. smtpd_tls_key_file = /etc/ssl/private/smtpd.key
  23. smtpd_use_tls=yes
  24. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  25. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  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. smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
  31. myhostname = mail.devdoodle.net
  32. alias_maps = hash:/etc/aliases
  33. alias_database = hash:/etc/aliases
  34. transport_maps = hash:/etc/postfix/transport
  35. myorigin = devdoodle.net
  36. mydestination = $myhostname, localhost.$mydomain, localhost, mail.localhost
  37. relayhost =
  38. relay_domains = devdoodle.com
  39. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.10.0/24
  40. mailbox_size_limit = 0
  41. recipient_delimiter = +
  42. inet_interfaces = localhost
  43. home_mailbox = Maildir/
  44. mailbox_command =
  45. mydomain = devdoodle.net
  46. inet_protocols = all
  47. smtpd_sasl_local_domain =
  48. smtpd_sasl_auth_enable = yes
  49. smtpd_sasl_security_options = noanonymous
  50. broken_sasl_auth_clients = yes
  51. smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
  52. smtp_tls_security_level = may
  53. smtpd_tls_security_level = may
  54. smtpd_tls_auth_only = no
  55. smtp_tls_note_starttls_offer = yes
  56. smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
  57. smtpd_tls_loglevel = 1
  58. smtpd_tls_received_header = yes
  59. smtpd_tls_session_cache_timeout = 3600s
  60. tls_random_source = dev:/dev/urandom
  61. smtpd_sasl_type = cyrus
  62. cyrus_sasl_config_path = /etc/postfix/sasl/
  63. default_process_limit = 100
  64. smtpd_client_connection_count_limit = 10
  65. smtpd_client_connection_rate_limit = 30
  66. queue_minfree = 20971520
  67. header_size_limit = 51200
  68. message_size_limit = 10485760
  69. smtpd_recipient_limit = 100
  70. disable_vrfy_command = yes
  71. smtpd_delay_reject = yes
  72. smtpd_helo_restrictions = reject_invalid_hostname
  73. virtual_alias_domains = devdoodle.net mail.devdoodle.net
  74. virtual_alias_maps = hash:/etc/postfix/virtual
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement