上一篇文章我们安装好了Exchange2016,下面来修改Exchange2016SCP、Anywhere配置、证书等
运行EMS修改SCP(Service-Connection-Point)
Set-ClientAccessService -Identity EX2016-AutodiscoverServiceInternalURI https://autodiscover.域名.cn/Autodiscover/Autodiscover.xml
运行EMS修改ExchangeURLs(Anywhere配置)
$Server = "EX2016"
$HTTPS_FQDN ="mail.icloudengine.cn"
Get-OWAVirtualDirectory -Server $Server| Set-OWAVirtualDirectory -InternalURL "https://$($HTTPS_FQDN)/owa" -ExternalURL "https://$($HTTPS_FQDN)/owa"
Get-ECPVirtualDirectory -Server $Server| Set-ECPVirtualDirectory -InternalURL "https://$($HTTPS_FQDN)/ecp" -ExternalURL "https://$($HTTPS_FQDN)/ecp"
Get-OABVirtualDirectory -Server $Server| Set-OABVirtualDirectory -InternalURL "https://$($HTTPS_FQDN)/oab" -ExternalURL "https://$($HTTPS_FQDN)/oab"
Get-ActiveSyncVirtualDirectory -Server$Server | Set-ActiveSyncVirtualDirectory -InternalURL"https://$($HTTPS_FQDN)/Microsoft-Server-ActiveSync" -ExternalURL "https://$($HTTPS_FQDN)/Microsoft-Server-ActiveSync"
Get-WebServicesVirtualDirectory -Server$Server | Set-WebServicesVirtualDirectory -InternalURL"https://$($HTTPS_FQDN)/EWS/Exchange.asmx" -ExternalURL"https://$($HTTPS_FQDN)/EWS/Exchange.asmx"
Get-MapiVirtualDirectory -Server $Server| Set-MapiVirtualDirectory -InternalURL "https://$($HTTPS_FQDN)/mapi" -ExternalURL https://$($HTTPS_FQDN)/mapi
登陆到EAC查看URL已经修改成功
导出Exchange2010证书并在Exchange2016导入
导入成功后,分配给服务
CMD运行命令重启IIS
iisreset/noforce
当上面的操作完成后,我们可以试试OWA、ECP内外网能否正常打开
转载于:https://blog.51cto.com/huzhichong/1794796