Beyond SpamAssassin scoring, DirectAdmin lets you define custom spam filter rules for finer control over incoming mail.
Create a filter rule
- Go to Email Manager → SPAM Filters (or Spam Filters under Advanced Features).
- Select the domain or mailbox.
- Click Add Filter.
- Define conditions — match sender, subject, body text, or headers.
- Choose an action: discard, move to folder, or mark as spam.
- Save the rule.
Example rules
- Block mail containing specific keywords in the subject.
- Allow all mail from your company domain.
- Reject messages from known bad senders.
Test new rules carefully. Overly aggressive filters may block legitimate mail.