Client area
Back to all guides SpicyHost help ยท DirectAdmin

Block unwanted email in DirectAdmin

Stop mail from a sender, a whole domain, or containing certain words, and choose whether it's deleted or moved to your spam folder.

1

Log in to your control panel

Open the control panel address from your welcome email. It ends in :2222, for example yourdomain.co.uk:2222. Enter your username and password, then click Sign in.

Control panel login page
The login page.
2

Open SPAM Filters

If you have more than one domain, pick the domain first from the list on Home. Then find the E-Mail Management section and click SPAM Filters.

DirectAdmin home page with SPAM Filters highlighted
Click SPAM Filters under E-Mail Management.
3

Choose what happens to blocked mail

At Action for filter matches, pick one and click Save on that row:

  • Send to spambox: blocked mail goes to the Spam folder in webmail and your mail app, so you can check it and get back anything blocked by mistake. We recommend this.
  • Drop Email: blocked mail is deleted straight away and can't be recovered.

The page has four ways to block mail, one per row:

  • A specific e-mail address, such as offers@annoying-shop.com.
  • An entire domain, such as annoying-shop.com, which blocks every address there.
  • A word anywhere in the email.
  • Mail larger than a size in KB, such as 20000 for about 20 MB.
E-Mail Filters page with the four block rows and the action for filter matches row highlighted
The action applies to every filter on this page.
4

Add a block

Type the address, domain, word or size in the box on the right row, then click Block on that same row. Only that row is saved.

For a domain, type just the domain, with no @ and no www.

Block mail from an entire domain row filled in with hotmail.com
Only an example. Blocking hotmail.com would stop mail from every Hotmail user.
5

Check it's listed, or remove it

The block now shows in the list. To remove one, tick Select next to it and click Delete Selected.

Filter list showing Block the following domain hotmail.com
Each block you add appears as its own row.

Good to know

These filters are for senders you know. For general spam, use Spamassassin Setup under E-Mail Management, which scores every incoming email and filters likely spam automatically.