KBA-01959

How to run the SpamAssassin (SpamD) process on a separate server from SecurityGateway

This article explains how to set up SecurityGateway to utilize a SpamAssassin process on another server on your network. You may wish to do this in order to free up more resources on your server if you have a large number of messages to process; or if you have more than one SecurityGateway server and want to use the same SpamAssassin settings, rules, and Bayesian database for all.

To run the SpamAssassin process on a separate server, follow these instructions:

  1. Copy the 'Program Files\Alt-N Technologies\SecurityGateway\SpamAssassin' folder and its content and subfolders from the original server to the new one. The path on the destination server does not have to match the old path.
  2. Create a batch file named 'run-spamd.cmd', with the following commands: cd x:\SpamAssassin sgspamd -C x:\SpamAssassin\default_rules --siteconfigpath=x:\SpamAssassin\rules -x -m5 -D -A 192.168.1.0/24 -i 192.168.1.1
  3. Replace the drive letter and paths in the batch file with the correct drive letter and paths in your environment
  4. The value for -A is the allowed IP address(es) that can connect to the SpamAssassin daemon. You can use a single IP host or CIDR notation as in the example above.
  5. The value for -i is the IP address for the server SGSpamD will be running on.
  6. Save and run the batch file, then configure SecurityGateway as below.

To configure SecurityGateway to use the remote SpamAssassin process, log into SecurityGateway. From the Dashboard:

  1. Click on Security in the lower-left corner
  2. Locate the Anti-Spam section
  3. Click on Heuristics and Bayesian
  4. On the right, under Location (All Domains), select the option 'Use a remote SpamAssassin daemon (SpamD)'
  5. In the Host Address box specify the address of the server where the remote process is located
  6. If you are using a port other than the default (783) enter it in the Port box
  7. Click on the Test button to verify that SecurityGateway can connect successfully to the remote SpamAssassin process

Additional Comments.

Note that these settings will affect the entire server, and cannot be configured for individual domains.

Related Articles

KBA-01895 Configuring spam-scoring and Bayesian-learning options in SecurityGateway