Phil,
Does the query need to return a list of addresses, or does it just need to
return some data? In other words is this sort of thing possible.
course_lists:
driver = forwardfile
domains = courses.anaheim.bath.ac.uk
no_more
senders = ldap;ldap:///o=bath.ac.uk?mail?sub?\
(&(uid=\${local_part:\$sender_address})(employeetype=staff))
file = /opt/lists/${uc:local_part}
forbid_pipe
forbid_file
no_check_local_user
--On 06 November 2000 11:42 +0000 Philip Hazel <ph10@???> wrote:
> On Mon, 6 Nov 2000, Paul Christie wrote:
>
>> Is it possible to do an ldap query instead of supplying an address list
>> to 'senders'?
>
> senders = ldap;ldap:///...ldap query...
>
> within the ldap query, you can use $key to refer to the sender address
> that is being checked. Because "senders" is expanded as a whole before
> each item on its list is processed, you actually need to use \$key so
> that the initial expansion doesn't touch it. When it finds a query on
> the list, it expands it again, because it always expands a query on a
> list [not all lists are expanded in toto at the start].
>
>
> --
> Philip Hazel University of Cambridge Computing Service,
> ph10@??? Cambridge, England. Phone: +44 1223 334714.
>
Paul Christie
University of Bath Computer Services