廣告

2024 年 11 月
 123
45678910
11121314151617
18192021222324
252627282930  

彙整

Postfix設定對付惱人的垃圾信

垃圾信標頭:

Return-Path: <webmd@healthylifestyle1.website>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
    mail.t3ex-techiview.com
X-Spam-Level: ***
X-Spam-Status: No, score=3.4 required=5.0 tests=BAYES_00,HTML_MESSAGE,
    RDNS_NONE,T_REMOTE_IMAGE,URIBL_BLOCKED,URIBL_DBL_SPAM,XPRIO autolearn=no
    version=3.3.1
Delivered-To: roger.lin@XXX.com
Received: from eo09t.healthylifestyle1.website (unknown [185.153.228.53])
    by mail.t3ex-techiview.com (Postfix) with ESMTP id BB00D7A01DE
    for <it@XXX.com>; Wed, 20 Jul 2016 20:43:18 +0800 (CST)
Received: from 0102d464.eo09t.healthylifestyle1.website ([127.0.0.1]:10236 helo=eo09t.healthylifestyle1.website)
    by eo09t.healthylifestyle1.website with ESMTP id 01BBAMRQXJT02D4QHCHVLKST64;
    for <it@XXX.com>; Wed, 20 Jul 2016 08:43:15 -0400
To: <it@XXX.com>
Date: Wed, 20 Jul 2016 08:43:15 -0400
Message-ID: <12363301696142412365811837531033@eo09t.healthylifestyle1.website>
From: "WebMD" <WebMD@healthylifestyle1.website>
Subject: Lose 1lb of belly fat every day!
X-Priority: 3 (Normal) 16961424
Importance: Normal
Content-Language: en-us
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: multipart/alternative;
    boundary="—-=Part.600.8474.1469018595"
X-Hiview-MailScanner-Information: Please contact the ISP for more information
X-Hiview-MailScanner-ID: BB00D7A01DE.AC03B
X-Hiview-MailScanner: Found to be clean
X-Hiview-MailScanner-From: webmd@healthylifestyle1.website

MAIL SERVER LOG:

Jul 20 20:43:17 mail postfix/smtpd[4848]: warning: 185.153.228.53: hostname 53144.rdns.hemenhosting.org verification failed: Name or service not known
Jul 20 20:43:17 mail postfix/smtpd[4848]: connect from unknown[185.153.228.53]
Jul 20 20:43:18 mail dovecot: POP3(elodie.yeh): Disconnected: Logged out top=0/0, retr=5/5067560, del=0/1800, size=1195997709
Jul 20 20:43:19 mail postfix/smtpd[4848]: BB00D7A01DE: client=unknown[185.153.228.53]
Jul 20 20:43:20 mail postfix/cleanup[4918]: BB00D7A01DE: hold: header Received: from eo09t.healthylifestyle1.website (unknown [185.153.228.53])??by mail.t3ex-techiview.com (Postfix) with ESMTP id BB00D7A01DE??for <it@XXX.com>; Wed, 20 Jul 2016 20:43:18 +0800 from unknown[185.153.228.53]; from=<WebMD@healthylifestyle1.website> to=<it@XXX.com> proto=ESMTP helo=<eo09t.healthylifestyle1.website>

最後在 /etc/postfix/main.cf 加入reject_unknown_reverse_client_hostname 試試

smtpd_recipient_restrictions =
        permit_mynetworks
        permit_sasl_authenticated
        reject_unauth_destination
        reject_unknown_reverse_client_hostname
        reject_non_fqdn_hostname
        reject_non_fqdn_sender
        reject_non_fqdn_recipient
        check_client_access hash:/etc/postfix/access
        check_sender_access hash:/etc/postfix/sender_access
        reject_invalid_hostname
        reject_unknown_sender_domain
        reject_unknown_recipient_domain
        #下列兩項是讀取網路黑名單資料庫用的
        #參考 http://www.weithenn.org/cgi-bin/wiki.pl?%E5%B0%8E%E5%85%A5_DNSBL_%E5%B0%8D%E6%8A%97%E5%9E%83%E5%9C%BE%E4%BF%A1_(Anti-SPAM)
        reject_rbl_client zen.spamhaus.org
        reject_rbl_client bl.spamcop.net

讀者也會看的其它文章:

    Comments are closed.