master.cf 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # inter-mx with postscreen on 25/tcp
  2. smtp inet n - n - 1 postscreen
  3. smtpd pass - - n - - smtpd
  4. -o smtpd_helo_restrictions=permit_mynetworks,reject_non_fqdn_helo_hostname
  5. -o smtpd_sasl_auth_enable=no
  6. -o smtpd_sender_restrictions=permit_mynetworks,reject_unlisted_sender,reject_unknown_sender_domain
  7. # smtpd tls-wrapped (smtps) on 465/tcp
  8. # TLS protocol can be modified by setting smtps_smtpd_tls_mandatory_protocols in extra.cf
  9. smtps inet n - n - - smtpd
  10. -o smtpd_tls_wrappermode=yes
  11. -o smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
  12. -o smtpd_tls_mandatory_protocols=$smtps_smtpd_tls_mandatory_protocols
  13. -o tls_preempt_cipherlist=yes
  14. -o syslog_name=postfix/smtps
  15. # smtpd with starttls on 587/tcp
  16. # TLS protocol can be modified by setting submission_smtpd_tls_mandatory_protocols in extra.cf
  17. submission inet n - n - - smtpd
  18. -o smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
  19. -o smtpd_enforce_tls=yes
  20. -o smtpd_tls_security_level=encrypt
  21. -o smtpd_tls_mandatory_protocols=$submission_smtpd_tls_mandatory_protocols
  22. -o tls_preempt_cipherlist=yes
  23. -o syslog_name=postfix/submission
  24. # used by SOGo
  25. # smtpd_sender_restrictions should match main.cf, but with check_sasl_access prepended for login-as-mailbox-user function
  26. 588 inet n - n - - smtpd
  27. -o smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
  28. -o smtpd_tls_auth_only=no
  29. -o smtpd_sender_restrictions=check_sasl_access,regexp:/opt/postfix/conf/allow_mailcow_local.regexp,reject_authenticated_sender_login_mismatch,permit_mynetworks,permit_sasl_authenticated,reject_unlisted_sender,reject_unknown_sender_domain
  30. -o syslog_name=postfix/sogo
  31. # used to reinject quarantine mails
  32. 590 inet n - n - - smtpd
  33. -o smtpd_client_restrictions=permit_mynetworks,reject
  34. -o smtpd_tls_auth_only=no
  35. -o smtpd_milters=
  36. -o non_smtpd_milters=
  37. -o syslog_name=postfix/quarantine
  38. # enforced smtp connector
  39. smtp_enforced_tls unix - - n - - smtp
  40. -o smtp_tls_security_level=encrypt
  41. -o syslog_name=enforced-tls-smtp
  42. -o smtp_delivery_status_filter=pcre:/opt/postfix/conf/smtp_dsn_filter
  43. # smtp connector used, when a transport map matched
  44. # this helps to have different sasl maps than we have with sender dependent transport maps
  45. smtp_via_transport_maps unix - - n - - smtp
  46. -o smtp_sasl_password_maps=proxy:mysql:/opt/postfix/conf/sql/mysql_sasl_passwd_maps_transport_maps.cf
  47. tlsproxy unix - - n - 0 tlsproxy
  48. dnsblog unix - - n - 0 dnsblog
  49. pickup fifo n - n 60 1 pickup
  50. cleanup unix n - n - 0 cleanup
  51. qmgr fifo n - n 300 1 qmgr
  52. tlsmgr unix - - n 1000? 1 tlsmgr
  53. rewrite unix - - n - - trivial-rewrite
  54. bounce unix - - n - 0 bounce
  55. defer unix - - n - 0 bounce
  56. trace unix - - n - 0 bounce
  57. verify unix - - n - 1 verify
  58. flush unix n - n 1000? 0 flush
  59. proxymap unix - - n - - proxymap
  60. proxywrite unix - - n - 1 proxymap
  61. smtp unix - - n - - smtp
  62. relay unix - - n - - smtp
  63. showq unix n - n - - showq
  64. error unix - - n - - error
  65. retry unix - - n - - error
  66. discard unix - - n - - discard
  67. local unix - n n - - local
  68. virtual unix - n n - - virtual
  69. lmtp unix - - n - - lmtp
  70. anvil unix - - n - 1 anvil
  71. scache unix - - n - 1 scache
  72. maildrop unix - n n - - pipe flags=DRhu
  73. user=vmail argv=/usr/bin/maildrop -d ${recipient}
  74. # start whitelist_fwd
  75. 127.0.0.1:10027 inet n n n - 0 spawn user=nobody argv=/usr/local/bin/whitelist_forwardinghosts.sh
  76. # end whitelist_fwd
  77. # start watchdog-specific
  78. # logs to local7 (hidden)
  79. 589 inet n - n - - smtpd
  80. -o smtpd_client_restrictions=permit_mynetworks,reject
  81. -o syslog_name=watchdog
  82. -o syslog_facility=local7
  83. -o smtpd_milters=
  84. -o cleanup_service_name=watchdog_cleanup
  85. -o non_smtpd_milters=
  86. watchdog_cleanup unix n - n - 0 cleanup
  87. -o syslog_name=watchdog
  88. -o syslog_facility=local7
  89. -o queue_service_name=watchdog_qmgr
  90. watchdog_qmgr fifo n - n 300 1 qmgr
  91. -o syslog_facility=local7
  92. -o syslog_name=watchdog
  93. -o rewrite_service_name=watchdog_rewrite
  94. watchdog_rewrite unix - - n - - trivial-rewrite
  95. -o syslog_facility=local7
  96. -o syslog_name=watchdog
  97. -o local_transport=watchdog_discard
  98. watchdog_discard unix - - n - - discard
  99. -o syslog_facility=local7
  100. -o syslog_name=watchdog
  101. # end watchdog-specific