Hello,
I am trying to enable Email logging on a Business Central 17 on-prem installation.
Followed the setup guide, however the Email Logging Wizard cannot finish since connection to Exchange Online cannot be established:

In the Application log the following message is logged:
Server instance: BC170
Category: ExchangeAuthentication
ClientSessionId: 26e24a99-1c5f-403f-8ccc-d77bbd8e396c
ClientActivityId: ea08e4df-1205-48e9-830d-ca64f11a3ff2
ServerSessionUniqueId: 00000000-0000-0000-0000-000000000000
ServerActivityId: 4e11ce41-f37b-4b2f-a491-4f532552e0b7
EventTime: 11/24/2020 09:01:01
Message (AutodiscoverLocalException): RootException: AutodiscoverLocalException
The Autodiscover service couldn't be located.
ExceptionStackTrace:
at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.InternalGetLegacyUserSettings[TSettings](String emailAddress, List`1 redirectionEmailAddresses, Int32& currentHop)
at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.GetLegacyUserSettings[TSettings](String emailAddress)
Any ideas?
Thanks,