现象
Exchange邮箱的备份和/或恢复失败,消息如下:
Cannot open public folder or mailbox user@domain.com
Access is denied.
Failed to connect to Microsoft Exchange API using url '{0}'
uri: https://%my_public_domain_address%/EWS/Exchange.asmx
Where %my_public_domain_address% is your public mail server address.
问题原因
Exchange配置不正确,内部URL指向您的公用邮件服务器地址。
Acronis Cyber Backup在恢复期间使用Exchange Web服务(EWS)的URL,并从Exchange获取此设置。
要验证环境中的当前设置,请打开Microsoft Exchange命令行管理程序并运行以下请求:
Get-WebServicesVirtualDirectory
查看输出中的内部URL参数。
内部URL应指向:
1)如果这是独立的Exchange server:
精确到该机器的FQDN
https://server.domain.local/EWS/Exchange.asmx
2)如果那是集群的一部分
指向群集中CAS节点的内部URL(具有CAS角色的一个节点的主机名)
解决方法
作为一种解决方法,您可以在Acronis注册表设置中强制使用正确的EWS Uri。
1.检查这是独立服务器还是群集,以查找所需的URI。
如果是独立服务器,请使用Exchange服务器的FQDN,例如:https://myserver.domain.local/EWS/Exchange.asmx
其中myserver.domain.local是Exchange服务器的FQDN。
如果是群集,请将Exchange节点的FQDN与CAS角色一起使用,例如:https://myexch02.domain.local/EWS/Exchange.asmx
其中myexch02.domain.local是具有CAS角色的Exchange节点的FQDN。
2.配置URI以访问当前服务器上的EWS:
1)在Exchange计算机上打开Windows注册表编辑器(regedit),然后转到HKEY_LOCAL_MACHINE\Software\Acronis\BackupAndRecovery\ArxAgent\Settings\
2)创建一个名为EwsUri的新字符串值,并将以下值设置为步骤1中的值。
DO NOT put url that you found in Internal-Url from output of Get-WebServicesVirtualDirectory
3)重新尝试备份恢复。