Advertisement
Kervinou

master.cf (17-01-17)

Jan 16th, 2017
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 9.53 KB | None | 0 0
  1. #
  2. # Postfix master process configuration file.  For details on the format
  3. # of the file, see the master(5) manual page (command: "man 5 master").
  4. #
  5. # Do not forget to execute "postfix reload" after editing this file.
  6. #
  7. # ==========================================================================
  8. # service type  private unpriv  chroot  wakeup  maxproc command + args
  9. #               (yes)   (yes)   (yes)   (never) (100)
  10. # ==========================================================================
  11.  
  12. # ====================================================================
  13. # AMAVIS - SPAMASSASSIN
  14. # ====================================================================
  15. #29/12/16:amavis    unix      -         -         -         -    30         smtp
  16. #16/01/17:amavis    unix      -         -         -         -    50         smtp
  17. amavis    unix      -         -         -         -    -         smtp
  18.      -o smtp_data_done_timeout=1200
  19.      -o smtp_send_xforward_command=yes
  20.      -o disable_dns_lookups=yes
  21.      -o max_use=20
  22. #
  23. # spamassassin
  24. # http://irp.nain-t.net/doku.php/200messagerie:020postfix2:065_plus_simple
  25. #
  26. #spamassassin unix -     n       n       -       -       pipe
  27. #  flags=R
  28. #  user=debian-spamd
  29. #  argv=/usr/bin/spamc -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
  30.  
  31. # ====================================================================
  32. #smtp      inet  n       -       -       -       -       smtpd
  33.  # connexion à spamassassin :
  34. #  -o content_filter=spamassassin
  35.  
  36. # ====================================================================
  37. # SYMPA - Configuration for Sympa Mailing Lists
  38. # ====================================================================
  39. sympa unix - n n - - pipe
  40.      flags=R user=sympa argv=/usr/lib/sympa/bin/queue ${recipient}
  41.  
  42. sympabounce unix - n n - - pipe
  43.      flags=R user=sympa argv=/usr/lib/sympa/bin/bouncequeue ${recipient}
  44.  
  45.  
  46.  
  47. # ====================================================================
  48. 127.0.0.1:10025 inet     n         -         -         -    -         smtpd
  49.      -o syslog_name=postfix/amavis
  50.      -o content_filter=
  51.      -o local_recipient_maps=
  52.      -o relay_recipient_maps=
  53.      -o smtpd_restriction_classes=
  54.      -o smtpd_delay_reject=no
  55.      -o smtpd_client_restrictions=permit_mynetworks,reject
  56.      -o smtpd_client_restrictions=
  57.      -o smtpd_helo_restrictions=
  58.      -o smtpd_sender_restrictions=
  59.      -o smtpd_recipient_restrictions=permit_mynetworks,reject
  60.      -o mynetworks=127.0.0.0/8
  61.      -o smtpd_error_sleep_time=0
  62.      -o smtpd_soft_error_limit=1001
  63.      -o smtpd_hard_error_limit=1000
  64.      -o smtpd_client_connection_count_limit=0
  65.      -o smtpd_client_connection_rate_limit=0    
  66.      -o strict_rfc821_envelopes=yes
  67.      -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
  68.      -o smtpd_milters=inet:localhost:12345
  69. #     -o content_filter=
  70.      -o receive_override_options=no_header_body_checks
  71.      # -o smtpd_bind_address=127.0.0.1
  72. # ====================================================================
  73.  
  74. smtp      inet  n       -       -       -       -       smtpd
  75. # smtp      inet  n       -       -       -       1       postscreen    
  76. # smtpd     pass  -       -       -       -       -       smtpd    
  77. #dnsblog   unix  -       -       -       -       0       dnsblog
  78. #tlsproxy  unix  -       -       -       -       0       tlsproxy
  79.  
  80. submission inet n       -       -       -       -       smtpd
  81.      -o syslog_name=postfix/submission
  82.      -o smtpd_tls_security_level=encrypt
  83.      -o smtpd_sasl_auth_enable=yes
  84.      -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  85.      -o milter_macro_daemon_name=ORIGINATING
  86.      -o cleanup_service_name=subcleanup
  87.  
  88. smtps     inet  n       -       -       -       -       smtpd
  89.      -o syslog_name=postfix/smtps
  90.      -o smtpd_tls_wrappermode=yes
  91.      -o smtpd_sasl_auth_enable=yes
  92.      # -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  93.      # -o milter_macro_daemon_name=ORIGINATING
  94. #628       inet  n       -       -       -       -       qmqpd
  95. pickup    fifo  n       -       -       60      1       pickup
  96.      -o syslog_name=postfix/pickup
  97. cleanup   unix  n       -       -       -       0       cleanup
  98.      # -o syslog_name=postfix/cleanup
  99. subcleanup unix n       -       -       -       0       cleanup
  100.      -o syslog_name=postfix/subcleanup
  101.      -o header_checks=regexp:/etc/postfix/submission_header_checks
  102. qmgr      fifo  n       -       n       300     1       qmgr
  103.      # -o syslog_name=postfix/qmgr
  104. #qmgr     fifo  n       -       n       300     1       oqmgr
  105. tlsmgr    unix  -       -       -       1000?   1       tlsmgr
  106. rewrite   unix  -       -       -       -       -       trivial-rewrite
  107. bounce    unix  -       -       -       -       0       bounce
  108. defer     unix  -       -       -       -       0       bounce
  109. trace     unix  -       -       -       -       0       bounce
  110. verify    unix  -       -       -       -       1       verify
  111. flush     unix  n       -       -       1000?   0       flush
  112. proxymap  unix  -       -       n       -       -       proxymap
  113. proxywrite unix -       -       n       -       1       proxymap
  114. smtp      unix  -       -       -       -       -       smtp
  115. relay     unix  -       -       -       -       -       smtp
  116.      -o syslog_name=postfix/relay
  117.      # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
  118. showq     unix  n       -       -       -       -       showq
  119. error     unix  -       -       -       -       -       error
  120. retry     unix  -       -       -       -       -       error
  121. discard   unix  -       -       -       -       -       discard
  122. local     unix  -       n       n       -       -       local
  123. virtual   unix  -       n       n       -       -       virtual
  124. lmtp      unix  -       -       -       -       -       lmtp
  125. anvil     unix  -       -       -       -       1       anvil
  126.      -o syslog_name=postfix/anvil
  127. scache    unix  -       -       -       -       1       scache
  128. #
  129. # ====================================================================
  130. # Interfaces to non-Postfix software. Be sure to examine the manual
  131. # pages of the non-Postfix software to find out what options it wants.
  132. #
  133. # Many of the following services use the Postfix pipe(8) delivery
  134. # agent.  See the pipe(8) man page for information about ${recipient}
  135. # and other message envelope options.
  136. # ====================================================================
  137. #
  138. # maildrop. See the Postfix MAILDROP_README file for details.
  139. # Also specify in main.cf: maildrop_destination_recipient_limit=1
  140. #
  141. maildrop  unix  -       n       n       -       -       pipe
  142.      flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
  143. #
  144. # ====================================================================
  145. #
  146. # Recent Cyrus versions can use the existing "lmtp" master.cf entry.
  147. #
  148. # Specify in cyrus.conf:
  149. #   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
  150. #
  151. # Specify in main.cf one or more of the following:
  152. #  mailbox_transport = lmtp:inet:localhost
  153. #  virtual_transport = lmtp:inet:localhost
  154. #
  155. # ====================================================================
  156. #
  157. # Cyrus 2.1.5 (Amos Gouaux)
  158. # Also specify in main.cf: cyrus_destination_recipient_limit=1
  159. #
  160. #cyrus     unix  -       n       n       -       -       pipe
  161. #  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
  162. #
  163. # ====================================================================
  164. # Old example of delivery via Cyrus.
  165. #
  166. #old-cyrus unix  -       n       n       -       -       pipe
  167. #  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
  168. #
  169. # ====================================================================
  170. #
  171. # See the Postfix UUCP_README file for configuration details.
  172. #
  173. uucp      unix  -       n       n       -       -       pipe
  174.      flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
  175.  
  176. # ====================================================================
  177. # Other external delivery methods.
  178. # ====================================================================
  179. ifmail    unix  -       n       n       -       -       pipe
  180.      flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
  181. bsmtp     unix  -       n       n       -       -       pipe
  182.      flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
  183. scalemail-backend unix  -   n   n   -   2   pipe
  184.      flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
  185. mailman   unix  -       n       n       -       -       pipe
  186.      flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  187.      ${nexthop} ${user}
  188.  
  189. dovecot   unix  -       n       n       -       -       pipe
  190.      flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/dovecot-lda -f ${sender} -d ${recipient}
  191.  
  192.  
  193. # ====================================================================
  194. # IMPLEMENT SPF POLICY
  195. # https://www.howtoforge.com/postfix_spf
  196. # ====================================================================
  197. policy  unix  -       n       n       -       -       spawn
  198.      # user=nobody argv=/usr/bin/perl /usr/lib/postfix/policyd-spf-perl
  199.      user=nobody argv=perl /usr/lib/postfix/policyd-spf-perl
  200.  
  201.  
  202. # ====================================================================
  203. # Slow - config MX Orange/Wanadoo
  204. # ====================================================================
  205. slow    unix    -       -       n       -       5       smtp
  206.      -o syslog_name=postfix/slow-dest
  207.      -o smtp_destination_concurrency_limit=3
  208.      -o slow_destination_rate_delay=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement