Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.21 KB | None | 0 0
  1. # postfix config file
  2.  
  3. # uncomment for debugging if needed
  4. soft_bounce=yes
  5.  
  6. # postfix main
  7. mail_owner = postfix
  8. setgid_group = postdrop
  9. delay_warning_time = 4
  10.  
  11. # postfix paths
  12. html_directory = no
  13. command_directory = /usr/sbin
  14. daemon_directory = /usr/lib/postfix
  15. queue_directory = /var/spool/postfix
  16. sendmail_path = /usr/sbin/sendmail.postfix
  17. newaliases_path = /usr/bin/newaliases.postfix
  18. mailq_path = /usr/bin/mailq.postfix
  19. manpage_directory = /usr/share/man
  20. sample_directory = /usr/share/doc/postfix-2.2.2/samples
  21. readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES
  22.  
  23. # network settings
  24. inet_interfaces = all
  25. mydomain = panel.willappsug.com
  26. myhostname = panel.willappsug.com
  27. mynetworks = 127.0.0.1, XXX.XXX.XXX.XXX
  28. mydestination = localhost.$mydomain, localhost
  29. relay_domains = proxy:mysql:/etc/sentora/configs/postfix/mysql-relay_domains_maps.cf
  30.  
  31. # mail delivery
  32. recipient_delimiter = +
  33.  
  34. # mappings
  35. alias_maps = hash:/etc/aliases
  36. alias_database = hash:/etc/aliases
  37. #transport_maps = hash:/etc/postfix/transport
  38. #local_recipient_maps =
  39.  
  40. # virtual setup
  41. virtual_alias_maps = proxy:mysql:/etc/sentora/configs/postfix/mysql-virtual_alias_maps.cf,
  42. regexp:/etc/sentora/configs/postfix/virtual_regexp
  43. virtual_mailbox_base = /var/sentora/vmail
  44. virtual_mailbox_domains = proxy:mysql:/etc/sentora/configs/postfix/mysql-virtual_domains_maps.cf
  45. virtual_mailbox_maps = proxy:mysql:/etc/sentora/configs/postfix/mysql-virtual_mailbox_maps.cf
  46. virtual_minimum_uid = 999
  47. virtual_uid_maps = static:999
  48. virtual_gid_maps = static:8
  49. virtual_transport = dovecot
  50. dovecot_destination_recipient_limit = 1
  51.  
  52. # debugging
  53. debug_peer_level = 2
  54. debugger_command =
  55. PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
  56. xxgdb $daemon_directory/$process_name $process_id & sleep 5
  57.  
  58. # authentication
  59. smtpd_sasl_auth_enable = yes
  60. smtpd_sasl_security_options = noanonymous
  61. smtpd_sasl_local_domain = $myhostname
  62. broken_sasl_auth_clients = yes
  63. smtpd_sasl_type = dovecot
  64. smtpd_sasl_path = private/auth
  65.  
  66. # tls config
  67. smtp_use_tls = no
  68. smtpd_use_tls = no
  69. #smtp_tls_note_starttls_offer = yes
  70. #smtpd_tls_loglevel = 1
  71. #smtpd_tls_received_header = yes
  72. #smtpd_tls_session_cache_timeout = 3600s
  73. #tls_random_source = dev:/dev/urandom
  74. #smtp_tls_session_cache_database = btree:$data_directory/smtp_tls_session_cache
  75. # Change mail.example.com.* to your host name
  76. #smtpd_tls_key_file = /etc/pki/tls/private/mail.example.com.key
  77. #smtpd_tls_cert_file = /etc/pki/tls/certs/mail.example.com.crt
  78. # smtpd_tls_CAfile = /etc/pki/tls/root.crt
  79.  
  80. # rules restrictions
  81. smtpd_client_restrictions =
  82. smtpd_helo_restrictions =
  83. smtpd_sender_restrictions =
  84. smtpd_recipient_restrictions = permit_sasl_authenticated,
  85. permit_mynetworks,
  86. reject_unauth_destination,
  87. reject_non_fqdn_sender,
  88. reject_non_fqdn_recipient,
  89. reject_unknown_recipient_domain
  90. # uncomment for realtime black list checks. (Warn: will also reject false positive)
  91. # ,reject_rbl_client zen.spamhaus.org
  92. # ,reject_rbl_client bl.spamcop.net
  93. # ,reject_rbl_client dnsbl.sorbs.net
  94.  
  95. smtpd_helo_required = yes
  96. unknown_local_recipient_reject_code = 550
  97. disable_vrfy_command = yes
  98. smtpd_data_restrictions = reject_unauth_pipelining
  99. smtpd_banner = $myhostname ESMTP
  100.  
  101. message_size_limit = 20480000
  102.  
  103. #
  104. # Postfix master process configuration file. For details on the format
  105. # of the file, see the Postfix master(5) manual page.
  106. #
  107. # ***** Unused items removed *****
  108. # ==========================================================================
  109. # service type private unpriv chroot wakeup maxproc command + args
  110. # (yes) (yes) (yes) (never) (100)
  111. # ==========================================================================
  112. smtp inet n - n - - smtpd
  113. # -o content_filter=smtp-amavis:127.0.0.1:10024
  114. # -o receive_override_options=no_address_mappings
  115. pickup fifo n - n 60 1 pickup
  116. -o content_filter=
  117. -o receive_override_options=no_header_body_checks
  118. cleanup unix n - n - 0 cleanup
  119. qmgr fifo n - n 300 1 qmgr
  120. #qmgr fifo n - n 300 1 oqmgr
  121. tlsmgr unix - - n 1000? 1 tlsmgr
  122. rewrite unix - - n - - trivial-rewrite
  123. bounce unix - - n - 0 bounce
  124. defer unix - - n - 0 bounce
  125. trace unix - - n - 0 bounce
  126. verify unix - - n - 1 verify
  127. flush unix n - n 1000? 0 flush
  128. proxymap unix - - n - - proxymap
  129. smtp unix - - n - - smtp
  130. # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
  131. relay unix - - n - - smtp
  132. -o fallback_relay=
  133. # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
  134. showq unix n - n - - showq
  135. error unix - - n - - error
  136. discard unix - - n - - discard
  137. local unix - n n - - local
  138. virtual unix - n n - - virtual
  139. lmtp unix - - n - - lmtp
  140. anvil unix - - n - 1 anvil
  141. scache unix - - n - 1 scache
  142. #
  143. # ====================================================================
  144. # Interfaces to non-Postfix software. Be sure to examine the manual
  145. # pages of the non-Postfix software to find out what options it wants.
  146. # ====================================================================
  147. maildrop unix - n n - - pipe
  148. flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
  149. uucp unix - n n - - pipe
  150. flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
  151. ifmail unix - n n - - pipe
  152. flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
  153. bsmtp unix - n n - - pipe
  154. flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
  155. #
  156. # spam/virus section
  157. #
  158. smtp-amavis unix - - y - 2 smtp
  159. -o smtp_data_done_timeout=1200
  160. -o disable_dns_lookups=yes
  161. -o smtp_send_xforward_command=yes
  162. 127.0.0.1:10025 inet n - y - - smtpd
  163. -o content_filter=
  164. -o smtpd_helo_restrictions=
  165. -o smtpd_sender_restrictions=
  166. -o smtpd_recipient_restrictions=permit_mynetworks,reject
  167. -o mynetworks=127.0.0.0/8
  168. -o smtpd_error_sleep_time=0
  169. -o smtpd_soft_error_limit=1001
  170. -o smtpd_hard_error_limit=1000
  171. -o receive_override_options=no_header_body_checks
  172. -o smtpd_helo_required=no
  173. -o smtpd_client_restrictions=
  174. -o smtpd_restriction_classes=
  175. -o disable_vrfy_command=no
  176. -o strict_rfc821_envelopes=yes
  177. #
  178. # Dovecot LDA
  179. dovecot unix - n n - - pipe
  180. flags=DRhu user=vmail:mail argv=/usr/lib/dovecot/deliver -d ${recipient}
  181. #
  182. # Vacation mail
  183. vacation unix - n n - - pipe
  184. flags=Rq user=vacation argv=/var/spool/vacation/vacation.pl -f ${sender} -- ${recipient}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement