最近在环境中增加了一台 Exchange 2016 服务器用于测试,用户打开outlook时会连接到它,由于证书不包括该机器,会有个证书错误的提示。
解决方法:
删除所有相关目录

Remove-MapiVirtualDirectory
Remove-EcpVirtualDirectory
Remove-AutodiscoverVirtualDirectory
Remove-WebServicesVirtualDirectory
Remove-OwaVirtualDirectory
Remove-OabVirtualDirectory
Remove-MapiVirtualDirectory "mapi (Default Web Site)"
Remove-EcpVirtualDirectory -Identity "xxx\ecp (default Web site)"
Remove-AutodiscoverVirtualDirectory -Identity "xxx\autodiscover(autodiscover.contoso.com)"
Remove-WebServicesVirtualDirectory -Identity "xxx\EWS (Default Web Site)"
Remove-OwaVirtualDirectory -Identity "xxx\owa (Default Web Site)"
Remove-OabVirtualDirectory -Identity "OAB (Default Web Site)"

参考:
https://docs.microsoft.com/zh-cn/previous-versions/office/exchange-server-2010/ff629372(v=exchg.141)