Apply RBL to X-Originating-IP: header
Steve Freegard
steve.freegard at fsl.com
Mon Dec 8 00:00:29 GMT 2008
Hi Hugo,
Hugo van der Kooij wrote:
> Hi,
>
> Hotmail adds the IP address of the sender to the headers like this:
> X-Originating-IP: [79.185.246.69]
>
> Has some written some code to match this against RBL's or even country
> lists?
SA does this by default - in EvalTests.pm
for my $header ('X-Originating-IP', 'X-Apparently-From') {
my $str = $self->get($header);
next unless $str;
push (@originating, ($str =~ m/($IP_ADDRESS)/g));
}
Cheers,
Steve.
More information about the MailScanner
mailing list