I am currently using the Relay Country plugin for SpamAssassin. I have written rules similar to the ones found on the wiki page for the plugin. Example: header RELAYCOUNTRY_FR X-Relay-Countries=~/FR/ describe RELAYCOUNTRY_FR Relayed through France score RELAYCOUNTRY_FR 0.1
I am finding that every day I get Spam sent to my users from several new countries. This requires me to have to write new rules for these countries. The list is getting quite long. What I would like to know is: is there a way to write a rule to award points to countries not listed? For my case I get legit mail from the following country codes: US, CA, and FR. If the countries the mail is relayed through is not one of these, I would like to Bump the SA score by; 1.0 point. Can I do this? If so how? I have not found a way, via regular expressions to say; not this, or this, or this. It seems regular expressions always work in the affirmative not the negative. I believe I may have found the answer (So thank you for hanging in there, I am reading.) Would this be the correct rule? Example: header RELAYCOUNTRY_UCF X-Relay-Countries!~/US|CA|FR/ describe RELAYCOUNTRY_UCF Relayed through Country other than US, CA, and FR score RELAYCOUNTRY_UCF 1.0 Points I am not sure about: UCF at the end of RELAYCOUNTRY_. Does this need to be a valid country code? or is it only part of the rule name? Is the "!~/US|CA|FR/" the right way to say Not US or CA or FR? Thanks in advance for all your help. -Rap -- View this message in context: http://old.nabble.com/RelayCountry-Plugin-tp31652314p31652314.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.