Advertisement
Guest User

Untitled

a guest
Jun 21st, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.95 KB | None | 0 0
  1. # The queue_directory specifies the location of the Postfix queue.
  2. queue_directory = /var/spool/postfix
  3.  
  4. # The command_directory parameter specifies the location of all postXXX commands.
  5. command_directory = /usr/sbin
  6.  
  7. # The daemon_directory parameter specifies the location of all Postfix
  8. # daemon programs (i.e. programs listed in the master.cf file). This
  9. # directory must be owned by root.
  10. daemon_directory = /usr/lib64/postfix
  11.  
  12. # The data_directory parameter specifies the location of Postfix-writable
  13. # data files (caches, random numbers). This directory must be owned
  14. # by the mail_owner account (see below).
  15. #data_directory = /var/lib/postfix
  16.  
  17. # The mail_owner parameter specifies the owner of the Postfix queue and of most Postfix daemon processes.
  18. mail_owner = mail
  19.  
  20. # SENDING MAIL
  21. #
  22. # The myorigin parameter specifies the domain that locally-posted
  23. # mail appears to come from. The default is to append $myhostname,
  24. # which is fine for small sites. If you run a domain with multiple
  25. # machines, you should (1) change this to $mydomain and (2) set up
  26. # a domain-wide alias database that aliases each user to
  27. # user@that.users.mailhost.
  28. #
  29. # For the sake of consistency between sender and recipient addresses,
  30. # myorigin also specifies the default domain name that is appended
  31. # to recipient addresses that have no @domain part.
  32. #
  33. #myorigin = $myhostname
  34. #myorigin = $mydomain
  35.  
  36. # RECEIVING MAIL
  37.  
  38. # The mydestination parameter specifies the list of domains that this
  39. # machine considers itself the final destination for.
  40. #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
  41.  
  42. unknown_local_recipient_reject_code = 550
  43.  
  44. # The mail_spool_directory parameter specifies the directory where UNIX-style mailboxes are kept.
  45. #mail_spool_directory = /var/mail
  46.  
  47. # The smtpd_banner parameter specifies the text that follows the 220 code in the SMTP server's greeting banner.
  48. #smtpd_banner = $myhostname ESMTP $mail_name
  49. smtpd_banner = $myhostname ESMTP UltraSmtp v0.2.3-r2
  50.  
  51. # The full pathname of the Postfix sendmail command.
  52. sendmail_path = /usr/sbin/sendmail
  53.  
  54. # The full pathname of the Postfix newaliases command.
  55. newaliases_path = /usr/bin/newaliases
  56.  
  57. # The full pathname of the Postfix mailq command.
  58. mailq_path = /usr/bin/mailq
  59.  
  60. # The group for mail submission and queue management commands.
  61. setgid_group = postfix
  62.  
  63. # The location of the Postfix HTML documentation.
  64. html_directory = /usr/share/doc/postfix-2.5.5/html
  65.  
  66. # The location of the Postfix on-line manual pages.
  67. manpage_directory = /usr/share/man
  68.  
  69. # The location of the Postfix sample configuration files.
  70. #sample_directory = /etc/postfix
  71.  
  72. # The location of the Postfix README files.
  73. readme_directory = /usr/share/doc/postfix-2.5.5/readme
  74.  
  75. # The location of the Postfix mailbox
  76. home_mailbox = /var/postfix/maildir/
  77.  
  78. # --------------- local settings ------------------
  79. myhostname = *********
  80. inet_interfaces = localhost, ***********
  81. inet_protocols = ipv4
  82. mynetworks = 127.0.0.0/8
  83. mydestination = localhost.$mydomain, localhost
  84. #uncomment if you need relay_domains... do not list domains in both relay and virtual
  85. relay_domains = proxy:mysql:$config_directory/mysql_relay_domains_maps.cf
  86. # ---------------------- VIRTUAL DOMAINS START ----------------------
  87. virtual_mailbox_domains = proxy:mysql:$config_directory/mysql_virtual_domains_maps.cf
  88. virtual_mailbox_base = /var/mail
  89. virtual_mailbox_maps = proxy:mysql:$config_directory/mysql_virtual_mailbox_maps.cf
  90. virtual_alias_maps = proxy:mysql:$config_directory/mysql_virtual_alias_maps.cf
  91. virtual_minimum_uid = 0
  92. virtual_uid_maps = static:8
  93. #virtual_gid_maps = static:8
  94. virtual_transport = dovecot
  95. dovecot_destination_recipient_limit = 1
  96. # ---------------------- VIRTUAL DOMAINS END ----------------------
  97. # ---------------------- SASL PART START ----------------------
  98. # note smtpd_* it's for desktop smtp client to smtp server
  99. smtpd_sasl_auth_enable = yes
  100. smtpd_sasl_local_domain = $myhostname
  101. smtpd_sasl_exceptions_networks = $mynetworks
  102. smtpd_sasl_security_options = noanonymous
  103. broken_sasl_auth_clients = yes
  104. smtpd_sasl_type = dovecot
  105. smtpd_sasl_path = private/auth
  106. smtpd_use_tls = yes
  107. smtpd_tls_loglevel = 0
  108. smtpd_tls_received_header = yes
  109. # ---------------------- SASL PART END ----------------------
  110. # ---------------------- TLS PART START ----------------------
  111. # note smtp-* it's for smtp to smtp
  112. smtp_tls_CAfile = /etc/postfix/ssl/cacert.pem
  113. smtp_tls_cert_file = /etc/postfix/ssl/cert.pem
  114. smtp_tls_key_file = /etc/postfix/ssl/key.pem
  115. smtp_use_tls = yes
  116. smtp_tls_note_starttls_offer = yes
  117. #Postfix 2.5 or greater must use:
  118. #smtp_tls_session_cache_database = btree:$data_directory/smtp_tls_session_cache
  119. smtp_tls_session_cache_database = btree:/var/spool/postfix/smtp_tls_session_cache
  120. #smtp_tls_security_level = may
  121. smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
  122. smtpd_tls_cert_file = /etc/postfix/ssl/cert.pem
  123. smtpd_tls_key_file = /etc/postfix/ssl/key.pem
  124. # ---------------------- TLS PART END ----------------------
  125. # --------------------- Anti-spam START --------------------
  126. smtpd_helo_required = yes
  127. smtpd_delay_reject = no
  128. disable_vrfy_command = yes
  129. #smtpd_recipient_restrictions =
  130. # permit_sasl_authenticated,
  131. # permit_mynetworks,
  132. # reject_unauth_destination,
  133. # reject_invalid_hostname,
  134. # reject_non_fqdn_sender,
  135. # reject_non_fqdn_recipient,
  136. # reject_unknown_recipient_domain,
  137. # reject_unknown_sender_domain,
  138. # reject_unauth_pipelining
  139. #smtpd_helo_restrictions =
  140. # permit_mynetworks,
  141. # reject_invalid_hostname,
  142. # reject_unknown_helo_hostname,
  143. # reject_non_fqdn_hostname
  144. # --------------------- Anti-spam END --------------------
  145. sample_directory = /etc/postfix
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement