Skip to main content

cpanel_exim_system_filter block by subject

Comments

3 comments

  • rpvw
    For filters using the "contains" evaluation; try using the AND operator instead of the OR operator
    0
  • cPanelLauren
    Hi @z3d3m0n I'd go with the recommendation by @rpvw, I'd also always create the filter in cPanel's Global/User filters then copy that syntax. I did something like this for you: if $header_subject: contains "Your accounts was hacked" or $header_subject: contains "Your accounts was compromised" then if error_message then save "/dev/null" 660 else fail "No spam here" endif finish endif
    Keep in mind the full subject needs to match what's in the quotes for this to work as well including caps and spelling
    0
  • websnail.net
    Word to the wise here... If you're "System Filter File" is set to anything other than the default, your custom filters will never been compiled into the filters but the system won't actually tell you... Ours was set to "/etc/antivirus.empty" for reasons I can't quite remember but it was only when I physically applied the custom filters to that file and then restarted exim that I found the rules were being applied. Reverting the setting back to the default and lo' all our custom filters started working properly... Lot of time wasted so thought I'd best share in case anyone else gets here in frustration too.
    0

Please sign in to leave a comment.