1. Launch Exchange Management Shell
Click on Start and then expand Exchange Server 2019 and right click on the Exchange Management Shell and select "Run as Administrator"
2. Type in command
Type in the command: Get-imapsettings -Server EX2019A | fl
3. Type in command
Run the following command to set the imap internal settings: Set-imapSettings -server EX2019A -InternalConnectionSettings "imap3.thexchangelab.com:993:SSL","imap3.thexchangelab.com:143:TLS" -X509CertificateName imap3.thexchangelab.com
4. Type in command
Run the following command to set the imap external settings: Set-imapSettings -server EX2019A -ExternalConnectionSettings "imap3.thexchangelab.com:993:SSL","imap3.thexchangelab.com:143:TLS" -X509CertificateName imap3.thexchangelab.com
5. Type in command
Run the following command to set the X509: Set-imapSettings -server EX2019A -X509CertificateName imap3.thexchangelab.com