I have been trying to setup the proper setting of the filtering in the exim.conf using the WHM's Advanced Exim Configuration, but it is little difficult to find where to place the following rules in to have it reject the email as it comes to the server. I have tried in three places, and it don't seems to work as intended. Basically, I am trying to have it filter by the $mime_charset and $h_content-type rules to block them. This is a snippet I have been using to try and filter them out accordly:
deny
message = Sorry, we do not read Chinese Spam.
condition = ${if eq{$mime_charset}{gb2312}{1}{0}}
log_message = "Non-English Spam Rejected from $sender_fullhost"
deny
message = Sorry, we do not read Chinese Spam.
condition = ${if match{$h_content-type:}{gb2312}{1}}
log_message = "Non-English Spam Rejected from $sender_fullhost"
The only issue is trying to have it placed in the proper area in the exim advanced configuration so it acts on it and rejects it accordly. I have 12 content-types rules to add but I need to get basic functionality working to add the rest in. The filter rules seems sound, but the spam still goes though, which indicate that it is not being acted on in the exim.conf ruleset areas.
I could use some help and ideas on proper ACL to place them to get it set.
deny
message = Sorry, we do not read Chinese Spam.
condition = ${if eq{$mime_charset}{gb2312}{1}{0}}
log_message = "Non-English Spam Rejected from $sender_fullhost"
deny
message = Sorry, we do not read Chinese Spam.
condition = ${if match{$h_content-type:}{gb2312}{1}}
log_message = "Non-English Spam Rejected from $sender_fullhost"
The only issue is trying to have it placed in the proper area in the exim advanced configuration so it acts on it and rejects it accordly. I have 12 content-types rules to add but I need to get basic functionality working to add the rest in. The filter rules seems sound, but the spam still goes though, which indicate that it is not being acted on in the exim.conf ruleset areas.
I could use some help and ideas on proper ACL to place them to get it set.