InMotion Hosting Support Center

Blocking email sender by IP address


Dawes
Asked:
2018-10-06 1:40 pm EST

Hits: 255
I'm using Spam Experts as my spam filter and it works pretty well. However, even though I blacklist various spammers they still show up in my Quarantine because they are spoofing email addresses.
I figure I could get rid of some of the spammers if I could block by sender IP ranges, but it doesn't appear that I can do that via Spam Experts.

If I want to continue with Spam Experts *and* also block email senders by IP ranges can I use/ should I use either "Global Filters" or SpamAssassin? Is one better than the other for this purpose? What format to use for either? i.e. CIDR, regex... ??

Thanks!
Ken

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

carlosd
Staff
3,862 Points
2018-10-08 10:46 am EST
Hello Ken.

Thanks for posting your question regarding using cPanel's Global Filters or SpamAssassin to block emails received from a specified IP address. Neither of these programs are designed to block IP addresses. I reviewed a forum post that describes how to use SpamAssassin and your own custom RBL (blacklist). You can add each IP address to the blacklist and have SpamAssassin assign a high score to those matched email messages.

Additionally, you could use the "Any Header" filter in cPanel's Global Filters to try and match an IP address. In this case, you would need to specify each IP address in each rule.

I hope this helps.
Sincerely,
Carlos D

You must login before you can post a comment about this answer.

Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!