Make global filter under cPanel account?
Hi, I'd like to make a global filter, to put all emails containing `****SPAM****` in the Junk folder.
This works fine if I make an email filter, but then I need to make an individual filter for each email account:
However, if I turn this same filter into a global filter, it doesn't work. Exim's logs return this:
In my global filter, if I do logwrite ${local_part}\+Junk\@${domain}, it returns the intended email account, testing+Junk@domain.tdl, but when the filter runs deliver ${local_part}\+Junk\@${domain}, $local_part loops +junk+ over and over and my log overflows. What am I doing wrong? I've been looking at EXIM's documentation and trying to get this to work, but I always end up in the same outcome. I appreciate any help, thanks
headers charset "UTF-8"
if not first_delivery and error_message then finish endif
#X-MagicSpam-Spam-Global
if
$message_headers contains "X-MagicSpam-Spam"
then
deliver "\"$local_part+Junk\"@$domain"
endif
However, if I turn this same filter into a global filter, it doesn't work. Exim's logs return this:
testing+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+junk+Junk@domain.tdl
In my global filter, if I do logwrite ${local_part}\+Junk\@${domain}, it returns the intended email account, testing+Junk@domain.tdl, but when the filter runs deliver ${local_part}\+Junk\@${domain}, $local_part loops +junk+ over and over and my log overflows. What am I doing wrong? I've been looking at EXIM's documentation and trying to get this to work, but I always end up in the same outcome. I appreciate any help, thanks
Please sign in to leave a comment.
Comments
0 comments