Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.38 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 = no
  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 = abraham.evorion.hr
  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. mydestination = abraham.evorion.hr, localhost, localhost.localdomain
  35. mynetworks = 127.0.0.0/8 [::1]/128 10.9.8.0/24
  36. mailbox_command = procmail -a "$EXTENSION"
  37. mailbox_size_limit = 0
  38. recipient_delimiter = +
  39. inet_interfaces = all
  40. virtual_alias_domains =
  41. virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman, proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf
  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. smtpd_sasl_auth_enable = yes
  48. broken_sasl_auth_clients = yes
  49. smtpd_sasl_authenticated_header = yes
  50. smtpd_recipient_restrictions =
  51. permit_mynetworks,
  52. permit_sasl_authenticated,
  53. reject_invalid_hostname,
  54. reject_non_fqdn_hostname,
  55. reject_unknown_recipient_domain,
  56. reject_non_fqdn_recipient,
  57. reject_unauth_destination,
  58. reject_non_fqdn_sender,
  59. reject_unknown_sender_domain,
  60. reject_unknown_recipient_domain,
  61. reject_rbl_client cbl.abuseat.org,
  62. reject_rbl_client dul.dnsbl.sorbs.net,
  63. reject_rbl_client ix.dnsbl.manitu.net,
  64. reject_rbl_client zen.spamhaus.org,
  65. reject_rbl_client dsn.rfc-ignorant.org,
  66. reject_rbl_client bl.spamcop.net,
  67. reject_rbl_client combined.rbl.msrbl.net,
  68. reject_rbl_client rabl.nuclearelephant.com,
  69. check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf,
  70. reject_unauth_destination
  71. smtpd_tls_security_level = may
  72. transport_maps = hash:/var/lib/mailman/data/transport-mailman, proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
  73. relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
  74. relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
  75. 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
  76.  
  77.  
  78. smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
  79. smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
  80. smtpd_client_message_rate_limit = 100
  81. maildrop_destination_concurrency_limit = 1
  82. maildrop_destination_recipient_limit = 1
  83. virtual_transport = dovecot
  84. header_checks = regexp:/etc/postfix/header_checks
  85. mime_header_checks = regexp:/etc/postfix/mime_header_checks
  86. nested_header_checks = regexp:/etc/postfix/nested_header_checks
  87. body_checks = regexp:/etc/postfix/body_checks
  88. owner_request_special = no
  89. dovecot_destination_recipient_limit = 1
  90. smtpd_sasl_type = dovecot
  91. smtpd_sasl_path = private/auth
  92. content_filter = amavis:[127.0.0.1]:10024
  93. receive_override_options = no_address_mappings
  94. message_size_limit = 0
  95. inet_protocols = all
  96. relayhost =
  97. smtp_tls_security_level = may
  98. smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3
  99. smtpd_tls_protocols = !SSLv2,!SSLv3
  100. smtp_tls_protocols = !SSLv2,!SSLv3
  101. smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf
  102.  
  103.  
  104.  
  105. ################################################################################################################
  106.  
  107. LOGS
  108.  
  109. Mar 22 13:58:30 abraham postfix/smtpd[4812]: connect from unknown[171.255.133.145]
  110. Mar 22 13:58:31 abraham postfix/smtpd[4812]: A56231D45: client=unknown[171.255.133.145]
  111. Mar 22 13:58:32 abraham postfix/cleanup[5920]: A56231D45: message-id=<6887381685.SIM_00B3A1FF65C1@evorion.hr>
  112. Mar 22 13:58:32 abraham postfix/qmgr[25530]: A56231D45: from=<dewMaricela01250@livingwithmeaning.com>, size=5815, nrcpt=1 (queue active)
  113. Mar 22 13:58:33 abraham postfix/smtpd[4812]: disconnect from unknown[171.255.133.145]
  114. Mar 22 13:58:37 abraham postfix/smtpd[5925]: connect from localhost[127.0.0.1]
  115. Mar 22 13:58:37 abraham postfix/smtpd[5925]: A9C781D46: client=localhost[127.0.0.1]
  116. Mar 22 13:58:37 abraham postfix/cleanup[5920]: A9C781D46: message-id=<6887381685.SIM_00B3A1FF65C1@evorion.hr>
  117. Mar 22 13:58:37 abraham postfix/qmgr[25530]: A9C781D46: from=<dewMaricela01250@livingwithmeaning.com>, size=6545, nrcpt=1 (queue active)
  118. Mar 22 13:58:37 abraham postfix/smtpd[5925]: disconnect from localhost[127.0.0.1]
  119. Mar 22 13:58:37 abraham amavis[32645]: (32645-16) Passed SPAMMY {RelayedTaggedInbound}, [171.255.133.145]:58423 [171.255.133.145] <dewMaricela01250@livingwithmeaning.com> -> <ured@evorion.hr>, Queue-ID: A56231D45, Message-ID: <6887381685.SIM_00B3A1FF65C1@evorion.hr>, mail_id: 39RrA4EEz1Ui, Hits: 4.023, size: 5815, queued_as: A9C781D46, 4935 ms
  120. Mar 22 13:58:37 abraham postfix/smtp[5921]: A56231D45: to=<ured@evorion.hr>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.8, delays=1.8/0.01/0/4.9, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as A9C781D46)
  121. Mar 22 13:58:37 abraham postfix/qmgr[25530]: A56231D45: removed
  122. Mar 22 13:58:38 abraham dovecot: lda(vlatko.surlan@evorion.hr): sieve: msgid=<6887381685.SIM_00B3A1FF65C1@evorion.hr>: stored mail into mailbox 'INBOX'
  123. Mar 22 13:58:38 abraham postfix/pipe[5926]: A9C781D46: to=<vlatko.surlan@evorion.hr>, orig_to=<ured@evorion.hr>, relay=dovecot, delay=0.33, delays=0.11/0.01/0/0.21, dsn=2.0.0, status=sent (delivered via dovecot service)
  124. Mar 22 13:58:38 abraham postfix/qmgr[25530]: A9C781D46: removed
  125.  
  126. ################################################################################################################
  127.  
  128.  
  129. root@abraham:/etc/postfix# dig 145.133.255.171.zen.spamhaus.org any
  130.  
  131. ; <<>> DiG 9.9.5-9+deb8u6-Debian <<>> 145.133.255.171.zen.spamhaus.org any
  132. ;; global options: +cmd
  133. ;; Got answer:
  134. ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11295
  135. ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
  136.  
  137. ;; OPT PSEUDOSECTION:
  138. ; EDNS: version: 0, flags:; udp: 512
  139. ;; QUESTION SECTION:
  140. ;145.133.255.171.zen.spamhaus.org. IN ANY
  141.  
  142. ;; ANSWER SECTION:
  143. 145.133.255.171.zen.spamhaus.org. 899 IN A 127.0.0.11
  144. 145.133.255.171.zen.spamhaus.org. 899 IN TXT "https://www.spamhaus.org/query/ip/171.255.133.145"
  145. 145.133.255.171.zen.spamhaus.org. 899 IN A 127.0.0.4
  146.  
  147. ;; Query time: 34 msec
  148. ;; SERVER: 8.8.8.8#53(8.8.8.8)
  149. ;; WHEN: Tue Mar 22 14:33:06 CET 2016
  150. ;; MSG SIZE rcvd: 155
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement