Cole Tuininga wrote:
> ! domains =
> ${lookup{$authenticated_id}lsearch{/etc/exim4/restricted_accounts}{$value}{*}}
...
> data = ${lookup{$local_part}lsearch*{/etc/exim4/aliases/$domain}}
So /etc/exim4/aliases/example.com contains "bob example-bob" and
/etc/exim4/restricted_accounts contains "example-bob
example.com:example.org"?
Looks a little strange, but this should work (unless my logic is broken):
deny ! sender_domains = ${lookup {\
${lookup {$local_part} lsearch* {/etc/exim4/aliases/$domain}}\
} lsearch {/etc/exim4/restricted_accounts} {$value}{*}}
You should probably verify the sender before this ACL rule, so the inner
lookup returns always a result.