we’re currently migrating from Exchange Server 2008 to 2013. We use an own coded application with Outlook Redemption, which cannot logon to the new Exchange Server 2013. In the old version of our application we used the function RDOSession.LogonExchangeMailbox
, which is no longer supported by Exchange 2013 (RPC). We updated our application for Outlook Redemption 5.21 and cannot logon to mailboxes that are stored on the Exchange 2013 server. Both servers are online and can receive and send mails.
The code in our application to logon to a mailbox is something like:
Dim objRDOSession As Redemption.RDOSession = Nothing
objRDOSession = CreateObject("Redemption.RDOSession")
objRDOSession.LogonHostedExchangeMailbox("<USERMAIL@DOMAIN>", "", "")
If we logon to a mailbox that is still stored on the old Exchange 2008 server everthing works fine. But if we try to logon a mailbox on the new Exchange 2013 server, the call of LogonHostedExchangeMailbox(…) throws the exception:
GetAutodiscoverForEmailAddress: There are no autodiscover servers in the AD for this address
Error in WinHttpSendRequest(<DOMAIN>/autodiscover/autodiscover.xml): ERROR_WINHTTP_CANNOT_CONNECT
Error in WinHttpSendRequest(autodiscover.<DOMAIN>/autodiscover/autodiscover.xml): ERROR_WINHTTP_NAME_NOT_RESOLVED
Error in WinHttpSendRequest(autodiscover.<DOMAIN>/autodiscover/autodiscover.xml): ERROR_WINHTTP_NAME_NOT_RESOLVED
GetAutodiscoverUrlFromDns error: DNS lookup error using <IPDNSSERVER1>:DNS Server Reports Query Name Error
DNS lookup error using <IPDNSSERVER2>:DNS Server Reports Query Name Error
We tried to assign an “Autodiscover” A-Record for the mailserver and a SRV-Record “_autodiscover”:
GetAutodiscoverForEmailAddress: There are no autodiscover servers in the AD for this address
Error in WinHttpSendRequest(<DOMAIN>/autodiscover/autodiscover.xml): ERROR_WINHTTP_CANNOT_CONNECT
HTTP error 401 from https://autodiscover.<DOMAIN>/autodiscover/autodiscover.xml
Server response:
Expected HTTP_STATUS_REDIRECT, received 403
GetAutodiscoverUrlFromDns error: DNS lookup error using <IPDNSSERVER1>:DNS Server Reports Query Name Error
DNS lookup error using <IPDNSSERVER2>:DNS Server Reports Query Name Error
We can see the virtual directory of Autodiscover but not of mapi. We’re not sure why the mapi virtual directory is not shown, because the commandlet says there is one. Virtual Directories Mapi Virtual Directory
We used the autoconfiguration test from Outlook 2016 and it worked perfectly. It showed MapiOverHttp as used protocol: Outlook 2016 Autoconfiguration test
I hope I have given someone an idea to our problem and he/she can help us to connect to our mailboxes. Thanks!
RDOSession.LogonExchangeMailbox
with a username and password, the following exception is thrown: Error in IMAPISession::OpenMsgStore: MAPI_E_LOGON_FAILED ulVersion: 0 Error: The information store could not be opened. Component: MAPI 1.0 ulLowLevelError: 0 ulContext: 646 – mika