You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.6KB

  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 (Debian/GNU)
  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 2 on
  14. # fresh installs.
  15. compatibility_level = 2
  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_use_tls=yes
  20. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  21. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  22. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  23. # information on enabling SSL in the smtp client.
  24. myhostname = {{mailname}}
  25. alias_maps = hash:/etc/aliases
  26. alias_database = hash:/etc/aliases
  27. mydestination = $myhostname, tg-infra-dev-mail-1, localhost.localdomain, , localhost
  28. relayhost =
  29. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  30. mailbox_size_limit = 0
  31. recipient_delimiter = +
  32. inet_interfaces = all
  33. inet_protocols = all
  34. # some rules from http://www.postfix.org/SMTPD_ACCESS_README.html
  35. #smtpd_client_restrictions = permit_mynetworks, reject
  36. #smtpd_helo_restrictions = reject_unknown_helo_hostname
  37. #smtpd_sender_restrictions = reject_unknown_sender_domain
  38. smtpd_data_restrictions = reject_unauth_pipelining
  39. smtpd_recipient_restrictions =
  40. permit_mynetworks,
  41. permit_sasl_authenticated,
  42. reject_rbl_client zen.spamhaus.org,
  43. reject_rhsbl_reverse_client dbl.spamhaus.org,
  44. reject_rhsbl_helo dbl.spamhaus.org,
  45. reject_rhsbl_sender dbl.spamhaus.org
  46. smtpd_relay_restrictions =
  47. permit_mynetworks,
  48. permit_sasl_authenticated,
  49. defer_unauth_destination
  50. virtual_mailbox_domains = proxy:mysql:/etc/postfix/sql/mysql_virtual_domains_maps.cf
  51. virtual_alias_maps =
  52. proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf,
  53. proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_maps.cf,
  54. proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_catchall_maps.cf
  55. virtual_mailbox_maps =
  56. proxy:mysql:/etc/postfix/sql/mysql_virtual_mailbox_maps.cf,
  57. proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_mailbox_maps.cf
  58. # use dovecot lmtp for mail transport
  59. virtual_transport = lmtp:unix:private/dovecot-lmtp
  60. smtpd_sasl_type = dovecot
  61. smtpd_sasl_path = private/auth
  62. smtpd_sasl_auth_enable = yes