I have a word filter to avoid spam from some .domains inside /usr/local/cpanel/etc/exim/sysfilter/options/custom_words
it works well, although I experience problems with a few legitimate senders who are using ".top" in their email adrresses
like: "richard.top[email protected]"
Their messages also are discarded.
My only way to avoid this problem is including exceptions in this way:
although I'm looking for a better automatic way to solve this issue.
I cannot find enough information inside Exim docs about the $h_from variable. I wonder if there is some valid way to
specify a better expression, something like:
$h_from: contains "@*.top"
to delimitate the filter action to the last part of the sender address
thanks for any help
Code:
if
$h_from: contains ".top" or
$h_from: contains ".pro" or
$h_from: contains ".xyz" or
$h_from: contains ".bid"
and $h_from: does not contain "legitimatedomain.com"
then
seen finish
endif
it works well, although I experience problems with a few legitimate senders who are using ".top" in their email adrresses
like: "richard.top[email protected]"
Their messages also are discarded.
My only way to avoid this problem is including exceptions in this way:
Code:
and $h_from: does not contain "legitimatedomain.com"
although I'm looking for a better automatic way to solve this issue.
I cannot find enough information inside Exim docs about the $h_from variable. I wonder if there is some valid way to
specify a better expression, something like:
$h_from: contains "@*.top"
to delimitate the filter action to the last part of the sender address
thanks for any help