Guest User

Untitled

a guest
Nov 20th, 2021
22
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. `# POSTFIX(1) configuration file - auto-generated by i-MSCP
  2. # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
  3. #
  4. # General parameters
  5. inet_protocols = ipv4
  6. inet_interfaces = all
  7. mynetworks_style = host
  8. smtp_bind_address = 192.168.9.212
  9. smtp_bind_address6 =
  10. myhostname = panel.vtmk.hu
  11. mydomain = panel.vtmk.hu.local
  12. myorigin = $myhostname
  13. smtpd_banner = $myhostname ESMTP i-MSCP 1.5.3 Managed
  14. append_dot_mydomain = no
  15. append_at_myorigin = yes
  16. biff = no
  17. recipient_delimiter = +
  18. message_size_limit = 0
  19.  
  20. # Local delivery parameters
  21. mydestination = $myhostname localhost.$mydomain localhost $mydomain
  22. alias_database = hash:/etc/aliases
  23. alias_maps = hash:/etc/aliases
  24. local_transport = local
  25. local_destination_concurrency_limit = 2
  26. local_destination_recipient_limit = 1
  27. local_recipient_maps = proxy:unix:passwd.byname $alias_maps
  28. mail_spool_directory = /var/mail
  29. mailbox_size_limit = 0
  30.  
  31. # Virtual delivery parameters
  32. virtual_mailbox_base = /var/mail/virtual
  33. virtual_mailbox_limit = 0
  34. virtual_mailbox_domains = hash:/etc/postfix/imscp/domains
  35. virtual_mailbox_maps = hash:/etc/postfix/imscp/mailboxes
  36. virtual_alias_domains =
  37. virtual_alias_maps = hash:/etc/postfix/imscp/aliases
  38. virtual_transport = dovecot
  39. virtual_destination_concurrency_limit = 2
  40. virtual_destination_recipient_limit = 1
  41. virtual_minimum_uid = 999
  42. virtual_uid_maps = static:999
  43. virtual_gid_maps = static:8
  44.  
  45. # Relay parameters
  46. relay_domains = hash:/etc/postfix/imscp/relay_domains
  47. relay_recipient_maps =
  48. relay_transport = relay
  49. relayhost =
  50.  
  51. # Transport parameters
  52. transport_maps = hash:/etc/postfix/imscp/transport
  53.  
  54. # SMTP restrictions
  55. smtpd_helo_required = yes
  56. smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, permit
  57. smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender, reject_unknown_sender_domain, permit
  58. smtpd_recipient_restrictions = reject_non_fqdn_recipient, reject_unknown_recipient_domain, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unlisted_recipient, permit
  59. smtpd_data_restrictions = reject_multi_recipient_bounce, reject_unauth_pipelining
  60.  
  61. # i-MSCP responder parameters
  62. imscp-arpl_destination_concurrency_limit = 2
  63. imscp-arpl_destination_recipient_limit = 1
  64.  
  65. # Parameters added at run-time by i-MSCP or 3rd-party components
  66. smtpd_sasl_type = dovecot
  67. smtpd_sasl_authenticated_header = yes
  68. broken_sasl_auth_clients = yes
  69. smtpd_sasl_path = private/auth
  70. smtpd_sasl_security_options = noanonymous
  71. smtpd_sasl_auth_enable = yes
  72. dovecot_destination_concurrency_limit = 2
  73. dovecot_destination_recipient_limit = 1
  74. smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_scache
  75. smtpd_tls_session_cache_timeout = 3600s
  76. smtpd_tls_security_level = may
  77. smtp_tls_loglevel = 0
  78. smtp_tls_exclude_ciphers = aNULL, MD5
  79. smtpd_relay_restrictions =
  80. smtpd_tls_ciphers = high
  81. smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
  82. compatibility_level = 2
  83. smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scache
  84. smtpd_tls_loglevel = 0
  85. smtp_tls_ciphers = high
  86. smtp_tls_security_level = may
  87. smtpd_tls_exclude_ciphers = aNULL, MD5
  88. smtp_tls_protocols = !SSLv2, !SSLv3
  89. smtpd_tls_cert_file = /etc/imscp/imscp_services.pem
  90. smtpd_tls_auth_only = no
  91. smtpd_tls_received_header = yes
  92. smtpd_tls_protocols = !SSLv2, !SSLv3
  93. smtpd_tls_key_file = /etc/imscp/imscp_services.pem
  94. `
  95.  
  96. És ez lenne a leírásban:
  97.  
  98. `# See /usr/share/postfix/main.cf.dist for a commented, more complete version
  99.  
  100.  
  101. # Debian specific: Specifying a file name will cause the first
  102. # line of that file to be used as the name. The Debian default
  103. # is /etc/mailname.
  104. #myorigin = /etc/mailname
  105.  
  106. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  107. biff = no
  108.  
  109. # appending .domain is the MUA's job.
  110. append_dot_mydomain = no
  111.  
  112. # Uncomment the next line to generate "delayed mail" warnings
  113. #delay_warning_time = 4h
  114.  
  115. readme_directory = no
  116.  
  117. # TLS parameters
  118. #smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
  119. #smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
  120. #smtpd_use_tls=yes
  121. #smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  122. #smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  123.  
  124. smtpd_tls_cert_file=/etc/ssl/certs/dovecot.pem
  125. smtpd_tls_key_file=/etc/ssl/private/dovecot.pem
  126. smtpd_use_tls=yes
  127. smtpd_tls_auth_only = yes
  128.  
  129. smtpd_sasl_type = dovecot
  130. smtpd_sasl_path = private/auth
  131. smtpd_sasl_auth_enable = yes
  132. smtpd_recipient_restrictions =
  133. permit_sasl_authenticated,
  134. permit_mynetworks,
  135. reject_unauth_destination
  136.  
  137. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  138. # information on enabling SSL in the smtp client.
  139.  
  140. myhostname = hostname.example.com
  141. alias_maps = hash:/etc/aliases
  142. alias_database = hash:/etc/aliases
  143. myorigin = /etc/mailname
  144. #mydestination = example.com, hostname.example.com, localhost.example.com
  145. mydestination = localhost
  146. relayhost =
  147. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  148. mailbox_size_limit = 0
  149. recipient_delimiter = +
  150. inet_interfaces = all
  151.  
  152. ## Tells Postfix to use Dovecot's LMTP instead of its own LDA to save emails to the local mailboxes.
  153. virtual_transport = lmtp:unix:private/dovecot-lmtp
  154.  
  155. ## Tells Postfix you're using MySQL to store virtual domains, and gives the paths to the database connections.
  156. virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
  157. virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
  158. virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf`
RAW Paste Data