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

Góra strony
Delete this message
Reply to this message
Autor: John W. Baxter
Data:  
Dla: exim users
Temat: 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