Re: [Exim] Persistent address_data

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Russell Wilton
CC: exim-users
Betreff: Re: [Exim] Persistent address_data
On Fri, 15 Nov 2002, Russell Wilton wrote:

> get_ldap_data:
> driver = redirect
> address_data = LISTBYADDR
> data =
>
> class_mlist:
> driver = redirect
> senders = ${tr{${LSTMEMB}}{,}{:}}
> data = ${LSTMEMB}
>
> where LISTBYADDR is a macro to do the LDAP search and LSTMEMB is a macro
> to extract the member email addresses from the associated LDAP
> attribute. The first router gets the LDAP entry and then declines. The
> second router then uses the LDAP data to check that the sender is a
> member of the list before routing the message. This works fine if the
> list exists, but if the first router fails to find an LDAP entry, the
> second router uses whatever was left in address_data by previous
> routers.


If LISTBYADDR is a lookup, you have the opportunity to specify what
should be put in $address_data if there is no LDAP entry. All lookups
can specify yes/no strings.


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.