Re: [exim] protected addresses ACL

Top Page
Delete this message
Reply to this message
Author: Tony Finch
Date:  
To: Giles Constant
CC: exim-users
Subject: Re: [exim] protected addresses ACL
On Wed, 2 Feb 2005, Giles Constant wrote:
>
> I'm trying to create a "protected addresses" ACL to protect mailing lists such
> that certain email addresses can only be sent to from certain IP addresses,
> possibly by using some sort of lsearch:
>
> address1@???: 10.2.1.5 : 127.0.0.1 : 14.23.19.1
> address2@???: 192.168.0.1 : 14.23.19.1
> address@???: 11.4.3.219
>
> I was thinking along these lines, but I'm not quite sure how to finish it off:
>
> acl_smtp_rcpt:
>   # blah blah
>   accept local_part = lsearch;/path/protected-addresses
>          endpass
>          verify = recipient
>          hosts = ${lookup{$address}lsearch{/path/protected-addresses}

>
> Any suggestions?


You need a }

You can use $local_part_data instead of the ${lookup.

I'm wondering why you think you need anything more, unless you were having
syntax problems...

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}