Matt Kettler wrote: > [EMAIL PROTECTED] wrote: > >> Well, then how do I get SA to read the headers and exclude >> some IP addresses? Surely there is a command for that - or a >> box to fill out - or a custom config. I need something to exclude >> all those bothersome emails from Japan, Nigeria, China, etc. >> >> > The normal way to do this in SA would be to use the RelayCountry plugin, > and add on rules that match the countries you want to tag. > > RelayCountry automatically identifies what countries the IP's in the > received: path are from. > > Once RelayCountry is loaded you can just add rules with country codes: > > header RELAY_CN *X*-*Relay*-*Countries*=~/\bCN\b/ > describe RELAY_CN Relayed through china > score RELAY_CN 1.0 > > > header RELAY_KR *X*-*Relay*-*Countries*=~/\bKR\b/ > describe RELAY_KR Relayed through Korea > score RELAY_KR 1.0 >
Erk! How'd those *'es get in there.. Evil conversion from HTML bold-text styles I guess.. Here they are corrected: header RELAY_CN X-Relay-Countries=~/\bCN\b/ describe RELAY_CN Relayed through china score RELAY_CN 1.0 header RELAY_KR X-Relay-Countries=~/\bKR\b/ describe RELAY_KR Relayed through Korea score RELAY_KR 1.0