Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # See /usr/share/postfix/main.cf.dist for a commented, more complete version
- # Debian specific: Specifying a file name will cause the first
- # line of that file to be used as the name. The Debian default
- # is /etc/mailname.
- #myorigin = /etc/mailname
- smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
- biff = no
- # appending .domain is the MUA's job.
- append_dot_mydomain = no
- # Uncomment the next line to generate "delayed mail" warnings
- #delay_warning_time = 4h
- readme_directory = no
- # TLS parameters
- smtpd_tls_cert_file = /etc/postfix/smtpd.cert
- smtpd_tls_key_file = /etc/postfix/smtpd.key
- smtpd_use_tls = yes
- smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
- smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
- # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
- # information on enabling SSL in the smtp client.
- myhostname = abraham.evorion.hr
- alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
- alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
- myorigin = /etc/mailname
- mydestination = abraham.evorion.hr, localhost, localhost.localdomain
- mynetworks = 127.0.0.0/8 [::1]/128 10.9.8.0/24
- mailbox_command = procmail -a "$EXTENSION"
- mailbox_size_limit = 0
- recipient_delimiter = +
- inet_interfaces = all
- virtual_alias_domains =
- 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
- virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
- virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
- virtual_mailbox_base = /var/vmail
- virtual_uid_maps = static:5000
- virtual_gid_maps = static:5000
- smtpd_sasl_auth_enable = yes
- broken_sasl_auth_clients = yes
- smtpd_sasl_authenticated_header = yes
- smtpd_recipient_restrictions =
- permit_mynetworks,
- permit_sasl_authenticated,
- reject_invalid_hostname,
- reject_non_fqdn_hostname,
- reject_unknown_recipient_domain,
- reject_non_fqdn_recipient,
- reject_unauth_destination,
- reject_non_fqdn_sender,
- reject_unknown_sender_domain,
- reject_unknown_recipient_domain,
- reject_rbl_client cbl.abuseat.org,
- reject_rbl_client dul.dnsbl.sorbs.net,
- reject_rbl_client ix.dnsbl.manitu.net,
- reject_rbl_client zen.spamhaus.org,
- reject_rbl_client dsn.rfc-ignorant.org,
- reject_rbl_client bl.spamcop.net,
- reject_rbl_client combined.rbl.msrbl.net,
- reject_rbl_client rabl.nuclearelephant.com,
- check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf,
- reject_unauth_destination
- smtpd_tls_security_level = may
- transport_maps = hash:/var/lib/mailman/data/transport-mailman, proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
- relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
- relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
- 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
- smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
- smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
- smtpd_client_message_rate_limit = 100
- maildrop_destination_concurrency_limit = 1
- maildrop_destination_recipient_limit = 1
- virtual_transport = dovecot
- header_checks = regexp:/etc/postfix/header_checks
- mime_header_checks = regexp:/etc/postfix/mime_header_checks
- nested_header_checks = regexp:/etc/postfix/nested_header_checks
- body_checks = regexp:/etc/postfix/body_checks
- owner_request_special = no
- dovecot_destination_recipient_limit = 1
- smtpd_sasl_type = dovecot
- smtpd_sasl_path = private/auth
- content_filter = amavis:[127.0.0.1]:10024
- receive_override_options = no_address_mappings
- message_size_limit = 0
- inet_protocols = all
- relayhost =
- smtp_tls_security_level = may
- smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3
- smtpd_tls_protocols = !SSLv2,!SSLv3
- smtp_tls_protocols = !SSLv2,!SSLv3
- smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf
- ################################################################################################################
- LOGS
- Mar 22 13:58:30 abraham postfix/smtpd[4812]: connect from unknown[171.255.133.145]
- Mar 22 13:58:31 abraham postfix/smtpd[4812]: A56231D45: client=unknown[171.255.133.145]
- Mar 22 13:58:32 abraham postfix/cleanup[5920]: A56231D45: message-id=<6887381685.SIM_00B3A1FF65C1@evorion.hr>
- Mar 22 13:58:32 abraham postfix/qmgr[25530]: A56231D45: from=<dewMaricela01250@livingwithmeaning.com>, size=5815, nrcpt=1 (queue active)
- Mar 22 13:58:33 abraham postfix/smtpd[4812]: disconnect from unknown[171.255.133.145]
- Mar 22 13:58:37 abraham postfix/smtpd[5925]: connect from localhost[127.0.0.1]
- Mar 22 13:58:37 abraham postfix/smtpd[5925]: A9C781D46: client=localhost[127.0.0.1]
- Mar 22 13:58:37 abraham postfix/cleanup[5920]: A9C781D46: message-id=<6887381685.SIM_00B3A1FF65C1@evorion.hr>
- Mar 22 13:58:37 abraham postfix/qmgr[25530]: A9C781D46: from=<dewMaricela01250@livingwithmeaning.com>, size=6545, nrcpt=1 (queue active)
- Mar 22 13:58:37 abraham postfix/smtpd[5925]: disconnect from localhost[127.0.0.1]
- 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
- 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)
- Mar 22 13:58:37 abraham postfix/qmgr[25530]: A56231D45: removed
- Mar 22 13:58:38 abraham dovecot: lda(vlatko.surlan@evorion.hr): sieve: msgid=<6887381685.SIM_00B3A1FF65C1@evorion.hr>: stored mail into mailbox 'INBOX'
- 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)
- Mar 22 13:58:38 abraham postfix/qmgr[25530]: A9C781D46: removed
- ################################################################################################################
- root@abraham:/etc/postfix# dig 145.133.255.171.zen.spamhaus.org any
- ; <<>> DiG 9.9.5-9+deb8u6-Debian <<>> 145.133.255.171.zen.spamhaus.org any
- ;; global options: +cmd
- ;; Got answer:
- ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11295
- ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
- ;; OPT PSEUDOSECTION:
- ; EDNS: version: 0, flags:; udp: 512
- ;; QUESTION SECTION:
- ;145.133.255.171.zen.spamhaus.org. IN ANY
- ;; ANSWER SECTION:
- 145.133.255.171.zen.spamhaus.org. 899 IN A 127.0.0.11
- 145.133.255.171.zen.spamhaus.org. 899 IN TXT "https://www.spamhaus.org/query/ip/171.255.133.145"
- 145.133.255.171.zen.spamhaus.org. 899 IN A 127.0.0.4
- ;; Query time: 34 msec
- ;; SERVER: 8.8.8.8#53(8.8.8.8)
- ;; WHEN: Tue Mar 22 14:33:06 CET 2016
- ;; MSG SIZE rcvd: 155
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement