以下是我所作的測試提供給各位參考看看會作這個測試原因有二
一.常有合作廠商被CBL設為SPAM
二.做出較適合的攔阻組合
現在主要用access+header_chechs+check_sender_access,至於reject_rbl_client原已被我所捨棄,不過我另一個同事對其情有所鍾而被保留
用myhome.idv.tw假冒myfriend寄給mycompany,測試成功
如有廣告廠商願意裝一台Server幫忙發廣告信,如濫發而被退信時是無辜的主機接受被退的信,被認為濫發廣告信也是這台無辜的主機,如用DNSBL的功能有時可能需要注意這點,以免莫名其妙老是擋掉無辜主機的信(這也是我為何要停用reject_rbl_client的原因,常有無辜廠商被擋掉)
測試如下,如有不妥版主請刪除,怕被大量運用
1. client端工具Outlook Express
1.1. 電子郵件地址: realaccount@myfriend.idv.tw
1.2. 回覆地址: realaccount@myfriend.idv.tw
1.3. 內送郵件 POP3: myhome.idv.tw
1.4. 外寄郵件 SMTP:myhome.idv.tw
1.5. 帳戶名稱: RelayTest (實際存在於myhome.idv.tw主機上的帳號,且有密碼保護)
1.6. 我的伺服器需要驗證打勾並選使用與內送郵件伺服器相同的設定
2. 結果
2.1. 寄送的帳號nouser並不存在於mycompany.com.tw主機中
2.2. 信被退回realaccount@myfriend.idv.tw
2.3. 被退回realaccount@myfriend.idv.tw的詳細資料(IP原為真實IP恕換成private IP)
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on mail.myfriend.idv.tw
X-Spam-Level: *
X-Spam-Status: No, score=2.0 required=5.0 tests=BAYES_60,DATE_IN_PAST_12_24,
HTML_MESSAGE autolearn=no version=3.2.4
Received: from mail.myhome.idv.tw (mail.myhome.idv.tw [10.6.10.6])
by mail.myfriend.idv.tw (8.14.2/8.14.2) with ESMTP id n5AEUpnx031935
for ; Wed, 10 Jun 2009 10:30:51 -0400
Received: by mail.myhome.idv.tw (Postfix)
id 232DA1501DB; Wed, 10 Jun 2009 09:41:12 +0800 (CST)
Date: Wed, 10 Jun 2009 09:41:12 +0800 (CST)
From: MAILER-DAEMON@mail.myhome.idv.tw (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: realacount@myfriend.idv.tw
Auto-Submitted: auto-replied
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="C82781501D8.1244598072/mail.myhome.idv.tw"
Message-Id: <20090610014112.232DA1501DB@mail.myhome.idv.tw>
X-myfriend_idv_tw-MailScanner-Information: Please contact the ISP for more information
X-myfriend_idv_tw-MailScanner: Found to be clean
X-myfriend_idv_tw-MailScanner-SpamScore: ssss
X-myfriend_idv_tw-MailScanner-From:
X-Antivirus: avast! (VPS 090609-0, 2009/06/09), Inbound message
X-Antivirus-Status: Clean
This is a MIME-encapsulated message.
--C82781501D8.1244598072/mail.myhome.idv.tw
Content-Description: Notification
Content-Type: text/plain; charset=us-ascii
This is the mail system at host mail.myhome.idv.tw.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
: host mail.mycompany.com.tw[10.21.21.21] said:
550 5.1.1 : Recipient address rejected: User
unknown in local recipient table (in reply to RCPT TO command)
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--C82781501D8.1244598072/mail.myhome.idv.tw
Content-Description: Delivery report
Content-Type: message/delivery-status
Reporting-MTA: dns; mail.myhome.idv.tw
X-Postfix-Queue-ID: C82781501D8
X-Postfix-Sender: rfc822; realacount@myfriend.idv.tw
Arrival-Date: Wed, 10 Jun 2009 09:41:06 +0800 (CST)
Final-Recipient: rfc822; nouser@mail.mycompany.com.tw
Original-Recipient: rfc822;nouser@mail.mycompany.com.tw
Action: failed
Status: 5.1.1
Remote-MTA: dns; mail.mycompany.com.tw
Diagnostic-Code: smtp; 550 5.1.1 : Recipient
address rejected: User unknown in local recipient table
--C82781501D8.1244598072/mail.myhome.idv.tw
Content-Description: Undelivered Message
Content-Type: message/rfc822
Received: from b214tony (10-125.96.6.HINET-IP.hinet.net [10.125.96.6])
by mail.myhome.idv.tw (Postfix) with ESMTPA id C82781501D8
for ; Wed, 10 Jun 2009 09:41:06 +0800 (CST)
Message-ID: <7FDC45A851344AA0BCFE8178F0CCA2F3@b214tony>
Reply-To: "ForRelay@myhome"
From: "ForRelay@myhome"
To:
Subject: relay test from myhome
Date: Wed, 10 Jun 2009 09:40:16 +0800
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0062_01C9E9AF.75B7FAF0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
This is a multi-part message in MIME format.
------=_NextPart_000_0062_01C9E9AF.75B7FAF0
Content-Type: text/plain;
charset="big5"
Content-Transfer-Encoding: quoted-printable
nouser doese not exist in mail.mycompany.com.tw,to see if this mail will ret=
urn to myfriend.idv.tw
nouser=A8=C3=A4=A3=A6s=A6b=A9=F3mail.mycompany.com.tw,=AC=DD=B3Q=B0h=AE=C9=
=ACO=A7_=B7|=B0h=A8=ECedraton.idv.tw=
------=_NextPart_000_0062_01C9E9AF.75B7FAF0
Content-Type: text/html;
charset="big5"
Content-Transfer-Encoding: quoted-printable
nouser doese not exist in mail.mycompany.com.tw,to see i=
f this=20
mail will return to myfriend.idv.tw
size=3D2>nouser=A8=C3=A4=A3=A6s=A6b=A9=F3mail.mycompany.com.tw,=AC=DD=B3Q=B0=
h=AE=C9=ACO=A7_=B7|=B0h=A8=ECedraton.idv.tw
------=_NextPart_000_0062_01C9E9AF.75B7FAF0--
--C82781501D8.1244598072/mail.myhome.idv.tw--