本文檔說明如何透過思科郵件安全裝置(ESA)傳送垃圾郵件示例來測試反垃圾郵件設定。首先,您需要確保在伺服器上啟用反垃圾郵件。這可以透過登入網路介面並依次選擇「安全服務」頁籤和「反垃圾郵件」進行驗證,並確保其已啟用。另外,請確保您的傳入郵件策略已啟用反垃圾郵件設定。您可以轉到「郵件策略」(Mail Policies)再轉到「傳入郵件策略」(Incoming Mail Policies)來確認這一點,然後點選「反垃圾郵件」(Anti-Spam)下的超連結來修改策略垃圾郵件設定。
在配置接收郵件策略以對垃圾郵件採取適當操作後,請登入到ESA的CLI。我們將在郵件中生成標頭為「X-Advertisement: spam」的垃圾郵件示例。Telnet至埠25上的裝置並啟動SMTP會話,如下例所示。
example.domain.com> telnet mail.example.com 25
Trying 172.19.1.93...
Connected to mail.example.com.
Escape character is '^]'.
220 mail.example.com ESMTP
ehlo example.com
250-example.com
250-8BITMIME
250 SIZE 104857600
mail from:test@example.com
250 sender <test@example.com> ok
rcpt to:test2@example.com
250 recipient <test2@example.com> ok
data
354 go ahead
X-Advertisement: Spam
Subject: testing spam filter
data
spam test
.
250 ok: Message 44 accepted
quit
在ESA的CLI中鍵入「tail mail_logs」以檢視傳入的消息,輸出應如下所示:
Tue Apr 26 16:33:48 2005 Info: Start MID 44 ICID 28
Tue Apr 26 16:33:48 2005 Info: MID 44 ICID 28 From: <test@example.com>
Tue Apr 26 16:33:53 2005 Info: MID 44 ICID 28 RID 0 To: <test2@example.com>
Tue Apr 26 16:34:18 2005 Info: MID 44 Message-ID '<41faeo$1c@example.com>'
Tue Apr 26 16:34:18 2005 Info: MID 44 Subject 'testing spam filter'
Tue Apr 26 16:34:18 2005 Info: MID 44 ready 84 bytes from <test@example.com>
Tue Apr 26 16:34:18 2005 Info: MID 44 matched all recipients for per-recipient
policy DEFAULT in the inbound table
Tue Apr 26 16:34:18 2005 Info: MID 44 Brightmail positive
Tue Apr 26 16:34:18 2005 Info: Message aborted MID 44 Dropped by case
Tue Apr 26 16:34:18 2005 Info: Message finished MID 44 done
Tue Apr 26 16:34:21 2005 Info: ICID 28 close
郵件日誌的結果顯示,郵件被辨識為垃圾郵件呈陽性,並按照反垃圾郵件傳入郵件策略中的定義被丟棄。請驗證ESA是否正在採取您的反垃圾郵件設定中定義的相應措施。
修訂 | 發佈日期 | 意見 |
---|---|---|
1.0 |
20-Aug-2014 |
初始版本 |