StarDomain

How to Manage Spam Filters

How to Manage Spam Filters

Control spam delivery by configuring SpamAssassin and email filters on your {{COMPANY_NAME}} hosting.

SpamAssassin in cPanel

Enable SpamAssassin

  1. Log in to cPanel.
  2. Go to Email > Spam Filters.
  3. Toggle Process New Emails and Mark them as Spam to ON.

Adjust Spam Sensitivity

  1. Click Spam Threshold Score.
  2. Lower score = more aggressive filtering:

- 5 (default) — standard filtering.

- 3 — more aggressive (may catch some legitimate emails).

- 7 — more lenient (fewer false positives).

  1. Save.

Auto-Delete Spam

  1. Toggle Automatically Delete New Spam to ON.
  2. Spam emails scoring above the threshold are automatically deleted.

Warning: Be cautious with auto-delete. Start with marking as spam and review your junk folder regularly before enabling auto-delete.

Whitelist / Blacklist

  1. Click Additional Configurations or Show Additional Configurations.
  2. Under whitelist_from, add email addresses that should never be marked as spam.
  3. Under blacklist_from, add addresses that should always be treated as spam.

SpamAssassin in DirectAdmin

  1. Log in to DirectAdmin.
  2. Go to E-Mail Manager > Spam Filters or SpamAssassin.
  3. Enable SpamAssassin.
  4. Configure the score threshold.
  5. Add whitelist/blacklist entries.
  6. Save.

Email Filters (Custom Rules)

In cPanel

  1. Go to Email > Email Filters.
  2. Click Create a New Filter.
  3. Set rules:

- From contains `newsletter` → Move to folder or Discard.

- Subject contains `[SPAM]` → Move to Spam folder.

  1. Click Create.

In Roundcube Webmail

  1. Go to Settings > Filters.
  2. Create rules to auto-sort or delete emails.

Tips for Reducing Spam

  1. Never post your email address publicly on websites.
  2. Use contact forms instead of email links.
  3. Use SPF, DKIM, and DMARC to protect against spoofing.
  4. Train SpamAssassin by marking emails as spam or not spam.
  5. Consider using a catch-all address only if necessary.

Need help? Contact our support team at {{SUPPORT_URL}}/client/support.