Exchange 2019配置好后,手动启动了imap和pop相关服务。发现客户端使用这两种方式,仍然不能发送。
查了下官方,需要设置一下,详细如下:
- 设置IMAP和POP 主要是设置外部fqdn和证书。我这里有多台服务器,所以写成脚本批量设置。
Add-PSSnapin microsoft.exchange*
$svr = (Get-ExchangeServer -Identity BJ-RZ-EX0*).name
Foreach($i in $svr){
Set-POPSettings -X509CertificateName mail.immomo.com -server $i
Set-IMAPSettings -X509CertificateName mail.immomo.com -server $i
Set-PopSettings -Server $i -ExternalConnectionSettings "mail.immomo.com:995:SSL","mail.immomo.com:110:TLS"
Set-ImapSettings -Server $i -ExternalConnectionSettings "mail.immomo.com:993:SSL","mail.immomo.com:143:TLS"
Invoke-Command -ComputerName $i -ScriptBlock {Restart-Service MSExchangePop3,MSExchangePOP3BE,MSExchangeIMAP4,MSExchangeIMAP4BE}
}
-
设置加密证书
- 配置"Client Frontend"接收连接器fqdn。
Get-ReceiveConnector -Identity "Client Frontend*" | Set-ReceiveConnector -Fqdn mail.immomo.com
- 配置加密SMTP客户端使用的证书,在每台上都要执行。
Add-PSSnapin microsoft.exchange* $TLSCert = Get-ExchangeCertificate -Thumbprint 8B51D2502F76E48AB066AD47561E1FFE439F79 $TLSCertName = "<I>$($TLSCert.Issuer)<S>$($TLSCert.Subject)" #Write-Output $TLSCertName Get-ReceiveConnector -Identity "Client Frontend*" | Set-ReceiveConnector - TlsCertificateName $TLSCertName
- 设置outlook网页版显示smtp配置信息(可选)。
Add-PSSnapin microsoft.exchange* Get-ReceiveConnector -Identity "Client Frontend*" | Set-ReceiveConnector -AdvertiseClientSettings $true
看看outlook网页版效果: 重启相关服务器后再测试,IAMP和POP客户端就可以正常使用了。
标签:Set,Get,immomo,POP,2019,ReceiveConnector,mail,com,IMAP From: https://blog.51cto.com/magic3/5929525