No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

master.cf.j2 6.8KB

hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 3 años
hace 3 años
hace 3 años
hace 3 años
hace 3 años
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. {{ansible_managed|comment}}
  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" or
  5. # on-line: http://www.postfix.org/master.5.html).
  6. #
  7. # Do not forget to execute "postfix reload" after editing this file.
  8. #
  9. # ==========================================================================
  10. # service type private unpriv chroot wakeup maxproc command + args
  11. # (yes) (yes) (no) (never) (100)
  12. # ==========================================================================
  13. {% if postfix_smtp_service %}
  14. smtp inet n - y - - smtpd
  15. {% endif %}
  16. #smtp inet n - y - 1 postscreen
  17. #smtpd pass - - y - - smtpd
  18. #dnsblog unix - - y - 0 dnsblog
  19. #tlsproxy unix - - y - 0 tlsproxy
  20. {% if postfix_submission_service %}
  21. submission inet n - y - - smtpd
  22. -o syslog_name=postfix/submission
  23. -o smtpd_tls_security_level=encrypt
  24. -o smtpd_sasl_auth_enable=yes
  25. -o smtpd_sasl_type=dovecot
  26. -o smtpd_sasl_path={{postfix_submission_service_smtpd_sasl_path}}
  27. -o smtpd_sasl_security_options=noanonymous
  28. -o smtpd_sasl_local_domain=$myhostname
  29. -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  30. #-o smtpd_sender_login_maps=hash:/etc/postfix/virtual
  31. #-o smtpd_sender_restrictions=reject_sender_login_mismatch
  32. -o smtpd_recipient_restrictions=reject_non_fqdn_recipient,reject_unknown_recipient_domain,permit_sasl_authenticated,reject
  33. -o smtpd_reject_unlisted_recipient=no
  34. -o smtpd_helo_required=no
  35. -o smtpd_helo_restrictions=
  36. -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
  37. -o milter_macro_daemon_name=ORIGINATING
  38. {% endif %}
  39. {% if postfix_smtps_service %}
  40. smtps inet n - y - - smtpd
  41. -o syslog_name=postfix/smtps
  42. -o smtpd_tls_wrappermode=yes
  43. # -o smtpd_sasl_auth_enable=yes
  44. # -o smtpd_reject_unlisted_recipient=no
  45. # -o smtpd_client_restrictions=$mua_client_restrictions
  46. # -o smtpd_helo_restrictions=$mua_helo_restrictions
  47. # -o smtpd_sender_restrictions=$mua_sender_restrictions
  48. # -o smtpd_recipient_restrictions=
  49. # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
  50. # -o milter_macro_daemon_name=ORIGINATING
  51. {% endif %}
  52. #628 inet n - y - - qmqpd
  53. pickup unix n - y 60 1 pickup
  54. cleanup unix n - y - 0 cleanup
  55. qmgr unix n - n 300 1 qmgr
  56. #qmgr unix n - n 300 1 oqmgr
  57. tlsmgr unix - - y 1000? 1 tlsmgr
  58. rewrite unix - - y - - trivial-rewrite
  59. bounce unix - - y - 0 bounce
  60. defer unix - - y - 0 bounce
  61. trace unix - - y - 0 bounce
  62. verify unix - - y - 1 verify
  63. flush unix n - y 1000? 0 flush
  64. proxymap unix - - n - - proxymap
  65. proxywrite unix - - n - 1 proxymap
  66. smtp unix - - y - - smtp
  67. relay unix - - y - - smtp
  68. # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
  69. showq unix n - y - - showq
  70. error unix - - y - - error
  71. retry unix - - y - - error
  72. discard unix - - y - - discard
  73. local unix - n n - - local
  74. virtual unix - n n - - virtual
  75. lmtp unix - - y - - lmtp
  76. anvil unix - - y - 1 anvil
  77. scache unix - - y - 1 scache
  78. #
  79. # ====================================================================
  80. # Interfaces to non-Postfix software. Be sure to examine the manual
  81. # pages of the non-Postfix software to find out what options it wants.
  82. #
  83. # Many of the following services use the Postfix pipe(8) delivery
  84. # agent. See the pipe(8) man page for information about ${recipient}
  85. # and other message envelope options.
  86. # ====================================================================
  87. #
  88. # maildrop. See the Postfix MAILDROP_README file for details.
  89. # Also specify in main.cf: maildrop_destination_recipient_limit=1
  90. #
  91. maildrop unix - n n - - pipe
  92. flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
  93. #
  94. # ====================================================================
  95. #
  96. # Recent Cyrus versions can use the existing "lmtp" master.cf entry.
  97. #
  98. # Specify in cyrus.conf:
  99. # lmtp cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
  100. #
  101. # Specify in main.cf one or more of the following:
  102. # mailbox_transport = lmtp:inet:localhost
  103. # virtual_transport = lmtp:inet:localhost
  104. #
  105. # ====================================================================
  106. #
  107. # Cyrus 2.1.5 (Amos Gouaux)
  108. # Also specify in main.cf: cyrus_destination_recipient_limit=1
  109. #
  110. #cyrus unix - n n - - pipe
  111. # user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
  112. #
  113. # ====================================================================
  114. # Old example of delivery via Cyrus.
  115. #
  116. #old-cyrus unix - n n - - pipe
  117. # flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
  118. #
  119. # ====================================================================
  120. #
  121. # See the Postfix UUCP_README file for configuration details.
  122. #
  123. uucp unix - n n - - pipe
  124. flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
  125. #
  126. # Other external delivery methods.
  127. #
  128. ifmail unix - n n - - pipe
  129. flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
  130. bsmtp unix - n n - - pipe
  131. flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
  132. scalemail-backend unix - n n - 2 pipe
  133. flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
  134. mailman unix - n n - - pipe
  135. flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  136. ${nexthop} ${user}
  137. {% if postfix_with_sympa %}
  138. sympa unix - n n - - pipe
  139. flags=hqRu user=sympa argv=/opt/sympa/bin/queue ${nexthop}
  140. sympabounce unix - n n - - pipe
  141. flags=hqRu user=sympa argv=/opt/sympa/bin/bouncequeue ${nexthop}
  142. {% endif %}
  143. {% if postfix_check_spf %}
  144. # spf
  145. policyd-spf unix - n n - 0 spawn
  146. user=policyd-spf argv=/usr/bin/policyd-spf
  147. {% endif %}