Advertisement
Guest User

Untitled

a guest
Jan 26th, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.47 KB | None | 0 0
  1. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  2.  
  3.  
  4. # Debian specific: Specifying a file name will cause the first
  5. # line of that file to be used as the name. The Debian default
  6. # is /etc/mailname.
  7. #myorigin = /etc/mailname
  8.  
  9. smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
  10. biff = no
  11.  
  12. # appending .domain is the MUA's job.
  13. append_dot_mydomain = no
  14.  
  15. # Uncomment the next line to generate "delayed mail" warnings
  16. #delay_warning_time = 4h
  17.  
  18. readme_directory = /usr/share/doc/postfix
  19.  
  20. # TLS parameters
  21. smtpd_tls_cert_file = /etc/postfix/smtpd.cert
  22. smtpd_tls_key_file = /etc/postfix/smtpd.key
  23. smtpd_use_tls = yes
  24. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  25. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  26.  
  27. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  28. # information on enabling SSL in the smtp client.
  29.  
  30. myhostname = mail.gpscontrol.bg
  31. alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
  32. alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
  33. myorigin = /etc/mailname
  34.  
  35.  
  36. mydestination = www.mail.gpscontrol.bg, localhost, localhost.localdomain, localhost.gpscontrol.bg
  37.  
  38. relayhost =
  39. mynetworks = 127.0.0.0/8 [::1]/128
  40. mailbox_command = /opt/eset/esets/bin/esets_mda -d "$USER" -- --recipient="$RECIPIENT" --sender="$SENDER"
  41. #mailbox_command = /opt/eset/esets/bin/esets_mda -a "$EXTENSION" -- --recipient="$RECIPIENT" --sender="$SENDER"
  42. #mailbox_command = /usr/bin/procmail -d "$USER"
  43. mailbox_size_limit = 0
  44. recipient_delimiter = +
  45. inet_interfaces = all
  46. html_directory = /usr/share/doc/postfix/html
  47. virtual_alias_domains =
  48. virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf, hash:/var/lib/mailman/data/virtual-mailman
  49. virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
  50. virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
  51. virtual_mailbox_base = /var/vmail
  52. virtual_uid_maps = static:5000
  53. virtual_gid_maps = static:5000
  54. smtpd_sasl_auth_enable = yes
  55. broken_sasl_auth_clients = yes
  56. smtpd_sasl_authenticated_header = yes
  57. smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf
  58. smtpd_tls_security_level = may
  59.  
  60. transport_maps = hash:/etc/postfix/transport
  61. relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
  62.  
  63. relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
  64. 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
  65. smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
  66. smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
  67. maildrop_destination_concurrency_limit = 1
  68. maildrop_destination_recipient_limit = 1
  69. virtual_transport = dovecot
  70. header_checks = regexp:/etc/postfix/header_checks
  71. mime_header_checks = regexp:/etc/postfix/mime_header_checks
  72. nested_header_checks = regexp:/etc/postfix/nested_header_checks
  73. body_checks = regexp:/etc/postfix/body_checks
  74. dovecot_destination_recipient_limit = 1
  75. smtpd_sasl_type = dovecot
  76. smtpd_sasl_path = private/auth
  77. #content_filter = amavis:[127.0.0.1]:10024
  78.  
  79. #eset content filter
  80. #content_filter = smtp:[127.0.0.1]:2526
  81.  
  82. receive_override_options = no_address_mappings
  83. message_size_limit = 0
  84. inet_protocols = all
  85. smtpd_client_message_rate_limit = 100
  86. owner_request_special = no
  87. smtp_tls_security_level = may
  88. smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3
  89. smtpd_tls_protocols = !SSLv2,!SSLv3
  90. smtp_tls_protocols = !SSLv2,!SSLv3
  91. #esets orig mboxcmd: procmail -a "$EXTENSION"
  92.  
  93. #
  94. # Postfix master process configuration file. For details on the format
  95. # of the file, see the master(5) manual page (command: "man 5 master").
  96. #
  97. # Do not forget to execute "postfix reload" after editing this file.
  98. #
  99. # ==========================================================================
  100. # service type private unpriv chroot wakeup maxproc command + args
  101. # (yes) (yes) (yes) (never) (100)
  102. # ==========================================================================
  103. smtp inet n - - - - smtpd
  104. #submission inet n - - - - smtpd
  105. # -o smtpd_tls_security_level=encrypt
  106. # -o smtpd_sasl_auth_enable=yes
  107. # -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  108. # -o milter_macro_daemon_name=ORIGINATING
  109. #smtps inet n - - - - smtpd
  110. # -o smtpd_tls_wrappermode=yes
  111. # -o smtpd_sasl_auth_enable=yes
  112. # -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  113. # -o milter_macro_daemon_name=ORIGINATING
  114. #628 inet n - - - - qmqpd
  115. pickup fifo n - - 60 1 pickup
  116. cleanup unix n - - - 0 cleanup
  117. qmgr fifo n - n 300 1 qmgr
  118. #qmgr fifo n - - 300 1 oqmgr
  119. tlsmgr unix - - - 1000? 1 tlsmgr
  120. rewrite unix - - - - - trivial-rewrite
  121.  
  122. bounce unix - - - - 0 bounce
  123.  
  124. #bounce unix - - - - 0 discard
  125.  
  126. defer unix - - - - 0 bounce
  127. trace unix - - - - 0 bounce
  128. verify unix - - - - 1 verify
  129. flush unix n - - 1000? 0 flush
  130. proxymap unix - - n - - proxymap
  131. proxywrite unix - - n - 1 proxymap
  132. smtp unix - - - - - smtp
  133. # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
  134. relay unix - - - - - smtp
  135. -o smtp_fallback_relay=
  136. # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
  137. showq unix n - - - - showq
  138. error unix - - - - - error
  139. retry unix - - - - - error
  140. discard unix - - - - - discard
  141. local unix - n n - - local
  142. virtual unix - n n - - virtual
  143. lmtp unix - - - - - lmtp
  144. anvil unix - - - - 1 anvil
  145. scache unix - - - - 1 scache
  146. #
  147. # ====================================================================
  148. # Interfaces to non-Postfix software. Be sure to examine the manual
  149. # pages of the non-Postfix software to find out what options it wants.
  150. #
  151. # Many of the following services use the Postfix pipe(8) delivery
  152. # agent. See the pipe(8) man page for information about ${recipient}
  153. # and other message envelope options.
  154. # ====================================================================
  155. #
  156. # maildrop. See the Postfix MAILDROP_README file for details.
  157. # Also specify in main.cf: maildrop_destination_recipient_limit=1
  158. #
  159.  
  160. maildrop unix - n n - - pipe
  161. flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender}
  162.  
  163. #maildrop unix - n n - - pipe
  164. #flags=R user=vmail argv=/usr/bin/maildrop -d vmail ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender}
  165.  
  166.  
  167. #
  168. # See the Postfix UUCP_README file for configuration details.
  169. #
  170. uucp unix - n n - - pipe
  171. flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
  172. #
  173. # Other external delivery methods.
  174. #
  175. ifmail unix - n n - - pipe
  176. flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
  177. bsmtp unix - n n - - pipe
  178. flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
  179. scalemail-backend unix - n n - 2 pipe
  180. flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
  181.  
  182.  
  183. #mailman unix - n n - - pipe
  184. # flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  185. # ${nexthop} ${user}
  186.  
  187.  
  188. dovecot unix - n n - - pipe
  189. flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
  190. amavis unix - - - - 2 smtp
  191. -o smtp_data_done_timeout=1200
  192. -o smtp_send_xforward_command=yes
  193.  
  194. 127.0.0.1:10025 inet n - - - - smtpd
  195. -o content_filter=
  196. -o local_recipient_maps=
  197. -o relay_recipient_maps=
  198. -o smtpd_restriction_classes=
  199. -o smtpd_client_restrictions=
  200. -o smtpd_helo_restrictions=
  201. -o smtpd_sender_restrictions=
  202. -o smtpd_recipient_restrictions=permit_mynetworks,reject
  203. -o mynetworks=127.0.0.0/8
  204. -o strict_rfc821_envelopes=yes
  205. -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
  206.  
  207.  
  208. localhost:2525 inet n - n - - smtpd
  209. -o content_filter=
  210. -o myhostname=mail.gpscontrol.bg
  211. -o local_recipient_maps=
  212. -o relay_recipient_maps=
  213. -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
  214. -o smtpd_helo_restrictions=
  215. -o smtpd_client_restrictions=
  216. -o smtpd_sender_restrictions=
  217. -o smtpd_recipient_restrictions=permit_mynetworks,reject
  218. -o mynetworks=127.0.0.0/8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement