I was able to figure how to get it to work but would still like to know how to query an Exchange IMAP server for the settings. This is what I did to get it to work:
I configured my thunderbird with the internal IMAP settings:
Incoming:
IMAP:143
account_name:theman
server_name:<ip-address>
security settings:STARTTLS
Auth_Method:NTLM
Outgoing:
server_name:<ip-address>
port:587
Auth_Method:NTLM
For the GAL or Global Address Book, I setup an LDAP connection for the GAL:
using DavMail and only the LDAP checked:
Local LDAP:1389
IMAP auto Expunge:checked
Enable EWS:checked
nothing else
and in Thunderbird I created an AddressBook:
Name:GAL
hostname:localhost
BaseDN
u=people
port:1389
BindDN:<username>
and BAM all worked well. I used this website listed above as a reference so good luck: