Guest User

fajitas

a guest
Oct 15th, 2016
234
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. web@web:/etc/postfix$ cat main.cf
  2. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  3.  
  4.  
  5. # Debian specific: Specifying a file name will cause the first
  6. # line of that file to be used as the name. The Debian default
  7. # is /etc/mailname.
  8. #myorigin = /etc/mailname
  9.  
  10. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  11. biff = no
  12.  
  13. # appending .domain is the MUA's job.
  14. append_dot_mydomain = no
  15.  
  16. # Uncomment the next line to generate "delayed mail" warnings
  17. #delay_warning_time = 4h
  18.  
  19.  
  20. smtp_host_lookup = native
  21.  
  22.  
  23. readme_directory = no
  24.  
  25. # TLS parameters
  26. smtpd_tls_cert_file = /etc/ssl/certs/server.crt
  27. smtpd_tls_key_file = /etc/ssl/private/server.key
  28. smtpd_use_tls = yes
  29. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  30. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  31.  
  32. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  33. # information on enabling SSL in the smtp client.
  34.  
  35. smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
  36. myhostname = mydomain.hu
  37. alias_maps = hash:/etc/aliases
  38. alias_database = hash:/etc/aliases
  39. myorigin = /etc/mailname
  40. mydestination = mydomain.hu, localhost.mydomain.hu, localhost
  41. relayhost =
  42. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.1.253/255.255.255.0
  43. mailbox_size_limit = 0
  44. recipient_delimiter = +
  45. inet_interfaces = all
  46. inet_protocols = all
  47. home_mailbox = Maildir/
  48. smtpd_sasl_type = dovecot
  49. smtpd_sasl_path = private/dovecot-auth
  50. smtpd_sasl_local_domain = $myhostname
  51. smtpd_sasl_security_options = noanonymous
  52. smtpd_sasl_auth_clients = yes
  53. smtpd_sasl_auth_enable = yes
  54. smtpdrecipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
  55.  
  56. smtpd_tls_auth_only = yes
  57. smtp_use_tls = yes
  58. smtpd_use_tls = yes
  59. smtp_tls_note_starttls_offer = yes
  60. smtpd_tls_key_file = /etc/ssl/certs/sever.crt
  61. smtpd_tls_cert_file = /etc/ssl/private/server.key
  62. smtpd_tls_loglevel = 1
  63. smtpd_tls_received_header = yes
  64. smtpd_tls_session_cache_timeout =3600s
  65. tls_random_source = dev:/dev/urandom
  66. myhostname = mydomain.hu
  67.  
  68. home_mailbox = Maildir/
  69. #mtpd_sasl_authenticated_header = yes
  70. broken_sasl_auth_clients = yes
  71. smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
  72. smtpd_sender_restrictions = reject_unknown_sender_domain
  73. mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/dovecot.conf -m "${EXTENSION}"
  74. #smtpd_tls_mandatory_protocols = SSLv3, TLSv1
  75. smtpd_tls_mandatory_ciphers = medium
  76. web@web:/etc/postfix$
RAW Paste Data