PDF(5.2 KB) View with Adobe Reader on a variety of devices
Updated:August 20, 2014
This document explains how to test your Anti-Spam setup by sending a sample spam message through your Cisco Email Security Appliance (ESA). First, you need to make sure that Anti-Spam is enabled on the server. This can be verified by logging on to the web interface and selecting 'Security Services' tab and then 'Anti-Spam', and make sure it is enabled. Also make sure that your Incoming Mail Policies have Anti-Spam settings enabled. You can confirm that by going to 'Mail Policies' then 'Incoming Mail Policies', and modify the policy spam settings by clicking on the hyperlink under Anti-Spam.
After you have configured your Incoming Mail Policies to take appropriate actions on the spam messages, log on to the CLI of your ESA. We are going to generate a sample spam message with "X-Advertisement: spam" header in the mail message. Telnet to your appliance at port 25 and initiate SMTP conversation as showed in the below example.
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:firstname.lastname@example.org 250 sender <email@example.com> ok rcpt to:firstname.lastname@example.org 250 recipient <email@example.com> ok data 354 go ahead X-Advertisement: Spam Subject: testing spam filter data spam test . 250 ok: Message 44 accepted quit
Type in 'tail mail_logs' on the CLI of your ESA to watch the message coming in and the output should look something like it is shown below:
The result in the mail logs show that the message was identified as Spam positive and was dropped as defined in the Anti-Spam incoming mail policy. Please verify that the ESA is taking the appropriate actions as defined in your Anti-Spam settings.