Block Email With Certain Subject On Specific Domain
How can i block email with certain subject on specific domain ?
-
In the specific users CPanel, you can do this in Account Level Filtering. Maybe there's a way to modify the config file at ssh level. 0 -
Hello, You can create a custom Exim system filter file with the following code on your server to block mail with the subject. if $header_subject: contains "YOUR SUBJECT TO BLOCK" then fail text "Your mail is not welcome." seen finish endif0 -
Hello, You can create a custom Exim system filter file with the following code on your server to block mail with the subject.
if $header_subject: contains "YOUR SUBJECT TO BLOCK" then fail text "Your mail is not welcome." seen finish endif
The custom filter is not working properly, it also blocked emails with other subject. I have created filter on this path: nano /etc/vfilters/domainname0 -
it also blocked emails with other subject.
Hello :) Could you let us know the exact filter rule you created? Also, please use the "Account Level Filtering" option in cPanel to ensure all required files are populated correctly. Thank you.0
Please sign in to leave a comment.
Comments
5 comments