Advertisement
Guest User

Untitled

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