|
From time to time you may want to setup some special text based rules for xamime to trap "cagey" spam or other unwanted email. Below is a sample of how to add a Spam Check test for an email which carries a "geocities" http link in its body (These are generally spam).
Choose an approriate acl to place the rule in. Add 2 new "Text String Test" as below.... Text = http://.*\.geocities\.com Comment = Probably Spam - Geocities Link!! Test Mode = Deny Text = http://geocities Comment = Probably Spam - Geocities Link!! Test Mode = Deny The important thing to note is the regexp syntax, especially for special characters. The above text aims to catch any link which is a subdomain of geocities.com The reason is that in regex, a * means "any multiple of the -previous- character. Thanks to Paul Daniels, author of Xamime , for the solution. |