Advertisement
Guest User

Untitled

a guest
Jun 16th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.83 KB | None | 0 0
  1. [root@echo7 ~]# postconf -n | grep content_filter
  2. [root@echo7 ~]# postconf -n
  3. alias_database = hash:/etc/aliases
  4. alias_maps = hash:/etc/aliases
  5. command_directory = /usr/sbin
  6. config_directory = /etc/postfix
  7. daemon_directory = /usr/libexec/postfix
  8. debug_peer_level = 2
  9. disable_vrfy_command = yes
  10. home_mailbox = Maildir/
  11. html_directory = no
  12. inet_interfaces = 208.100.63.215
  13. mail_owner = postfix
  14. mailbox_size_limit = 10737418240
  15. mailq_path = /usr/bin/mailq.postfix
  16. manpage_directory = /usr/share/man
  17. message_size_limit = 1104857600
  18. mydestination = $myhostname, localhost
  19. myhostname = echo7.ntertech.com
  20. mynetworks_style = host
  21. newaliases_path = /usr/bin/newaliases.postfix
  22. queue_directory = /var/spool/postfix
  23. readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
  24. relay_domains = proxy:mysql:/etc/postfix/mysql_relay_domains_maps.cf
  25. sample_directory = /usr/share/doc/postfix-2.3.3/samples
  26. sendmail_path = /usr/sbin/sendmail
  27. setgid_group = postdrop
  28. smtp_tls_CAfile = /root/CA/postfix/cacert.pem
  29. smtp_tls_security_level = may
  30. smtpd_banner = $myhostname ESMTP Ntertech
  31. smtpd_data_restrictions = permit_mynetworks, reject_unauth_pipelining
  32. smtpd_helo_required = yes
  33. smtpd_recipient_limit = 500
  34. smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_destination
  35. smtpd_sasl_auth_enable = yes
  36. smtpd_sasl_path = private/auth
  37. smtpd_sasl_type = dovecot
  38. smtpd_sender_restrictions = permit_mynetworks, reject_non_fqdn_sender, reject_unknown_sender_domain
  39. smtpd_tls_CAfile = /root/CA/postfix/cacert.pem
  40. smtpd_tls_cert_file = /root/CA/postfix/ntertech-cert.pem
  41. smtpd_tls_key_file = /root/CA/postfix/ntertech-key.pem
  42. smtpd_tls_received_header = yes
  43. smtpd_tls_security_level = may
  44. tls_random_source = dev:/dev/urandom
  45. unknown_local_recipient_reject_code = 550
  46. virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
  47. virtual_gid_maps = static:89
  48. virtual_mailbox_base = /var/mail/virtual
  49. virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
  50. virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
  51. virtual_minimum_uid = 89
  52. virtual_transport = dovecot
  53. virtual_uid_maps = static:189
  54. [root@echo7 ~]# cat /etc/postfix/master.cf
  55. #
  56. # Postfix master process configuration file. For details on the format
  57. # of the file, see the master(5) manual page (command: "man 5 master").
  58. #
  59. # ==========================================================================
  60. # service type private unpriv chroot wakeup maxproc command + args
  61. # (yes) (yes) (yes) (never) (100)
  62. # ==========================================================================
  63. smtp inet n - n - - smtpd
  64. # -o content_filter=spamass
  65. #submission inet n - n - - smtpd
  66. # -o smtpd_enforce_tls=yes
  67. # -o smtpd_sasl_auth_enable=yes
  68. # -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  69. smtps inet n - n - - smtpd
  70. -o smtpd_tls_wrappermode=yes
  71. -o smtpd_sasl_auth_enable=yes
  72. -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  73. #628 inet n - n - - qmqpd
  74. pickup fifo n - n 60 1 pickup
  75. cleanup unix n - n - 0 cleanup
  76. qmgr fifo n - n 300 1 qmgr
  77. #qmgr fifo n - n 300 1 oqmgr
  78. tlsmgr unix - - n 1000? 1 tlsmgr
  79. rewrite unix - - n - - trivial-rewrite
  80. bounce unix - - n - 0 bounce
  81. defer unix - - n - 0 bounce
  82. trace unix - - n - 0 bounce
  83. verify unix - - n - 1 verify
  84. flush unix n - n 1000? 0 flush
  85. proxymap unix - - n - - proxymap
  86. smtp unix - - n - - smtp
  87. # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
  88. relay unix - - n - - smtp
  89. -o fallback_relay=
  90. # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
  91. showq unix n - n - - showq
  92. error unix - - n - - error
  93. discard unix - - n - - discard
  94. local unix - n n - - local
  95. virtual unix - n n - - virtual
  96. lmtp unix - - n - - lmtp
  97. anvil unix - - n - 1 anvil
  98. scache unix - - n - 1 scache
  99. dovecot unix - n n - - pipe
  100. flags=DR user=mail:mail argv=/usr/libexec/dovecot/deliver -d ${user}@${nexthop} -n -m ${extension}
  101.  
  102. #
  103. # ====================================================================
  104. # Interfaces to non-Postfix software. Be sure to examine the manual
  105. # pages of the non-Postfix software to find out what options it wants.
  106. #
  107. # Many of the following services use the Postfix pipe(8) delivery
  108. # agent. See the pipe(8) man page for information about ${recipient}
  109. # and other message envelope options.
  110. # ====================================================================
  111.  
  112. #
  113. # Spamassassin
  114. #
  115. #spamass unix - n n - - pipe
  116. # user=spamd argv=/usr/bin/spamc --headers -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
  117.  
  118. #
  119. # maildrop. See the Postfix MAILDROP_README file for details.
  120. # Also specify in main.cf: maildrop_destination_recipient_limit=1
  121. #
  122. maildrop unix - n n - - pipe
  123. flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
  124. #
  125. # The Cyrus deliver program has changed incompatibly, multiple times.
  126. #
  127. old-cyrus unix - n n - - pipe
  128. flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
  129. # Cyrus 2.1.5 (Amos Gouaux)
  130. # Also specify in main.cf: cyrus_destination_recipient_limit=1
  131. cyrus unix - n n - - pipe
  132. user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
  133. #
  134. # See the Postfix UUCP_README file for configuration details.
  135. #
  136. uucp unix - n n - - pipe
  137. flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
  138. #
  139. # Other external delivery methods.
  140. #
  141. ifmail unix - n n - - pipe
  142. flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
  143. bsmtp unix - n n - - pipe
  144. flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
  145. [root@echo7 ~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement