[Exim] Regex problem

Top Page
Delete this message
Reply to this message
Author: ODHIAMBO G. Washington
Date:  
To: exim-users
Subject: [Exim] Regex problem
Ok, when it comes to these regexes, I just get brain dead.

# Please, don't teergrube people you relay for you or your own MXes :-)

I am looking at SA-Exim and this regex for SAteergrubecond.

I would like to speficy my sender_host_addresse using netblocks.
How do I rewrite this so that the condition expands to true only
if the sender_host_address is not within any of the THREE netblocks of
a.b.c.d/25 and w.x.y.z/25 and 1.2.3.4/24 ??


${if and { {!eq {$sender_host_address} {a.b.c.d/24}} \
           {!eq {$sender_host_address} {w.x.y.z/24}} \
           {!eq {$sender_host_address} {1.2.3.4/24}} \
         }{1}{0}}



There is something I am missing in between. A 'third eye' is welcome.


-Wash

--
Odhiambo Washington   <wash@???>  "The box said 'Requires
Wananchi Online Ltd.  www.wananchi.com      Windows 95, NT, or better,'
Tel: +254 2 313985-9  +254 2 313922         so I installed FreeBSD."
GSM: +254 72 743223   +254 733 744121       This sig is McQ!  :-)



Talking much about oneself can also be a means to conceal oneself.
        -- Friedrich Nietzsche