Reject non-English email

Article Details
Article ID: 66
Created On: Aug 11, 2004 03:11 PM

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
Where any message header matches some words
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.