Apply RBL to X-Originating-IP: header

Steve Freegard steve.freegard at
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: []
> Has some written some code to match this against RBL's or even country
> lists?

SA does this by default - in

   for my $header ('X-Originating-IP', 'X-Apparently-From') {
     my $str = $self->get($header);
     next unless $str;
     push (@originating, ($str =~ m/($IP_ADDRESS)/g));


More information about the MailScanner mailing list