Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Stop spam emails in DirectAdmin

Spam is unwanted email. This guide shows you how to filter it with the tools in DirectAdmin.

DirectAdmin2 min read12 steps6 screenshots

What is spam filtering?

A spam filter is like a mail sorter at a post office. It checks each letter. Junk goes in one pile and real mail goes in another. In DirectAdmin, a tool called SpamAssassin does this checking. It gives each email a score. A high score means the email looks like spam.

Your plan may or may not include SpamAssassin. If you cannot find the tools below, ask Hostvento support.

Turn on SpamAssassin

  1. Log in to DirectAdmin.
  2. Click Spam Filters in the email section. You can also use the search box at the top.
  3. Choose your domain.
  4. Tick Enable SpamAssassin.
  5. Choose what should happen to spam. You can delete it or move it into a spam folder. Moving it is safer, because you can check for mistakes.
  6. Set a score limit. A lower number catches more spam but may catch real mail too. Start with the default.
  7. Click Save.

Block one sender

  1. Open E-mail Filters in the email section, if your account has it. You can also create filters in Roundcube webmail.
    Screenshot: Open E-mail Filters in the email section, if your account has it. You can also create filt
    Screenshot: Open E-mail Filters in the email section, if your account has it. You can also create filt
  2. Click Create Filter.
  3. Choose a rule, such as From contains the sender's address.
  4. Choose an action, such as Discard or Move to folder.
  5. Click Save.

Block words or a whole domain

Use the same filter page. Pick Subject or From. Then type a word or part of an address, like @spamdomain.com. Be careful with short words. They may block good emails too.

Screenshot: Use the same filter page. Pick Subject or From . Then type a word or part of an address, l
Screenshot: Use the same filter page. Pick Subject or From . Then type a word or part of an address, l
Tip: Check your spam folder every few days at first. If a real email ended up there, lower the score limit or remove the rule that caught it.

Good habits

  • Never reply to spam.
  • Do not click links in strange emails.
  • Do not post your email address openly on websites.
    Screenshot: Do not post your email address openly on websites.
  • Use a strong password for each email account.

If spam keeps coming after these steps, open a support ticket.

Quick recap

  • SpamAssassin scores emails and finds likely spam.
  • Turn it on in Spam Filters and choose to move spam to a folder.
  • Use E-mail Filters to block one sender or word.
    Screenshot: Use E-mail Filters to block one sender or word.
  • Check the spam folder often for good emails caught by mistake.