Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

main.cf 3.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  14. # information on enabling SSL in the smtp client.
  15. mydomain = MAIL_DOMAIN
  16. myhostname = MAIL_HOSTNAME
  17. alias_maps = hash:/etc/aliases
  18. alias_database = hash:/etc/aliases
  19. myorigin = $mydomain
  20. mydestination = localhost
  21. relayhost =
  22. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  23. mailbox_command = procmail -a "$EXTENSION"
  24. mailbox_size_limit = 0
  25. recipient_delimiter = +
  26. inet_interfaces = all
  27. recipient_bcc_maps = pgsql:/etc/postfix/pgsql_recipient_bcc.cf
  28. transport_maps = pgsql:/etc/postfix/pgsql_transport.cf
  29. virtual_mailbox_domains = pgsql:/etc/postfix/pgsql_virtual_mailbox_domains.cf
  30. virtual_mailbox_maps = pgsql:/etc/postfix/pgsql_virtual_mailbox_maps.cf
  31. virtual_alias_maps = pgsql:/etc/postfix/pgsql_virtual_alias_maps.cf,
  32. pgsql:/etc/postfix/pgsql_virtual_alias_maps_regexp.cf,
  33. pgsql:/etc/postfix/pgsql_virtual_alias_domain_maps.cf,
  34. pgsql:/etc/postfix/pgsql_virtual_alias_maps_alias.cf
  35. relay_domains = pgsql:/etc/postfix/pgsql_relay_domains.cf
  36. virtual_minimum_uid=100
  37. virtual_uid_maps=static:7788
  38. virtual_gid_maps=static:7788
  39. virtual_transport=lmtp:inet:DOVECOT_HOST:DOVECOT_LMTP_PORT
  40. dovecot_destination_recipient_limit = 1
  41. smtpd_tls_cert_file=/etc/ssl/private/mail.crt
  42. smtpd_tls_key_file=/etc/ssl/private/mail.key
  43. smtpd_tls_CAfile=/etc/ssl/private/mail-chain.crt
  44. smtp_tls_CAfile=/etc/ssl/private/mail-chain.crt
  45. smtp_use_tls=yes
  46. smtpd_use_tls=yes
  47. smtpd_tls_loglevel=1
  48. smtpd_tls_received_header=yes
  49. tls_random_source=dev:/dev/urandom
  50. smtp_tls_note_starttls_offer=no
  51. smtpd_tls_session_cache_timeout=3600s
  52. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  53. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  54. queue_directory=/var/spool/postfix
  55. smtpd_sasl_type=dovecot
  56. smtpd_sasl_path=inet:DOVECOT_HOST:DOVECOT_SASL_PORT
  57. smtpd_sasl_auth_enable=yes
  58. broken_sasl_auth_clients=yes
  59. smtpd_sasl_security_options=noanonymous
  60. smtpd_sasl_tls_security_options=$smtpd_sasl_security_options
  61. smtpd_sasl_local_domain=$myhostname
  62. smtpd_helo_required=yes
  63. smtpd_helo_restrictions=reject_invalid_helo_hostname
  64. smtpd_recipient_restrictions=permit_mynetworks,
  65. permit_sasl_authenticated,
  66. reject_unknown_recipient_domain,
  67. reject_unauth_pipelining,
  68. reject_unauth_destination
  69. message_size_limit = 0
  70. milter_default_action = accept
  71. milter_protocol = 6
  72. smtpd_milters = inet:MILTER_SASL_HOST:MILTER_SASL_PORT,
  73. inet:OPENDKIM_HOST:OPENDKIM_PORT
  74. non_smtpd_milters = inet:OPENDKIM_HOST:OPENDKIM_PORT
  75. smtpd_relay_restrictions = permit_mynetworks,
  76. permit_sasl_authenticated,
  77. reject_unknown_recipient_domain,
  78. reject_unauth_pipelining,
  79. reject_unauth_destination