Block IPs from sending you email InMotion Hosting ContributorUpdated on August 16, 2021 1 Minute Read In this article I’m going to quickly go over how you can block certain IP addresses from being able to send you email. Even with spam filtering enabled you could possibly be continuing to get spam email from one particular IP address, or even a range of IP addresses. Using user level or account level mail filtering in cPanel is a great way to stop this type of activity from happening! Account level mail filter to block IP range In this example, I’m going to be using a fictional IP range of [256.256.256.0 – 256.256.256.256] and adding that to an account level mail filter in cPanel, so that I don’t receive anymore spam from any users on that network. Login to your cPanel. Under the Mail section, click on Account Level Filtering. Click on Create a New Filter. Name the filter Block IPs, under the Rules section change the From drop-down to Any header, and change the equals drop-down to contains. In the field below those type in 256.256.256. or the beginning of the IP address range you’d like to block, or just a full single IP address to block just one. Under the Actions section, you can leave it set to Discard Message to simply discard it, or select one of the other actions. Finally click on Create. That’s all there is to it, and you should now know how to block IP addresses from sending you email on an account level! Share this Article InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles Transferring Emails from Your Old Host to InMotion Hosting How to Setup Office 365 DNS Records How to fix OLMAPI32.dll and WWLIB.dll error in Outlook 2013 How to Setup Outlook 2016 for Mac Issues with Outlook 2007 Running on Windows 10 Outlook not working after installing Windows 10 IMAP Issues Affecting Outlook 2013 and Office 365 Outlook 2013/Office 365 – Subscribing to your Inbox How to create an email signature in Outlook 2003 How to create an email signature for Mac in Outlook 2011