Igor Chudov wrote:
> I use Spamassassin 3.1.1, and specified the following in my local.cf:
> 
> loadplugin     Mail::SpamAssassin::Plugin::RelayCountry

First: DO NOT put ANY loadplugin statements in your local.cf, unless you
understand the side-effects and intentionaly don't want the rules for the plugin
to be loaded.

Edit your init.pre for this one. All your loadplugin statements should be in
init.pre or v310.pre. The files should even have the statements in them already,
all you need to do is change which ones are commented out.

> add_header all Relay-Country _RELAYCOUNTRY_
> 
> When I run spamassassin from command line, it does set the
> Spam-Relay-Country header, BUT its value is always
> empty.

Where did you get the idea that _RELAYCOUNTRY_ would work here?

That feature is not present in SA 3.1.1 but is due to be released when SA 3.1.2
comes out.

http://issues.apache.org/SpamAssassin/show_bug.cgi?id=3815

However, SA does create a temporary fake header called "X-Relay-Countries". You
can write SA rules that will match this header, but it gets removed when SA is
done with the message.

At present there's no way for SA 3.1.1 or older to create a permanent header
with this info in it.

Reply via email to