Hi,
I'm trying to block a certain TLD (.co) on cpanel using a regex match. I've setup a following global email filter using from with regex matches rule:
And I've tested the filter and reported working
But still being accepted by our email regardless of the email rule. Any thoughts or am I doing something wrong?
I'm trying to block a certain TLD (.co) on cpanel using a regex match. I've setup a following global email filter using from with regex matches rule:
Code:
@.*\.co$
And I've tested the filter and reported working
Code:
Sub-condition is false: not first_delivery
Condition is false: not first_delivery and error_message
Match expanded arguments:
Subject = [email protected]
Pattern = @.*\.co$
Condition is true: $header_from: matches @.*\\.co\$
Condition is false: error_message
Return-path copied from sender
Sender = [email protected]
Recipient = [email protected]
Testing Exim filter file "/etc/vfilters/ourdomain.com"
Headers charset "UTF-8"
Fail text "REJECT"
Filtering ended by "fail".
But still being accepted by our email regardless of the email rule. Any thoughts or am I doing something wrong?
Last edited by a moderator: