Guest User

/etc/postfix/main.cf

a guest
May 4th, 2016
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.40 KB | None | 0 0
  1. cat /etc/postfix/main.cf
  2. # Some common configuration parameters
  3. inet_protocols = ipv4
  4. inet_interfaces = all
  5. mynetworks_style = host
  6.  
  7. # IPv4 source for outbound mails
  8. smtp_bind_address = xx.xx.xx.xx
  9.  
  10. # IPv6 source for outbound mails
  11. #smtp_bind_address6 =
  12.  
  13. myhostname = admin.server.info
  14. mydomain = admin.server.info.local
  15. myorigin = $myhostname
  16.  
  17. smtpd_banner = $myhostname ESMTP i-MSCP 1.2.17 Managed
  18.  
  19. # Receiving messages parameters
  20. mydestination = $myhostname, $mydomain
  21. append_dot_mydomain = no
  22. append_at_myorigin = yes
  23. local_transport = local
  24. transport_maps = hash:/etc/postfix/imscp/transport
  25. relay_domains = hash:/etc/postfix/imscp/relay_domains
  26. alias_maps = hash:/etc/aliases
  27. alias_database = hash:/etc/aliases
  28.  
  29. # Delivering local messages parameters
  30. mail_spool_directory = /var/mail
  31.  
  32. # Mailboxquota
  33. # => 0 for unlimited
  34. # => 104857600 for 100 MB
  35. mailbox_size_limit = 0
  36.  
  37. # Message size limit
  38. # => 0 for unlimited
  39. # => 104857600 for 100 MB
  40. message_size_limit = 0
  41.  
  42. biff = no
  43. recipient_delimiter = +
  44.  
  45. local_destination_recipient_limit = 1
  46. local_recipient_maps = unix:passwd.byname $alias_database
  47.  
  48. # i-MSCP Autoresponder parameters
  49. imscp-arpl_destination_recipient_limit = 1
  50.  
  51. # Delivering virtual messages parameters
  52. virtual_mailbox_base = /var/mail/virtual
  53. virtual_mailbox_limit = 0
  54.  
  55. virtual_mailbox_domains = hash:/etc/postfix/imscp/domains
  56. virtual_mailbox_maps = hash:/etc/postfix/imscp/mailboxes
  57.  
  58. virtual_alias_maps = hash:/etc/postfix/imscp/aliases
  59.  
  60. virtual_minimum_uid = 999
  61. virtual_uid_maps = static:999
  62. virtual_gid_maps = static:8
  63.  
  64. smtpd_helo_required = yes
  65.  
  66. smtpd_helo_restrictions = permit_mynetworks,
  67. permit_sasl_authenticated,
  68. reject_invalid_helo_hostname,
  69. reject_non_fqdn_helo_hostname
  70.  
  71. smtpd_sender_restrictions = reject_non_fqdn_sender,
  72. reject_unknown_sender_domain,
  73. permit_mynetworks,
  74. permit_sasl_authenticated
  75.  
  76. smtpd_relay_restrictions =
  77.  
  78. smtpd_recipient_restrictions = reject_non_fqdn_recipient,
  79. check_client_access hash:/etc/postfix/rbl_override,
  80. reject_unknown_recipient_domain,
  81. permit_mynetworks,
  82. permit_sasl_authenticated,
  83. reject_unauth_destination,
  84. #reject_unlisted_recipient,
  85. #reject_rbl_client,
  86. #sbl.spamhaus.org,
  87. #reject_rbl_client,
  88. #cbl.abuseat.org,
  89. #reject_rbl_client,
  90. #dul.dnsbl.sorbs.net,
  91. permit
  92.  
  93.  
  94. smtpd_data_restrictions = reject_multi_recipient_bounce,
  95. reject_unauth_pipelining
  96.  
  97. # Dovecot LDA parameters
  98. virtual_transport = dovecot
  99. dovecot_destination_concurrency_limit = 2
  100. dovecot_destination_recipient_limit = 1
  101.  
  102. # Dovecot SASL parameters
  103. smtpd_sasl_type = dovecot
  104. smtpd_sasl_path = private/auth
  105. smtpd_sasl_auth_enable = yes
  106. smtpd_sasl_security_options = noanonymous
  107. smtpd_sasl_authenticated_header = yes
  108. broken_sasl_auth_clients = yes
  109.  
  110. # TLS parameters
  111. smtpd_tls_security_level = may
  112. smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3
  113. smtpd_tls_protocols = !SSLv2, !SSLv3
  114. smtpd_tls_loglevel = 1
  115. smtpd_tls_cert_file = /etc/imscp/imscp_services.pem
  116. smtpd_tls_key_file = /etc/imscp/imscp_services.pem
  117. smtpd_tls_auth_only = no
  118. smtpd_tls_received_header = yes
  119. smtp_tls_security_level = may
  120. smtp_tls_mandatory_protocols = !SSLv2, !SSLv3
  121. smtp_tls_protocols = !SSLv2, !SSLv3
  122. smtp_tls_loglevel = 1
  123. smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
  124. non_smtpd_milters = unix:/clamav/clamav-milter.ctl
  125. milter_connect_macros = j {daemon_name} v
  126. smtpd_milters = unix:/clamav/clamav-milter.ctl
  127. milter_default_action = accept
  128.  
  129. # Milyen esemenyrol kapjon a postmaster ertesitest
  130. # software : szoftverhiba miatt nem tudja a levelet tovabbitani
  131. # resource : eroforras problemek miatt nem tudja a levelet tovabbitani
  132. # protocol : protokolhiba, vagy nem futtathato parancs
  133. # policy : policy megsertese miatt visszadobott levelek
  134. # delay : keson tovabbitot level
  135. # bounce : kezbesithetetlen level
  136. notify_classes = resource, software, bounce
Advertisement
Add Comment
Please, Sign In to add comment