问题描述:
使用Outlook for Mac的用户反馈在外网环境下突然无法使用邮箱,内网环境下正常使用。
排查问题:
经检查发现Outlook for Mac在Exchange模式使用了Exchange EWS进行邮箱的连接,通过检查公司CAS服务器的EWS配置发现未配置外部URL,通过配置外部URL后问题解决。
解决步骤如下:
- 检查EWS配置信息:
Get-WebServicesVirtualDirectory |fl Server,ExternalUrl,InternalUrl
- 发现未配置ExternalUrl,接下来配置
Get-WebServicesVirtualDirectory -Server CASHUB01|Set-WebServicesVirtualDirectory -ExternalUrl https://www.contoso.com/EWS/Exchange.asmx
Get-WebServicesVirtualDirectory -Server CASHUB02|Set-WebServicesVirtualDirectory -ExternalUrl https://www.contoso.com/EWS/Exchange.asmx
- 检查是否配置成功
Get-WebServicesVirtualDirectory |fl Server,ExternalUrl,InternalUrl
注意:默认情况下EWS权限下是开通的,也可以检查账号是否开启EWS权限。
查询组织是否开启Ews,缺省值为开启
Get-OrganizationConfig|fl EwsEnabled
检查个人账号是否开启Ews:
Get-CASMailbox -identity example.contoso.com|fl name,Ewsenabled
个人账号开启Ews
Set-casmailbox -identity example.contoso.com -EwsEnabled:$true