Re: [exim] detecting local IP in exim filter

Top Page
Delete this message
Reply to this message
Author: David S. Madole
Date:  
To: Chris Jensen, exim-users
CC: 
Subject: Re: [exim] detecting local IP in exim filter
From: "Chris Jensen" <cjensen@???>
>
> Ok, I now have
> add "${if
> match_address{$sender_host_address}{+relay_from_hosts}{1}{0}}" to n1
>
> Which results in
> unknown named address list "+relay_from_hosts"
>
> I've also tried $relay_from_hosts
> which gives
> unknown variable name "relay_from_hosts"
>
> relay_from_hosts is defined in the config by
> hostlist relay_from_hosts = 127.0.0.1


Well, yes, I suppose that now we are through the syntax errors, the whole
thing you are trying to do just doesn't make sense anyway. I wasn't
really looking that deep.

Your problem is that match_address matches email addresses, not host
addresses. As such, it takes an address list, not a host list.

What is it you are trying to accomplish again?

Probably you would be better off checking the sending host address
against your address list in the HELO or MAIL ACL and setting an ACL
variable, then referencing that in your filter.

David