Producing addresses list from Microsoft Exchange for Symantec Email Security.cloud Address Registration.
Email Security.cloud
There are two versions of the command that extracts user data from the Exchange server. One produces a list of email addresses from one domain and all of its subdomains. The other enables you to select domains and subdomains from which to produce the list.
To produce an address list from a single high level Active Directory domain and all of its subdomains:
ldifde -f filename.txt -l proxyaddresses -r "(proxyaddresses=*smtp:*@*)" A text file called filename.txt containing your valid email addresses is produced.To produce an address list from a specific Active Directory location:
ldifde -f filename.txt -d "dc=subsub,dc=sub,dc=domain,dc=com" -l proxyaddresses -r "(proxyaddresses=*smtp:*@*)".This command contains the information that you must supply in italics; for example, the name of the .txt file that is produced (filename.txt). The dc= values identify the required location in the Active Directory. Use as many of the dc= values as are required. For example, the command above produces a user list from the subsub.sub.domain.com Active Directory domain structure.
Note: The *smtp: *@* filter in the command above ensures that only current valid email addresses are produced. You can amend this filter to your requirements, if necessary.