Guest User

Untitled

a guest
Feb 1st, 2019
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.27 KB | None | 0 0
  1. header_checks = pcre:/etc/postfix/header_checks.pcre
  2.  
  3. /^From: skrbniki@pressclip.si/ REDIRECT someone@something.si
  4.  
  5. postmap -q "From: skrbniki@pressclip.si" pcre:/etc/postfix/header_checks.pcre
  6.  
  7. REDIRECT someone@something.si
  8.  
  9. Nov 26 07:30:11 smtp postfix/smtpd[18733]: connect from gatekeeper.pressclip.si[213.161.20.180]
  10. Nov 26 07:30:19 smtp sqlgrey: grey: domain awl match: updating 213.161.20(213.161.20.180), pressclip.si
  11. Nov 26 07:30:19 smtp postfix/smtpd[18733]: 0F1862111E: client=gatekeeper.pressclip.si[213.161.20.180]
  12. Nov 26 07:30:19 smtp sqlgrey: grey: domain awl match: updating 213.161.20(213.161.20.180), pressclip.si
  13. Nov 26 07:30:19 smtp sqlgrey: grey: domain awl match: updating 213.161.20(213.161.20.180), pressclip.si
  14. Nov 26 07:30:19 smtp sqlgrey: grey: domain awl match: updating 213.161.20(213.161.20.180), pressclip.si
  15. Nov 26 07:30:19 smtp sqlgrey: grey: domain awl match: updating 213.161.20(213.161.20.180), pressclip.si
  16. Nov 26 07:30:19 smtp sqlgrey: grey: domain awl match: updating 213.161.20(213.161.20.180), pressclip.si
  17. Nov 26 07:30:19 smtp sqlgrey: grey: domain awl match: updating 213.161.20(213.161.20.180), pressclip.si
  18. Nov 26 07:30:19 smtp sqlgrey: grey: domain awl match: updating 213.161.20(213.161.20.180), pressclip.si
  19. Nov 26 07:30:19 smtp sqlgrey: grey: domain awl match: updating 213.161.20(213.161.20.180), pressclip.si
  20. Nov 26 07:30:19 smtp sqlgrey: grey: domain awl match: updating 213.161.20(213.161.20.180), pressclip.si
  21. Nov 26 07:30:19 smtp sqlgrey: grey: domain awl match: updating 213.161.20(213.161.20.180), pressclip.si
  22. Nov 26 07:30:19 smtp sqlgrey: grey: domain awl match: updating 213.161.20(213.161.20.180), pressclip.si
  23. Nov 26 07:30:19 smtp postfix/cleanup[18828]: 0F1862111E: message-id=<20151126063000.BA95A2104BED@zimbra.pressclip.si>
  24. Nov 26 07:30:21 smtp postfix/qmgr[14986]: 0F1862111E: from=<skrbniki@pressclip.si>, size=4125270, nrcpt=12 (queue active)
  25. Nov 26 07:30:21 smtp postfix/smtpd[18733]: disconnect from gatekeeper.pressclip.si[213.161.20.180]
  26. Nov 26 07:30:21 smtp postfix/cleanup[18827]: 09F6A212AB: message-id=<20151126063000.BA95A2104BED@zimbra.pressclip.si>
  27. Nov 26 07:30:21 smtp postfix/qmgr[14986]: 09F6A212AB: from=<skrbniki@pressclip.si>, size=4125593, nrcpt=12 (queue active)
  28.  
  29. alias_database = hash:/etc/aliases
  30. alias_maps = hash:/etc/aliases
  31. anvil_rate_time_unit = 600s
  32. body_checks = regexp:/etc/postfix/body_checks
  33. command_directory = /usr/sbin
  34. config_directory = /etc/postfix
  35. content_filter = smtp:[127.0.0.1]:2526
  36. daemon_directory = /usr/libexec/postfix
  37. data_directory = /var/lib/postfix
  38. debug_peer_level = 2
  39. header_checks = pcre:/etc/postfix/header_checks.pcre
  40. html_directory = no
  41. inet_interfaces = all
  42. inet_protocols = ipv4
  43. luser_relay = $user@mail.ztm.si
  44. mail_owner = postfix
  45. mailq_path = /usr/bin/mailq.postfix
  46. manpage_directory = /usr/share/man
  47. message_size_limit = 30971520
  48. mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
  49. mydomain = ztm.si
  50. myhostname = ip04.ztm.si
  51. mynetworks = 193.2.210.0/24, 92.244.66.224/28, 127.0.0.0/8, 89.212.169.201/32, 10.0.0.0/8 172.31.255.0/24
  52. myorigin = $myhostname
  53. newaliases_path = /usr/bin/newaliases.postfix
  54. queue_directory = /var/spool/postfix
  55. readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
  56. relay_domains = $mydestination
  57. sample_directory = /usr/share/doc/postfix-2.6.6/samples
  58. sendmail_path = /usr/sbin/sendmail.postfix
  59. setgid_group = postdrop
  60. smtp_starttls_timeout = 100s
  61. smtp_tls_loglevel = 3
  62. smtp_tls_mandatory_protocols = !SSLv2, !SSLv3
  63. smtp_tls_note_starttls_offer = yes
  64. smtp_tls_security_level = may
  65. smtpd_client_connection_count_limit = 10
  66. smtpd_client_connection_rate_limit = 300
  67. smtpd_client_message_rate_limit = 300
  68. smtpd_client_recipient_rate_limit = 300
  69. smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination check_policy_service inet:127.0.0.1:2501
  70. smtpd_starttls_timeout = 100s
  71. smtpd_tls_CAfile = /etc/postfix/DigiCertCA.crt
  72. smtpd_tls_cert_file = /etc/postfix/smtp_ztm_si.crt
  73. smtpd_tls_key_file = /etc/postfix/smtp.key
  74. smtpd_tls_loglevel = 3
  75. smtpd_tls_security_level = may
  76. transport_maps = hash:/etc/postfix/transport
  77. unknown_local_recipient_reject_code = 550
  78. virtual_alias_maps = hash:/etc/postfix/virtual_alias_map
  79.  
  80. smtp inet n - n - - smtpd
  81. submission inet n - n - - smtpd
  82. -o smtpd_sasl_auth_enable=yes
  83. -o smtpd_sasl_security_options=noanonymous
  84. -o broken_sasl_auth_clients=yes
  85. -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  86. -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
  87. -o smtpd_tls_key_file=/etc/postfix/smtp.key
  88. -o smtpd_tls_cert_file=/etc/postfix/smtp_ztm_si.crt
  89. -o smtpd_tls_CAfile=/etc/postfix/DigiCertCA.crt
  90. -o content_filter=
  91. -o smtpd_use_tls=yes
  92. # -o smtpd_enforce_tls=yes
  93. smtps inet n - n - - smtpd
  94. -o smtpd_tls_wrappermode=yes
  95. -o smtpd_sasl_auth_enable=yes
  96. -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  97. -o smtpd_sasl_security_options=noanonymous
  98. -o broken_sasl_auth_clients=yes
  99. -o smtpd_etrn_restrictions=reject
  100. -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
  101. -o smtpd_tls_key_file=/etc/postfix/smtp.key
  102. -o smtpd_tls_cert_file=/etc/postfix/smtp_ztm_si.crt
  103. -o smtpd_tls_CAfile=/etc/postfix/DigiCertCA.crt
  104. -o smtpd_use_tls=yes
  105. -o smtpd_enforce_tls=yes
  106. -o content_filter=
  107. # -o content_filter=smtp:localhost:2525
  108. #submission inet n - n - - smtpd
  109. # -o smtpd_tls_security_level=encrypt
  110. # -o smtpd_sasl_auth_enable=yes
  111. # -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  112. # -o milter_macro_daemon_name=ORIGINATING
  113. #smtps inet n - n - - smtpd
  114. # -o smtpd_tls_wrappermode=yes
  115. # -o smtpd_sasl_auth_enable=yes
  116. # -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  117. # -o milter_macro_daemon_name=ORIGINATING
  118. #628 inet n - n - - qmqpd
  119. pickup fifo n - n 60 1 pickup
  120. cleanup unix n - n - 0 cleanup
  121. qmgr fifo n - n 300 1 qmgr
  122. #qmgr fifo n - n 300 1 oqmgr
  123. tlsmgr unix - - n 1000? 1 tlsmgr
  124. rewrite unix - - n - - trivial-rewrite
  125. bounce unix - - n - 0 bounce
  126. defer unix - - n - 0 bounce
  127. trace unix - - n - 0 bounce
  128. verify unix - - n - 1 verify
  129. flush unix n - n 1000? 0 flush
  130. proxymap unix - - n - - proxymap
  131. proxywrite unix - - n - 1 proxymap
  132. smtp unix - - n - - smtp
  133. # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
  134. relay unix - - n - - smtp
  135. -o smtp_fallback_relay=
  136. # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
  137. showq unix n - n - - showq
  138. error unix - - n - - error
  139. retry unix - - n - - error
  140. discard unix - - n - - discard
  141. local unix - n n - - local
  142. virtual unix - n n - - virtual
  143. lmtp unix - - n - - lmtp
  144. anvil unix - - n - 1 anvil
  145. scache unix - - n - 1 scache
  146.  
  147. smtp-esets unix - - n - 6 lmtp
  148. -o lmtp_data_done_timeout=1200
  149. -o lmtp_send_xforward_command=yes
  150. -o disable_dns_lookups=yes
  151. -o max_use=20
  152.  
  153. localhost:2525 inet n - n - - smtpd
  154. -o content_filter=
  155. -o myhostname=esets.ztm.si
  156. -o local_recipient_maps=
  157. -o relay_recipient_maps=
  158. -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
  159. -o smtpd_helo_restrictions=
  160. -o smtpd_client_restrictions=
  161. -o smtpd_sender_restrictions=
  162. -o smtpd_recipient_restrictions=permit_mynetworks,reject
  163. -o mynetworks=127.0.0.0/8
  164.  
  165. DISCARD optional text...
  166. Claim successful delivery and silently discard the message. Log
  167. the optional text if specified, otherwise log a generic message.
Add Comment
Please, Sign In to add comment