main.cf 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  2. # Debian specific: Specifying a file name will cause the first
  3. # line of that file to be used as the name. The Debian default
  4. # is /etc/mailname.
  5. #myorigin = /etc/mailname
  6. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  7. biff = no
  8. # appending .domain is the MUA's job.
  9. append_dot_mydomain = no
  10. # Uncomment the next line to generate "delayed mail" warnings
  11. #delay_warning_time = 4h
  12. readme_directory = no
  13. # See http://www.postfix.org/COMPATIBILITY_README.html -- default to 3.6 on
  14. # fresh installs.
  15. compatibility_level = 3.6
  16. # TLS parameters
  17. smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
  18. smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
  19. smtpd_tls_security_level=may
  20. smtp_tls_CApath=/etc/ssl/certs
  21. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  22. smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
  23. myhostname = imac.home
  24. alias_maps = hash:/etc/aliases
  25. alias_database = hash:/etc/aliases
  26. mydestination = imac, iMac, localhost.localdomain, localhost
  27. relayhost = smtp.mail.yahoo.com:465
  28. smtp_sasl_mechanism_filter = plain
  29. smtp_sasl_auth_enable = yes
  30. smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd
  31. smtp_sasl_security_options = noanonymous
  32. smtp_sasl_mechanism_filter=plain
  33. smtp_use_tls = yes
  34. smtp_enforce_tls = yes
  35. # para yahoo mail
  36. smtp_tls_wrappermode = yes
  37. smtp_generic_maps = hash:/etc/postfix/generic
  38. # fin para yahoo mail
  39. smtp_tls_security_level = encrypt
  40. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  41. mailbox_size_limit = 0
  42. recipient_delimiter = +
  43. inet_interfaces = all
  44. inet_protocols = all
  45. #mailbox_command = procmail -a "$EXTENSION"