ZhangHuangbin wrote:ldapsearch -x -D 'cn=vmailadmin,dc=iredmail,dc=org' -W "(mail=your_alias@domain.ltd)"
I get this:
# extended LDIF
#
# LDAPv3
# base <> with scope subtree
# filter: mail=administrador@grecasa.org
# requesting: ALL
#
# administrador@grecasa.org, Aliases, grecasa.org, domains, grecasa.org
dn: mail=administrador@grecasa.org,ou=Aliases,domainName=grecasa.org,o=domains
,dc=grecasa,dc=org
objectClass: mailAlias
mail: administrador@grecasa.org
enabledService: displayedInGlobalAddressBook
cn: administrador
accountStatus: active
mailForwardingAddress: lcsuarez@testing.com
mailForwardingAddress: lcsuarez@testing.ltd
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1