Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.45 KB | None | 0 0
  1. main.cf:
  2. virtual_mailbox_domains =
  3. proxy:mysql:/etc/postfix/sql/virtual_domains_maps.cf
  4. virtual_alias_maps =
  5. proxy:mysql:/etc/postfix/sql/virtual_alias_maps.cf,
  6. proxy:mysql:/etc/postfix/sql/virtual_alias_domain_maps.cf,
  7. proxy:mysql:/etc/postfix/sql/virtual_alias_domain_catchall_maps.cf
  8. virtual_mailbox_maps =
  9. proxy:mysql:/etc/postfix/sql/virtual_mailbox_maps.cf,
  10. proxy:mysql:/etc/postfix/sql/virtual_alias_domain_mailbox_maps.cf
  11.  
  12. queue_directory = /var/spool/postfix
  13. command_directory = /usr/sbin
  14. daemon_directory = /usr/libexec/postfix
  15. data_directory = /var/lib/postfix
  16. mail_owner = postfix
  17. myhostname = emx.olma.ru
  18. inet_interfaces = all
  19. inet_protocols = all
  20. mydestination = $myhostname, localhost.$mydomain, localhost
  21. unknown_local_recipient_reject_code = 550
  22.  
  23. mynetworks_style = host
  24. mynetworks = 127.0.0.0/8, 10.123.0.0/16
  25. alias_maps = hash:/etc/aliases
  26. alias_database = hash:/etc/aliases
  27.  
  28. debug_peer_level = 2
  29. sendmail_path = /usr/sbin/sendmail.postfix
  30. newaliases_path = /usr/bin/newaliases.postfix
  31. mailq_path = /usr/bin/mailq.postfix
  32. setgid_group = postdrop
  33.  
  34. html_directory = no
  35. manpage_directory = /usr/share/man
  36. sample_directory = /usr/share/doc/postfix-2.10.1/samples
  37. readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
  38.  
  39. smtpd_tls_auth_only = no
  40. smtpd_banner = $myhostname ESMTP
  41.  
  42. smtpd_helo_required = yes
  43. smtpd_sasl_path = private/auth
  44. smtpd_sasl_type = dovecot
  45. smtpd_sasl_auth_enable = yes
  46. smtpd_tls_cert_file = /etc/pki/dovecot/mxcertca.crt
  47. smtpd_tls_key_file = /etc/pki/dovecot/mx.key
  48. smtpd_tls_security_level = may
  49. smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scache
  50. strict_rfc821_envelopes = yes
  51. mailbox_size_limit = 409600000
  52. virtual_transport = lmtp:unix:private/dovecot-lmtp
  53. local_transport = maildrop:
  54.  
  55. smtpd_sender_login_maps =
  56. proxy:mysql:/etc/postfix/sql/virtual_alias_maps.cf
  57.  
  58. smtpd_helo_restrictions =
  59. permit_mynetworks,
  60. reject_non_fqdn_helo_hostname,
  61. reject_invalid_helo_hostname,
  62. permit
  63.  
  64. smtpd_sender_restrictions =
  65. permit_mynetworks,
  66. reject_sender_login_mismatch,
  67. permit_sasl_authenticated,
  68. reject_unlisted_sender,
  69. reject_non_fqdn_sender,
  70. reject_unknown_sender_domain,
  71. permit
  72.  
  73. smtpd_recipient_restrictions =
  74. permit_sasl_authenticated,
  75. reject_unauth_pipelining,
  76. reject_non_fqdn_recipient,
  77. reject_unknown_recipient_domain,
  78. permit_mynetworks,
  79. reject_unauth_destination,
  80. check_policy_service unix:private/policy,
  81. check_sender_access
  82. pcre:/etc/postfix/sender_access,
  83. permit
  84.  
  85. maildrop_destination_recipient_limit = 1
  86. sender_bcc_maps = regexp:/etc/postfix/backup_outgoing
  87. recipient_bcc_maps = regexp:/etc/postfix/backup_incoming
  88.  
  89.  
  90. master.cf
  91. #
  92. # Postfix master process configuration file. For details on the format
  93. # of the file, see the master(5) manual page (command: "man 5 master").
  94. #
  95. # Do not forget to execute "postfix reload" after editing this file.
  96. #
  97. # ==========================================================================
  98. # service type private unpriv chroot wakeup maxproc command + args
  99. # (yes) (yes) (yes) (never) (100)
  100. # ==========================================================================
  101. smtp inet n - n - - smtpd
  102. smtps inet n - n - - smtpd
  103. -o syslog_name=postfix/smtps
  104. -o smtpd_tls_wrappermode=yes
  105. -o smtpd_sasl_auth_enable=yes
  106. -o smtpd_reject_unlisted_recipient=no
  107. -o smtpd_helo_restrictionsc=permit_mynetworks,reject_non_fqdn_helo_hostname,reject_invalid_helo_hostname,permit
  108. -o smtpd_sender_login_maps=proxy:mysql:/etc/postfix/sql/virtual_alias_maps.cf
  109. -o smtpd_sender_restrictions=reject_sender_login_mismatch,permit_sasl_authenticated,reject_unlisted_sender,reject_non_fqdn_sender,reject_unknown_sender_domain,permit
  110. -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject_unauth_pipelining,reject_non_fqdn_recipient,reject_unknown_recipient_domain,permit_mynetworks,reject_unauth_destination,permit
  111.  
  112. submission inet n - n - - smtpd
  113. -o smtpd_tls_security_level=encrypt
  114. -o smtpd_sasl_auth_enable=yes
  115. -o smtpd_sasl_type=dovecot
  116. -o smtpd_sasl_path=private/auth
  117. -o smtpd_sasl_security_options=noanonymous
  118. -o smtpd_sasl_local_domain=$myhostname
  119. -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  120. -o smtpd_sender_login_maps=proxy:mysql:/etc/postfix/sql/virtual_alias_maps.cf
  121. -o smtpd_sender_restrictions=reject_sender_login_mismatch
  122. -o smtpd_recipient_restrictions=reject_non_fqdn_recipient,reject_unknown_recipient_domain,permit_sasl_authenticated,reject
  123. #628 inet n - n - - qmqpd
  124. pickup unix n - n 60 1 pickup
  125. cleanup unix n - n - 0 cleanup
  126. qmgr unix n - n 300 1 qmgr
  127. #qmgr unix n - n 300 1 oqmgr
  128. tlsmgr unix - - n 1000? 1 tlsmgr
  129. rewrite unix - - n - - trivial-rewrite
  130. bounce unix - - n - 0 bounce
  131. defer unix - - n - 0 bounce
  132. trace unix - - n - 0 bounce
  133. verify unix - - n - 1 verify
  134. flush unix n - n 1000? 0 flush
  135. proxymap unix - - n - - proxymap
  136. proxywrite unix - - n - 1 proxymap
  137. smtp unix - - n - - smtp
  138. relay unix - - n - - smtp
  139. # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
  140. showq unix n - n - - showq
  141. error unix - - n - - error
  142. retry unix - - n - - error
  143. discard unix - - n - - discard
  144. local unix - n n - - local
  145. virtual unix - n n - - virtual
  146. lmtp unix - - n - - lmtp
  147. anvil unix - - n - 1 anvil
  148. scache unix - - n - 1 scache
  149.  
  150. maildrop unix - n n - - pipe
  151. flags=DRhu user=dovecot argv=/bin/procmail -m RECIVER=${recipient} /etc/procmailrc
  152.  
  153. policy unix - n n - 0 spawn user=nobody argv=/bin/python /usr/libexec/postfix/policyd-spf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement