This article describes how to use cPanel's e-mail filtering capabilities to process incoming messages from a specific IP address or range of IP addresses. For example, you may want to automatically delete all incoming messages from an IP address.
You can enable filtering for a specific user, or for all users on your account.
All e-mail messages contain in their headers information about their origin. By examining the message headers, you can determine which IP address or addresses you want to filter.
In the raw e-mail message headers, look for the IP address that you want to filter. The IP address is often in the Received: header.
After you know which IP address or addresses you want to filter, you are ready to set up filtering in cPanel. To do this, follow these steps:
Locate the account for which you want to add a filter, and then click Manage Filters.
To create a global e-mail filter, click Global Email Filters:
If you are using the Paper Lantern theme, in the EMAIL section of the cPanel home page, do one of the following:
Locate the account for which you want to add a filter, and then click Manage Filters.
To create a global e-mail filter, click Global Email Filters:
In the next text box, type the following regular expression (also known simply as a “regex”). Replace xxx with the digits of the specific IP address you want to filter:
^xxx\.xxx\.xxx\.xxx$
Alternatively, you can filter a range of IP addresses. For example, the following regular expression matches the last 256 addresses in the network:
^xxx\.xxx\.xxx\.[0-9]{1,3}$
For more information about IP addressing, please visit https://en.wikipedia.org/wiki/IP_address.
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.