Advertisement
Guest User

Untitled

a guest
Jul 1st, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.44 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. 2050 inet n - n - - smtpd
  12. #smtp inet n - n - 1 postscreen
  13. #smtpd pass - - n - - smtpd
  14. #dnsblog unix - - n - 0 dnsblog
  15. #tlsproxy unix - - n - 0 tlsproxy
  16. submission inet n - n - - smtpd
  17. -o syslog_name=postfix/submission
  18. -o smtpd_tls_security_level=encrypt
  19. -o smtpd_sasl_auth_enable=yes
  20. -o smtpd_reject_unlisted_recipient=no
  21. -o smtpd_client_restrictions=$mua_client_restrictions
  22. -o smtpd_helo_restrictions=$mua_helo_restrictions
  23. # -o smtpd_sender_restrictions=$mua_sender_restrictions
  24. # -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
  25. -o milter_macro_daemon_name=ORIGINATING
  26. smtps inet n - n - - smtpd
  27. -o syslog_name=postfix/smtps
  28. -o smtpd_tls_wrappermode=yes
  29. -o smtpd_sasl_auth_enable=yes
  30. -o smtpd_reject_unlisted_recipient=no
  31. -o smtpd_client_restrictions=$mua_client_restrictions
  32. -o smtpd_helo_restrictions=$mua_helo_restrictions
  33. # -o smtpd_sender_restrictions=$mua_sender_restrictions
  34. # -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
  35. -o milter_macro_daemon_name=ORIGINATING
  36. 628 inet n - n - - qmqpd
  37. pickup unix n - n 60 1 pickup
  38. cleanup unix n - n - 0 cleanup
  39. qmgr unix n - n 300 1 qmgr
  40. #qmgr unix n - n 300 1 oqmgr
  41. tlsmgr unix - - n 1000? 1 tlsmgr
  42. rewrite unix - - n - - trivial-rewrite
  43. bounce unix - - n - 0 bounce
  44. defer unix - - n - 0 bounce
  45. trace unix - - n - 0 bounce
  46. verify unix - - n - 1 verify
  47. flush unix n - n 1000? 0 flush
  48. proxymap unix - - n - - proxymap
  49. proxywrite unix - - n - 1 proxymap
  50. #smtp unix - - n - - smtp
  51. #relay unix - - n - - smtp
  52. # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
  53. showq unix n - n - - showq
  54. error unix - - n - - error
  55. retry unix - - n - - error
  56. discard unix - - n - - discard
  57. local unix - n n - - local
  58. virtual unix - n n - - virtual
  59. lmtp unix - - n - - lmtp
  60. anvil unix - - n - 1 anvil
  61. scache unix - - n - 1 scache
  62. #
  63. # ====================================================================
  64. # Interfaces to non-Postfix software. Be sure to examine the manual
  65. # pages of the non-Postfix software to find out what options it wants.
  66. #
  67. # Many of the following services use the Postfix pipe(8) delivery
  68. # agent. See the pipe(8) man page for information about ${recipient}
  69. # and other message envelope options.
  70. # ====================================================================
  71. #
  72. # maildrop. See the Postfix MAILDROP_README file for details.
  73. # Also specify in main.cf: maildrop_destination_recipient_limit=1
  74. #
  75. #maildrop unix - n n - - pipe
  76. # flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
  77. #
  78. # ====================================================================
  79. #
  80. # Recent Cyrus versions can use the existing "lmtp" master.cf entry.
  81. #
  82. # Specify in cyrus.conf:
  83. # lmtp cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
  84. #
  85. # Specify in main.cf one or more of the following:
  86. # mailbox_transport = lmtp:inet:localhost
  87. # virtual_transport = lmtp:inet:localhost
  88. #
  89. # ====================================================================
  90. #
  91. # Cyrus 2.1.5 (Amos Gouaux)
  92. # Also specify in main.cf: cyrus_destination_recipient_limit=1
  93. #
  94. #cyrus unix - n n - - pipe
  95. # user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
  96. #
  97. # ====================================================================
  98. #
  99. # Old example of delivery via Cyrus.
  100. #
  101. #old-cyrus unix - n n - - pipe
  102. # flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
  103. #
  104. # ====================================================================
  105. #
  106. # See the Postfix UUCP_README file for configuration details.
  107. #
  108. #uucp unix - n n - - pipe
  109. # flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
  110. #
  111. # ====================================================================
  112. #
  113. # Other external delivery methods.
  114. #
  115. #ifmail unix - n n - - pipe
  116. # flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
  117. #
  118. #bsmtp unix - n n - - pipe
  119. # flags=Fq. user=bsmtp argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
  120. #
  121. #scalemail-backend unix - n n - 2 pipe
  122. # flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
  123. # ${nexthop} ${user} ${extension}
  124. #
  125. #mailman unix - n n - - pipe
  126. # flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  127. # ${nexthop} ${user}
  128.  
  129.  
  130. dovecot unix - n n - - pipe
  131. flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f ${sender} -d ${recipient}
  132.  
  133. alias_database = hash:/etc/aliases
  134. alias_maps = hash:/etc/aliases
  135. broken_sasl_auth_clients = yes
  136. command_directory = /usr/sbin
  137. config_directory = /etc/postfix
  138. daemon_directory = /usr/libexec/postfix
  139. data_directory = /var/lib/postfix
  140. debug_peer_level = 2
  141. debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
  142. disable_vrfy_command = yes
  143. dovecot_destination_recipient_limit = 1
  144. html_directory = no
  145. inet_interfaces = all
  146. inet_protocols = all
  147. mail_owner = postfix
  148. mailq_path = /usr/bin/mailq.postfix
  149. manpage_directory = /usr/share/man
  150. message_size_limit = 30720000
  151. mydestination = localhost, localhost.localdomain
  152. myhostname = adambirds.co.uk
  153. mynetworks = 127.0.0.1
  154. newaliases_path = /usr/bin/newaliases.postfix
  155. proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
  156. queue_directory = /var/spool/postfix
  157. readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
  158. sample_directory = /usr/share/doc/postfix-2.10.1/samples
  159. sendmail_path = /usr/sbin/sendmail.postfix
  160. setgid_group = postdrop
  161. smtpd_banner = $myhostname ESMTP $mail_name
  162. smtpd_delay_reject = no
  163. smtpd_helo_required = yes
  164. smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname, reject_unknown_hostname, reject_non_fqdn_hostname
  165. smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
  166. smtpd_sasl_auth_enable = yes
  167. smtpd_sasl_authenticated_header = yes
  168. smtpd_sasl_path = private/auth
  169. smtpd_sasl_type = dovecot
  170. smtpd_sender_restrictions = reject_unknown_sender_domain
  171. smtpd_tls_cert_file = /etc/pki/dovecot/certs/dovecot.pem
  172. smtpd_tls_key_file = /etc/pki/dovecot/private/dovecot.pem
  173. smtpd_use_tls = yes
  174. unknown_local_recipient_reject_code = 550
  175. virtual_alias_domains =
  176. virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
  177. virtual_gid_maps = static:5000
  178. virtual_mailbox_base = /home/vmail
  179. virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
  180. virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
  181. virtual_transport = dovecot
  182. virtual_uid_maps = static:5000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement