Custom spam rule: Which element is responsible?

larsen

Well-Known Member
Feb 28, 2020
158
18
58
Hello,

I have setup a custom spam rule that contains multiple elements for filtering against reply-to, subject, etc.. This custom rule is linked in "Mail Filter > Rules".
It wouldn't be feasible to create a single rule for each element.

Now, when a mail is rejected, in the logs I can only see "Rejected for policy reasons".
Is there a way to find out which element of my custom rule was responsible?


Lars
 
Now, when a mail is rejected, in the logs I can only see "Rejected for policy reasons".
Is there a way to find out which element of my custom rule was responsible?
only the rule-name is logged - not the individual element in the object

one thing you could do is to split it up at least to some degree
 
I would still have quite a long list after splitting up. Besides, it would be a bit clumsy.

Could the logging be improved to e.g. include the element ID?
At least if the list wasn't changed after a mail was blocked, this would precisely tell me what to look for.
 
Could the logging be improved to e.g. include the element ID?
afaict not easily - the information is not really present at the step where the logging happens

I also don't think that many setups would need that - so would for now not put it on a todo list