How to activate and configure Anti-Spam feature in SonicWall firewalls (CASS 1.0)
03/26/2020
108
16221
DESCRIPTION:
Anti-spam - How to activate and configure Anti-Spam feature in SonicWall UTM appliances (CASS 1.0)
NOTE: These intructions are for UTM devices running below 5.6.3.0 firmware. For instructions on configuring CASS v2.0 please refer to this article.
Key points for CASS from a firewall perspective:
1. Only 1 mail server can be used.
2. Mail server must reside in the LAN.
3. CASS does not support redundant WAN connections.
4. Inbound port 25 traffic cannot be bundled with any other services.
Key points for CASS from junkstore perspective:
1. Mail server must reside in the LAN.
2. Java should remain the same version.
3. Although possible, CASS should not be installed on an SBS server.
4. Although possible, CASS should not be installed on an exchange server.
5. Sonicwall Directory Services / SSO for access should not be required.
6. Requiring valid certificates on the junkstore is currently not supported.
7. For troubleshooting purposes, CASS should be installed on a server that can be rebooted.
Installation points:
1. Server 2008 and before should use 7.4.6
2. Server 2012 should use 7.6.1
3. Server 2016 can use 7.6.4
4. UAC needs to be disabled for the install to work. In 2012 and 2016 there is a registry setting that must be changed as well.
Deactivating User Access Control Windows Server 2012
Disable User Access Control with Group Policy Windows Server 2016
RESOLUTION:
Activating Anti-Spam (CASS 1.0):
Once you have registered Anti-Spam, activate it to start your firewall-level protection from spam and phishing messages.

Configuring Anti-Spam:
When Anti-Spam for SonicOS is activated, set your preferences. Once these are configured, your email will be filtered and sorted according to your configuration
Settings:
The Email Threat Category Settings section enables administrator to set default settings for users’ messages. Choose default settings for messages that contain spam, phishing, and virus issues. Use the dropdown options to choose how to to handle messages in each threat category. Your options are:
Filtering off: SonicWall SonicOS does not filter messages for this type of threat. All messages of this type are passed through to the recipient.
Tag With: The email is tagged with a term in the subject line, for example, [JUNK] or [Possible Junk?]. Selecting this option allows the user to have control of the email and can junk it if it is unwanted.
Store in Junk Box (default setting): The email message is stored in the Junk Box. It can be unjunked by users and administrators with appropriate permissions. This option is the recommended setting but junk store must be installed for this to work.
Reject Mail: The message is returned to sender with a message indicating that it was not deliverable.
Permanently Delete: The email message is permanently deleted.
CAUTION: If you select this option, your organization risks losing emails.
Use the Email Domains setting to select the number of domains your organization is using. If you are using more than one domain, choose the Multiple Domains option.
User-defined Access Lists: Designate which clients are allowed to connect to deliver email. You can also set clients to be automatically rejected.
Advanced options allow you to set the following:
Setting Description:
Allow/Reject delivery of unprocessed mails when SonicWall Anti-Spam Service is Unavailable: If the Anti-Spam service is not enabled or unavailable for some other reason, you can choose to let all unprocessed emails go through. Spam messages will be delivered to users, as well as good email. If the setting is reject, no email will be delivered until the Anti-Spam Service is re-enabled.
Tag and Deliver/Reject/Delete emails when SonicWall Junk Store is unavailable: If the SonicWall Junk Store cannot accept spam messages, you can choose to delete them, reject them, or deliver them with cautionary subject lines such as [Phishing] Please renew your account”
Probe Interval: Set the number of minutes between messages to the monitoring service.
Success Count Threshold: Set the number of successes required to report a success to the monitoring service.
Failure Count: Threshold Set the number of failures required to report a failure to the monitoring service.
Server Public IP Address: The IP address of the server that is available for external connections (MX record).
Server Private IP Address: The IP address of the server for internal traffic (Mail server).
Inbound Email Port: The port your UTM has open to receive email from outside sources.
Enable Subsystem Detection: It should be enabled.
Installing the Junk Box on Exchange Server (If you have any other mail server anti-spam junk store won’t work):
Anti-Spam for SonicOS can create a Junk Store on your Microsoft Exchange Server. The Junk Store quarantines messages for end-user analysis and provides statistics. Log in to your Exchange system, then open a browser and log in to the SonicWall Web management interface, and install the Junk Store.
Step 1 Log in to your Exchange system, and on that system, open a web browser and log in to the SonicWall Web Management Interface.
Step 2 On the Anti-Spam > Settings page, click the Junk Store Installer icon to install the Junk Store on your Exchange Server (Don’t navigate to any other page or the download will break).
Figure: Junk Store Installer

Step 3 Your browser may warn you that the Web site is trying to load the SonicWall Email Security add-on. Click in the Information Bar and select Install ActiveX Control in the popup menu.
Step 4 On the Security Warning screen, click Install.
Step 5 On the Anti-Spam > Settings page, click the Junk Store Installer icon again. A progress bar is displayed on the page, changing color as it nears completion.
Step 6 The installer launches when it is fully downloaded. Migrating data in the Junk Store may take a long time. Wait for the data migration to complete.
Step 7 Approximately 15 minutes after the Junk Store is installed, the Junk Store status changes to Operational on the Anti-Spam > Status page.
Figure: Checking the Junk Store status

Note: If the server has another application using Tomcat (Web server used by Junk Store), then junk store may not run. Please contact support for such issues.
Statistics:
Use this page to view the statistics on how many messages are being blocked by your Anti-Spam for SonicOS feature. The type of message blocked and the number are listed.
Junk Box Summary:
SonicWall SonicOS sends an email message to users listing all the messages that have been placed in their Junk Box. Users can unjunk items listed in the Junk Box Summary email by clicking links in the email.
To manage the Junk Box summary:
Step 1 Choose Frequency of Summaries from the drop-down box.
Step 2 Choose the dates and times to receive email notification.
Step 3 Choose whether to include in message summary All Junk Messages or Likely Junk Only (hide definite junk).
Step 4 Choose Language of summary emails from the drop-down list.
Step 5 Choose a plain or graphics rich summary.
Step 6 Set Single Click Viewing of messages to Full access.
Step 7 Select to send summary only to users in LDAP. (Won’t work in CASS 1.0)
Step 8 Select Email from which summary will be sent. Message summary can come from the individual user or another email address which you enter here.
Select the name to be displayed in end user’s email client for the summary emails.
Subject: Enter the subject line for the Junk Box Summary email.
URL for User View: This text box is filled in automatically based on your server configuration and is included in the Junk Box Summary email. Clicking on the email link will allow users to unjunk messages. The URL should be like http://<IP Address of Junk Store or Exchange server>:10080
Step 9 Click the Apply Changes button.
Junk Box View:
This will store all the junked emails. Administrator can unjunk or delete the emails.
Some important points:
1. Make sure that anti-spam is licensed.
2. Before enabling anti-spam please ensure that none of the service groups are using SMTP as one of the service.