cPanel Email Filter for IP Range

I recently needed to block a large amount of incoming email via IP range in cPanel for a single account versus blocking the IP range on the entire server. This was accomplished using cPanel’s Account Level Filtering for Mail.

Here is the filter setting using as an example.

Any Header
matches regex

Discard Message

cpanel mail filter