Hello,
I have configured the Task Synchronization between SharePoint 2013 and Exchange 2013 but the Sync is not working.
I used the settings
described in:
https://technet.microsoft.com/en-us/library/jj554516.aspx
and
https://technet.microsoft.com/en-us/library/jj655399.aspx
Our Environment Looks like this:
We have an internal Exchange Server "Mail1.contoso.local" with an external URL: "webmail.contoso.de" (registered in ECP Outlook Anywhere)
Our Mail-Addesses are: @contoso.local; @contoso.com(Default); @contoso.de
We get the following error in the ULS-Log:
07/10/2015 08:10:44.33 OWSTIMER.EXE (0x3430) 0x2600 SharePoint Foundation Claims
Authentication airzh Medium Using UPN'Guido.Neubecker@contoso.de' for SMTP claim
...hTTP/1.1 401 Unauthorized request-id: bf1dbf62-7257-43ba-ad55-9faaa509b206 Content-Length: 0 Server: Microsoft-IIS/8.0 Microsoft-HTTPAPI/2.0 WWW-Authenticate: Bearer client_id="00000002-0000-0ff1-ce00-000000000000", trusted_issuers="00000003-0000-0ff1-ce00-000000000000@72a7e6f2-749b-431f-9b7a-90dd93bd0fec",
error="invalid_token",Negotiate,NTLM X-FEServer: Mail1 x-ms-diagnostics: 2000003;reason="The hostname component of the audience claim value is invalid. Expected 'Mail1.contoso.local'. Actual 'webmail.contoso.de'.";error_category="invalid_resource"...
07/10/2015 08:10:44.35 OWSTIMER.EXE (0x3430) 0x2C4C SharePoint Portal Server Exchange Task Synchronization aje6l Medium [bucketHash:8E346E85] [Exchange Sync f97aa26f-4d79-45fc-8116-42d9734de72c 61] Exception when validating connection for user. Exception details follow. Type: 'Microsoft.Exchange.WebServices.Data.ServiceRequestException',
message: 'The request failed. The remote server returned an error: (401) Unauthorized.'
07/10/2015 08:10:44.35 OWSTIMER.EXE (0x3430) 0x2C4C SharePoint Portal Server Exchange Task Synchronization aje44 Monitorable [Exchange Sync f97aa26f-4d79-45fc-8116-42d9734de72c 61] The url obtained via autodiscovery was not valid for the user. Urlhttps://webmail.contoso.de/ews/exchange.asmx 2544583d-6fc2-4952-9c12-032b661e8e4c
It seems to me that SharePoint uses the external URL via autodiscover instead of the internal but all the
configuration settings,
described in the TechNet Articles
above, where made with the internal URL.
Also something strange is that the SMTP Claim is
Guido.neubecker@contoso.de
which is not our default Mail-Domain.
Any Ideas?