Filtering incoming e-mail messages by IP address

To filter IP addresses in cPanel email, you need to:

  1. Log in to your cPanel account by following the guide in Accessing cPanel.

  2. Open the filtering tool:                                                                                                                                                                                     Email Filter.png

  3. Choose the type of filter you want to create:

    • To create a filter for a specific email account, click on "Email Filters" and then select the account you want to add a filter to.
    • To create a global email filter, click on "Global Email Filters":                                                                                Global Email Filters.png
  4. Click on "Create a New Filter".

  5. In the "Filter Name" text box, enter a name for the filter.

  6. Under "Rules", select "Any header" from the "From" list box.

  7. In the "contains" list box, select "matches regex".

  8. In the next text box, enter the regular expression for the specific IP address you want to filter. Replace "xxx" with the digits of the IP address. For example, if you want to filter the IP address 192.168.0.1, the regular expression would be "^192.168.0.1$". If you want to filter a range of IP addresses, you can use a regular expression like "^192.168.0.[0-9]{1,3}$".

  9. Make sure the regular expression is not too broad to avoid unintentionally filtering messages you want to receive. 

  10. Under "Actions", select what to do with messages that match the filter, such as discarding the message, sending it to a specific folder, or redirecting it.

  11. Click on "Create". The new filter will take effect immediately.

By following these steps, you can easily filter IP addresses in cPanel email and manage your incoming messages more effectively.

Was this answer helpful?

Related Articles

550 Sender verify failed error message

The "550 Sender verify failed" error message typically occurs when the sender's email...

Accessing cPanel

There are three ways you can access your cPanel account and either way will work. You can search...

Accessing phpMyAdmin and phpPgAdmin

To access phpMyAdmin and phpPgAdmin in cPanel, follow these steps: Log in to your cPanel...

Accessing the Managed Team feature in cPanel

To access the Manage Team feature on TurnupHosting, follow these steps: Log in to cPanel by...

Accessing webmail clients directly

To provide users with direct access to a specific webmail client when they log in, you can...