Hi Marco,

thanks for your answer.

So third block is router.

And first and second ? Where can i put here ?

First on main exim config ?
Second on transport exim config ?

Sorry for my stupid question !

Why there is not template on https://www.exim.org/ ?
Nobody use exim as mta on ldap/AD ?

Benoît

Le 07/05/2020 à 22:55, Marco Gaiarin via Exim-users a écrit :
LOCAL_AD_SERVERS = vdcsv1.ad.fvg.lnf.it::3268
LOCAL_AD_BASE_DN = ${quote_ldap:OU=FVG,DC=ad,DC=fvg,DC=lnf,DC=it}
# You have to create a user to access the LDAP/AD server
LOCAL_AD_BIND_DN = ${quote_ldap:CN=mta,OU=Restricted,DC=ad,DC=fvg,DC=lnf,DC=it}
LOCAL_AD_PASS = "nontelado"


Then:

.ifdef LOCAL_AD_SERVERS
ldap_default_servers = LOCAL_AD_SERVERS
ldap_start_tls = true
ldap_require_cert = never
.endif


so, a query:

.ifdef LOCAL_AD_SERVERS

user_ad_aliases:
   debug_print = "R: user_ad_aliases for $local_part@$domain"
   driver = redirect
   domains = +local_domains
   data = ${lookup ldap {user=LOCAL_AD_BIND_DN 
pass=LOCAL_AD_PASSldap:///LOCAL_AD_BASE_DN?uid?sub?(&(objectClass=user)(!(objectClass=computer))(mail=${quote_ldap:${local_part}}@${quote_ldap:${domain}}))}}

.endif

<<attachment: bpelissier.vcf>>

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to