From: henders254 on
I am trying to query AD and sendmail is not giving me the address
back. Here's the relevant part of my sendmail.cf

LDAPDefaultSpec=-h"ad1.domain.tld"
Kstaff ldap -1 -T<TMPF> -b "ou=staff,dc=ad1,dc=domain,dc=tld" -v
mail -k (proxyAddresses=SMTP:%0)

I am testing from the sendmail -bt mode.

I guess I am doing something wrong in my rule.

Any help on this would be much appreciated. Thanks.

From: Erich Titl on
henders254(a)gmail.com wrote:
> I am trying to query AD and sendmail is not giving me the address
> back. Here's the relevant part of my sendmail.cf
>
> LDAPDefaultSpec=-h"ad1.domain.tld"
> Kstaff ldap -1 -T<TMPF> -b "ou=staff,dc=ad1,dc=domain,dc=tld" -v
> mail -k (proxyAddresses=SMTP:%0)
>
> I am testing from the sendmail -bt mode.

Please post the entries from your .mc file.

These are my entries

dnl
dnl LDAP Configuration
dnl
define(`confLDAP_DEFAULT_SPEC', `-h "srvd-dc01-shl.foo.bar" -b
"DC=FOO,DC=BAR" -d "CN=query,OU=ressourcen,DC=FOO,DC=BAR"
-MLDAP_AUTH_SIMPLE -P/etc/mail/ldap_pass')dnl
LDAPROUTE_DOMAIN_FILE(`/etc/mail/ldap_route_domains')dnl
FEATURE(`ldap_routing', `null', `ldap -1 -T<TMPF> -v mail -k
(&(|(objectclass=user)(objectclass=group))(proxyAddresses=smtp:%0))',
`bounce')dnl

cheers

Erich