Reject non-English email

Article Details
URL: https://support.deerfield.net/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=66
Article ID: 66
Created On: Aug 11, 2004 03:11 PM

Answer
VisNetic MailServer
 
From the VisNetic MailServer Admin window:

Select Security - Content Filter (version 6 - 7) and in version 8 select Security, Filters, Content filtering tab.
 
Add the following filter
 
Conditions:
Where any message header matches some words
Description:
String Condition:
RegEx (Regular Expression)
String: ^(subject|from)\s*:.*[^\x00-\x7f]{5,}
Actions: Reject/Accept/Delete message: Reject
 
The example above would be satisfied only if the Subject: or From: header contained non-ASCII text (byte values > 127). You could test the body, to header or whatever by modifying the Conditions and Description.