Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
   header          RELAYCOUNTRY_BAD X-Relay-Countries =~ /CN/
   describe        RELAYCOUNTRY_BAD Relayed through China at some point
   score           RELAYCOUNTRY_BAD 3.0

   header          RELAYCOUNTRY_GOOD X-Relay-Countries =~ /^(FI|SE)/
   describe        RELAYCOUNTRY_GOOD First untrusted relay is Finland or Sweden :-)
   score           RELAYCOUNTRY_GOOD -0.2

You can get a A list of 2-letter ISO 3166 country codes can be found from http://www.iso.org/iso/country_codes/iso_3166_code_lists/. Note that the plugin itself adds few special types: private IPs are marked with '**' (two asterisks) and IPs not found in database are marked with 'XX'.

You can get find a list of countries that statistically relay most spam for example from http://www.spamhaus.org/statistics/countries.lasso. Be careful not to score too much or too many, email is global by nature.

You can also It's also possible to add a separate MIME header that shows all the message's relay countries, independent of the rules:

...