I don't have the knowledge to get this working, isn't there a much easier
way to accomplish what I need?
Would it be possible to create a hardcoded list of e-mail adresses that
need to be forwarded to the Exchange Server
Something like:
Adres1@???
Adres2@???
Adres3@???
These addresses need to be forwarded to the external Exchange server.
If the adres is not on this list, it has to be delivered to the local
server.
>
>So, you need to add something like this:
>
>condition = ${if eq {${lookup ldap {\
> user=AD_USER \
> pass=AD_PASS \
> ldap://AD_HOST/\
> AD_BASE?\
> proxyAddresses?\
> sub?\
>
>proxyAddresses=${quote_ldap:SMTP:$local_part@$domain}} \
> {true}{false}}}\
> {true} }
>
>And set the macros AD_USER AD_PASS AD_HOST and AD_BASE to the correct
>values for your AD server.