outbound mail filter not working
Hi, I wonder if someone can help.
Scenario: We use WHMCS and a client has requested not to receive certain emails. WHMCS nas no way to disable a specific email to a specific recipient. I can disable a specific email, for everyone though, but not for a single client.
At the same time, certain senders who send proof of payments, send the proof of payment emails from a "noreply" email, resulting in the ticket reponse emails to always generate mail delivery reports.
What I want to do:
1) Filter outbound email from our WHMCS domain to this client (and other with the same request) blocking the emails he doesn't want to receive.
2) Filter outbound emails to certain banks and other senders with a "noreply" email address.
What I tried, without success:
1) In cPanel > Email Filters > "Manage Filters" next to the support department email (same email that's setup in WHMS > Setup > General Settings > Email), I have added the following:
[LIST]
Filter Name: WHMCS
Rules: I selected "Subject" and "contains" in the 2 drop downs and typed in "filter test"
On the right I selected "and" on the drop down, and then + to add another rule
Then I selected "To" and "contains", and typed an email address (own of my own for this test).
On the "Actions" drop down I selected "Discard Message"
Then I Added a 2nd rule as above, named it "noreply" and added an email "noreply@mydomain (which I setup for this test.
Then, in WHMC I sent an email to noreply@mydomain, and received it.
I also sent an email to my email address with the subect "filter test" and received it.
In both cases I shouldn't have received it, but did.
how do I get these filters to work?
-
Hello, The email filter options in cPanel are designed to filter incoming email. You can customize the Exim system filter if you want to apply a filter to outgoing email. Information about modifying the Exim system filter is documented at: How to Customize the Exim System Filter File - cPanel Knowledge Base - cPanel Documentation Thank you. 0 -
Thanx, I have submitted a feature request for this as I feel that doing it as root won't always help. The feature request can be found here: outgoing email filter for end users 0
Please sign in to leave a comment.
Comments
2 comments