Back to Knowledge Base
Knowledge Base Email & Webmail Configuring Spam Filters

Configuring Spam Filters

Email & Webmail 30/11/2026

DirectAdmin uses SpamAssassin for spam filtering.

Enable SpamAssassin

  1. Log in to DirectAdmin → Spam Filters.
  2. Enable SpamAssassin.
  3. Set the score threshold (default 5; lower = stricter).
  4. Choose the action: Move to spam folder is recommended.

Whitelist & Blacklist

Add to the SpamAssassin custom rules:

whitelist_from sender@example.com
blacklist_from spammer@badsite.com

Prevent Your Outgoing Mail Being Flagged as Spam

Ensure these DNS records exist for your domain:

  • SPF: TXT @ "v=spf1 include:your-server ~all"
  • DKIM: Auto-generated by DirectAdmin — check DNS Management for a _domainkey record.
  • DMARC: TXT _dmarc "v=DMARC1; p=none; rua=mailto:postmaster@yourdomain.com"

Contact support if your emails are ending up in recipients' spam folders.

Was this article helpful?