Advertisement
fakessh

master.cf

Dec 27th, 2011
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.90 KB | None | 0 0
  1. ks37777 ~]# cat /etc/postfix/master.cf
  2. #
  3. # Postfix master process configuration file. For details on the format
  4. # of the file, see the master(5) manual page (command: "man 5 master").
  5. #
  6. # ==========================================================================
  7. # service type private unpriv chroot wakeup maxproc command + args
  8. # (yes) (yes) (yes) (never) (100)
  9. # ==========================================================================
  10. smtp inet n - n - - smtpd
  11. -o receive_override_options=no_address_mappings
  12. -o content_filter=amavisfeed:[127.0.0.1]:10024
  13. -o smtpd_data_restrictions=check_sender_access,pcre:/etc/postfix/add_my_header
  14. #-o smtpd_proxy_filter=127.0.0.1:10041
  15. #-o smtpd_client_connection_count_limit=10
  16. # Postfix 2.7 and later performance feature.
  17. #-o smtpd_proxy_options=speed_adjust
  18. -o smtpd_sasl_auth_enable=yes
  19. -o stress=yes
  20.  
  21. amavisfeed unix - - n - 2 lmtp
  22. # -o smtp_data_done_timeout=1200
  23. # -o smtp_send_xforward_command=yes
  24. # -o disable_dns_lookups=yes
  25. # -o max_use=20
  26. -o lmtp_data_done_timeout=1200
  27. -o lmtp_send_xforward_command=yes
  28. -o disable_dns_lookups=yes
  29. -o max_use=20
  30.  
  31.  
  32. submission inet n - n - - smtpd
  33. -o smtpd_tls_security_level=encrypt
  34. -o milter_macro_daemon_name=ORIGINATING
  35. -o smtpd_sasl_auth_enable=yes
  36. -o smtpd_sasl_authenticated_header=yes
  37. -o receive_override_options=no_address_mappings
  38. -o smtpd_enforce_tls=yes
  39. -o content_filter=amavisfeed:[127.0.0.1]:10024
  40. -o smtpd_etrn_restrictions=reject
  41. -o smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
  42. -o smtpd_data_restrictions=check_sender_access,pcre:/etc/postfix/add_my_header
  43. -o stress=yes
  44.  
  45. ##smtps inet n - n - - smtpd
  46. ## -o smtpd_tls_wrappermode=yes
  47. ## -o smtpd_sasl_auth_enable=yes
  48. ## -o smtpd_client_restrictions=permit_sasl_authenticated
  49. ## -o content_filter=amavisfeed:[127.0.0.1]:10024
  50. ## -o smtpd_data_restrictions=check_sender_access,pcre:/etc/postfix/add_my_header
  51. #628 inet n - n - - qmqpd
  52. pickup fifo n - n 60 1 pickup
  53. cleanup unix n - n - 0 cleanup
  54. qmgr fifo n - n 300 1 qmgr
  55. #qmgr fifo n - n 300 1 oqmgr
  56. tlsmgr unix - - n 1000? 1 tlsmgr
  57.  
  58.  
  59. rewrite unix - - n - - trivial-rewrite
  60. bounce unix - - n - 0 bounce
  61. defer unix - - n - 0 bounce
  62. trace unix - - n - 0 bounce
  63. verify unix - - n - 1 verify
  64. flush unix n - n 1000? 0 flush
  65. proxymap unix - - n - - proxymap
  66. proxywrite unix - - n - 1 proxymap
  67. smtp unix - - n - - smtp
  68. # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
  69. relay unix - - n - - smtp
  70. -o fallback_relay=
  71. # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
  72. showq unix n - n - - showq
  73. error unix - - n - - error
  74. discard unix - - n - - discard
  75. local unix - n n - - local
  76. virtual unix - n n - - virtual
  77. lmtp unix - - n - - lmtp
  78. anvil unix - - n - 1 anvil
  79. scache unix - - n - 1 scache
  80. #
  81. # ====================================================================
  82. # Interfaces to non-Postfix software. Be sure to examine the manual
  83. # pages of the non-Postfix software to find out what options it wants.
  84. #
  85. # Many of the following services use the Postfix pipe(8) delivery
  86. # agent. See the pipe(8) man page for information about ${recipient}
  87. # and other message envelope options.
  88. # ====================================================================
  89. #
  90. # maildrop. See the Postfix MAILDROP_README file for details.
  91. # Also specify in main.cf: maildrop_destination_recipient_limit=1
  92. #
  93. maildrop unix - n n - - pipe
  94. flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
  95. #
  96. # The Cyrus deliver program has changed incompatibly, multiple times.
  97. #
  98. old-cyrus unix - n n - - pipe
  99. flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
  100. # Cyrus 2.1.5 (Amos Gouaux)
  101. # Also specify in main.cf: cyrus_destination_recipient_limit=1
  102. cyrus unix - n n - - pipe
  103. user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
  104. #
  105. # See the Postfix UUCP_README file for configuration details.
  106. #
  107. uucp unix - n n - - pipe
  108. flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
  109. #
  110. # Other external delivery methods.
  111. #
  112. ifmail unix - n n - - pipe
  113. flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
  114. bsmtp unix - n n - - pipe
  115. flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
  116.  
  117. 127.0.0.1:10025 inet n - n - - smtpd
  118. -o content_filter=dkimproxy:[127.0.0.1]:10029
  119. -o smtpd_delay_reject=no
  120. -o smtpd_client_restrictions=permit_mynetworks,reject
  121. -o smtpd_helo_restrictions=
  122. -o smtpd_sender_restrictions=
  123. -o smtpd_recipient_restrictions=permit_mynetworks,reject
  124. -o smtpd_data_restrictions=reject_unauth_pipelining
  125. -o smtpd_end_of_data_restrictions=
  126. -o smtpd_restriction_classes=
  127. -o mynetworks=127.0.0.0/8
  128. -o smtpd_error_sleep_time=0
  129. -o smtpd_soft_error_limit=1001
  130. -o smtpd_hard_error_limit=1000
  131. -o smtpd_client_connection_count_limit=0
  132. -o smtpd_client_connection_rate_limit=0
  133. -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_milters,no_address_mappings
  134. -o local_header_rewrite_clients=
  135. -o smtpd_milters=
  136. -o local_recipient_maps=
  137. -o relay_recipient_maps=
  138.  
  139.  
  140.  
  141.  
  142. dkimproxy unix - - n - 10 smtp
  143. -o smtp_send_xforward_command=yes
  144. -o smtp_discard_ehlo_keywords=8bitmime,starttls
  145.  
  146. # service for accepting messages FROM the DKIM signing proxy
  147. 127.0.0.1:10030 inet n - n - 10 smtpd
  148. # -o content_filter=lmtp:unix:/var/run/dspam/dspam.sock
  149. -o content_filter=
  150. -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
  151. -o smtpd_helo_restrictions=
  152. -o smtpd_client_restrictions=
  153. -o smtpd_sender_restrictions=
  154. -o smtpd_recipient_restrictions=permit_mynetworks,reject
  155. -o mynetworks=127.0.0.0/8
  156. -o smtpd_authorized_xforward_hosts=127.0.0.0/8
  157.  
  158.  
  159.  
  160. retry unix - - n - - error
  161. proxywrite unix - - n - 1 proxymap
  162.  
  163.  
  164. spfpolicy unix - n n - - spawn
  165. user=nobody argv=/usr/bin/perl /etc/postfix/postfix-policyd-spf-perl
  166.  
  167. dovecot unix - n n - - pipe
  168. flags=DR user=mail argv=/usr/libexec/dovecot/deliver -f ${sender} -d ${user}@${nexthop} -n -m INBOX/${extension}
  169.  
  170. smtp inet n - n - 1 postscreen
  171. smtpd pass - - n - - smtpd
  172. dnsblog unix - - n - 0 dnsblog
  173. tlsproxy unix - - n - 0 tlsproxy
  174.  
  175.  
  176. #dspam unix - n n - 10 pipe
  177. # flags=Ru user=mail argv=/usr/bin/dspam --client --deliver=spam,innocent --user $user --mail-from=$sender --rcpt-to $recipient
  178.  
  179. #dspam unix - n n - - pipe
  180. # flags=Ru user=mail argv=/usr/bin/dspam --client --deliver=innocent,spam --user ${recipient} --mail-from=${sender} --rcpt-to $recipient
  181.  
  182.  
  183. #Pour les connexions à dspam :
  184. #dspam unix n - n - - lmtp
  185. # -o lmtp_data_done_timeout=1200
  186. # -o lmtp_send_xforward_command=yes
  187. # -o disable_dns_lookups=yes
  188. # -o max_use=20
  189.  
  190.  
  191. #127.0.0.1:10037 inet n - n - - smtpd
  192. # -o content_filter=
  193. # -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
  194. # -o smtpd_helo_restrictions=
  195. # -o smtpd_client_restrictions=
  196. # -o smtpd_sender_restrictions=
  197. # -o smtpd_recipient_restrictions=permit_mynetworks,reject
  198. # -o mynetworks=127.0.0.0/8
  199. # -o smtpd_authorized_xforward_hosts=127.0.0.0/8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement