I am running SA 3.1.8, and I'm having issues implementing the RelayCountry plugin. I followed the Wiki/PerlDoc page, but have not had any success.
I have the IP::Country::Fast /usr/lib/perl5/vendor_perl/5.8.8/IP/Country /usr/lib/perl5/vendor_perl/5.8.8/IP/Country.pm /usr/lib/perl5/vendor_perl/5.8.8/IP/Country/Fast /usr/lib/perl5/vendor_perl/5.8.8/IP/Country/Fast.pm /usr/lib/perl5/vendor_perl/5.8.8/IP/Country/Fast/cc.gif /usr/lib/perl5/vendor_perl/5.8.8/IP/Country/Fast/ip.gif /usr/lib/perl5/vendor_perl/5.8.8/IP/Country/MaxMind.pm /usr/lib/perl5/vendor_perl/5.8.8/IP/Country/Medium.pm /usr/lib/perl5/vendor_perl/5.8.8/IP/Country/Slow.pm When running spamassassin at the command-line in debug mode I see: <snip> [26693] dbg: plugin: loading Mail::SpamAssassin::Plugin::RelayCountry from @INC [26693] dbg: plugin: registered Mail::SpamAssassin::Plugin::RelayCountry=HASH(0x1fa3c520) <snip> [26693] dbg: plugin: Mail::SpamAssassin::Plugin::RelayCountry=HASH(0x1fa3c520) implements 'extract_metadata' [26693] dbg: metadata: X-Relay-Countries: US <snip> However, the header is never added. In init.pre, I have individually tried each: add_header all Relay _RELAYCOUNTRY_ add_header all Relay_Country _RELAYCOUNTRY_ add_header all Relay-Country _RELAYCOUNTRY_ add_header all X-Relay-Countries _RELAYCOUNTRY_ I tried each of the above, following posts I found online. I got the impression it varried depending on the version you wer running. The wiki references SA 3.1.0. Regardless, none of them added the header. I'm sure I'm missing something simple. Any input is appreciated. Thanks, Dave