[Exim] RE: [exiscanusers] IP checking

Top Page
Delete this message
Reply to this message
Author: Smith, A.D.
Date:  
To: exiscanusers, exim-users
Subject: [Exim] RE: [exiscanusers] IP checking
Just trying another way around it .... which doesn't work either!!

exiscan_spamd_condition = ${if and \
        {{eq{"143"}{${extract{1}{"."}{$host_address}}}}\
        {eq{"210"}{${extract{2}{"."}{$host_address}}}}}\
        {1} {0} \
}


Any ideas as to why I can't get this working would be most gratefully received!!
(I have tried escaping the .s with a \ .... "\." would that make any difference? I have also tried $sender_host_address to no avail)

Cheers,

Alex


-----Original Message-----
From: Nico Erfurth [mailto:masta@perlgolf.de]
Sent: Wednesday, May 14, 2003 12:13 PM
To: Tom Kistner
Cc: Smith, A.D.; exiscanusers@???
Subject: Re: [exiscanusers] IP checking


Tom Kistner wrote:
> Smith, A.D. wrote:
>
>> Yup that's the code that causes the error .... I assume it's
>> implamented as follows:
>>
>> exiscan_spamd_condition = ${if eq \
>>     {${mask:${host_address}/16}}\
>>     {${mask:${sender_host_address}/16}}\
>>     {0} {1}\
>> }

>
>
> Did you see the extra brackets I have put in there? I thought

they might
> help :)


Shouldn't be a difference :)

I hope you tested this with a real connection, not with -bh or so, I
don't think that -bh sets $host_address.

exim -d+lookup could be useful here.

Nico