Re: [exim] REGEX help - Picking IP addresses out of Received…

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: John W. Baxter
Fecha:  
A: exim users
Asunto: Re: [exim] REGEX help - Picking IP addresses out of Received Headers
On 6/6/07 10:01 AM, "Marc Perkel" <marc@???> wrote:

> So - What I need is a regular expression to grab say the second or third
> IP address back in the list and stick that into a variable that I can
> use then to look up against blacklists. Or perhaps grab the last, second
> to the last IP addresses.


You'll want to avoid looking up 127.0.0.2 in the DNS-based blacklists, as it
by convention is marked as bad. (If you mean your own blacklists, that may
or may not apply.)

--John