First Steps After Installation

Open Razor, Pyzor, and DCC Firewall Ports

Make sure that you opened up the correct ports on the Plesk firewall. The network tests will not work if the ports are not properly opened.

  1. Razor requires that port 2703 TCP OUT be opened.
  2. Pyzor requires that port 24441 UDP IN / OUT be opened.
  3. DCC requires that port 6277 UDP OUT be opened.

Configure Locale Settings

Specify which locales are considered OK for incoming mail. Mail using the character sets that are allowed by this option will not be marked as possibly being spam in a foreign language. If you receive lots of spam in foreign languages, and never get any non-spam in these languages, this may help.

  1. Navigate to Warden -> Settings -> Anti-spam Settings.
  2. Under Locale Settings select the locales you want to enable. Most users will only need Western character sets in general checked.
  3. Click the Update button to save your settings.

Configure Network Settings

  1. Navigate to Warden -> Settings -> Network Settings.
  2. Under Trusted Networks enter what networks or hosts are "trusted" in your setup. Trusted in this case means that relay hosts on these networks are considered to not be potentially operated by spammers, open relays, or open proxies. A trusted host could conceivably relay spam, but will not originate it, and will not forge header data. DNS blacklist checks will never query for hosts on these networks.
  3. Click the Update button to save your settings.

Install and setup DCC (optional but recommended)

DCC is not installed by default because it is not open source but is still highly recommended. We recommend that you install and setup DCC so that you can use it:

See https://docs.danami.com/warden/user-guide/antispam-plugins/dcc

Increase the default scanning size for Spamassassin (optional)

By default Plesk only scans emails smaller than 256K in size. We recommend raising this limit.

Edit the file /etc/psa/psa.conf and raise the limit to something more reasonable like 768K

# SpamAssassin max mail size (in bytes)
SA_MAX_MAIL_SIZE 768000

Then restart spamassassin:

service spamassassin restart

Enable Spam Filtering on all accounts (optional)

If this is the first time running SpamAssassin and you want to enable spam filtering for all mailboxes on the server then run the following command:

for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select concat(mail.mail_name,\"@\",domains.name) as address from mail,domains,accounts where mail.dom_id=domains.id and mail.account_id=accounts.id order by address"`; do /usr/local/psa/bin/spamassassin -u $i -status true ; done