Configuring Spam Filters
DirectAdmin uses SpamAssassin for spam filtering.
Enable SpamAssassin
- Log in to DirectAdmin → Spam Filters.
- Enable SpamAssassin.
- Set the score threshold (default 5; lower = stricter).
- 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
_domainkeyrecord. - DMARC:
TXT _dmarc "v=DMARC1; p=none; rua=mailto:postmaster@yourdomain.com"
Contact support if your emails are ending up in recipients' spam folders.