[Mimedefang] Validating Exchange addresses

Graham Dunn gdunn at inscriber.com
Tue Oct 7 09:42:01 EDT 2003


On Tue, Oct 07, 2003 at 07:41:06AM -0500, John Rowan Littell wrote:
> 
> Lo, Kenneth Porter and the coffee pot sang in unison:
> 
> > Inspired by some samples, I've come up with the following one liner that seems
> > to get all addresses from an Exchange server:
> >
> > ldapsearch -h "$server" -x -P2 -s sub "objectclass=*" | awk '/^mail:/{print
> > $2;}'
> >
> [snip]
> >
> > Is this going to miss anything? Is there a more efficient way to make the
> > query? (I'm an LDAP newb with only the glossiest idea of its query system.)
> 
> Be nice to your LDAP server and only request the mail attribute.  Your
> ldapsearch command would then look like:
> 
> ldapsearch -h $server -x -P2 -s sub "objectclass=*" mail

Both of these return:

version: 2

#
# filter: objectclass=*
# requesting: mail 
#

# search result
search: 2
result: 11 Administrative limit exceeded

# numResponses: 1
 
Is this something that needs to be adjusted in Exchange (5.5)?

Graham



More information about the MIMEDefang mailing list