spamassassin-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RW <>
Subject Re: X-Relay-Countries not working
Date Tue, 27 Nov 2018 14:02:29 GMT
On Tue, 27 Nov 2018 12:51:40 +0200
Brent Clark wrote:

> Good day Guys
> I have the following spam email, and I picked up that the plugin 
> 'Mail::SpamAssassin::Plugin::RelayCountry', is not picking up Korea.

Try running it through

  spamassassin -D metadata 1>/dev/null 

and look for debug about what database type is being used. I've found
that the plugin will fallback to the 'fast' version if anything is
wrong and it only shows up in detailed debug.

> header   RELAYCOUNTRY_BAD X-Relay-Countries
> =~ /^(CN|RU|SU|IN|BR|UA|KR)/ describe RELAYCOUNTRY_BAD Relayed
> through foreign countries score    RELAYCOUNTRY_BAD 1.0
> add_header all Relay-Country _RELAYCOUNTRY_
> In my testing, I added ZA, and it picked up for IP
> Also, does anyone know why the is in square brackets.

Usually it's to indicate that it's an IP address.

View raw message