How to Block Unwanted Emails

Unwanted email falls into two groups: a specific sender you want gone, and the steady drip of spam from everywhere. JetHost gives you a tool for each – a filter to block a known sender, and a spam filter to catch the rest. This guide shows how to set up both from your mailbox and cPanel.

Block a specific sender

To stop mail from one address or domain, add a filter that discards it:

  1. Log in to your webmail and open Email Filters, or use Email Filters in cPanel.
  2. Create a new filter. Set the condition to From contains the address (or the whole domain, like @spammer.com).
  3. Set the action to Discard, or move it to a folder if you’d rather review it. Save.

Our full guide to creating email filters covers conditions and actions in detail. To block a sender for every mailbox on the domain, use global email filters instead.

Cut the general spam

For the broader flood you can’t name sender by sender, turn to the spam filter. In cPanel, Spam Filters (Apache SpamAssassin) scores each message and can move or delete the obvious junk. Our guide to email spam filters walks through switching it on and tuning how strict it is.

Block or filter – which to use

Block a sender when you know exactly who to stop – one address or one domain. Lean on the spam filter for everything else, since new junk arrives from new addresses every day and a blocklist alone can never keep up. Most people run both: a short blocklist for repeat offenders, and the spam filter underneath it.

JetHost Experts Tip

Prefer “move to a folder” over “discard” while you test a new block. Discarded mail is gone for good, so a junk folder lets you catch a wrongly blocked message before you delete it.

Frequently asked questions

Does blocking a sender tell them?

No. The filter works quietly on your side – the sender gets no notice and keeps sending into nothing.

Can I block a whole domain?

Yes. Set the filter condition to From contains @thedomain.com and it stops every address at that domain.

Why does some spam still get through?

Spammers change addresses constantly. A blocklist stops the ones you name; the spam filter handles the rest. Run both for the best result.

New Hosting Plan with 80% OFF

Upgrade your website’s home without the heavy bill. Get new hosting plan with a huge 80% discount and enjoy reliable performance, free SSH access, and full Linux terminal support. Run commands, manage files, and configure your hosting directly. Perfect for developers, power users, or anyone who prefers the control of a Linux environment.

Need more help?

Still buried in unwanted email? Open a ticket through Client Area → Support Tickets and we’ll help you set up the right filters.