Last active
July 18, 2020 19:02
-
-
Save supermarsx/77144af66b1723db77297e10b09ec0ca to your computer and use it in GitHub Desktop.
Exchange 2013 Shell, Set IMAP, POP wildcard certificate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$SERVERNAME = "SERVERNAME" | |
$WDOMAIN = "*.DOMAIN.COM" | |
Set-PopSettings -X509CertificateName $SERVERNAME | |
Set-ImapSettings -X509CertificateName $SERVERNAME | |
$Cert = Get-ExchangeCertificate | ? Subject -like $WDOMAIN | |
Enable-ExchangeCertificate -Thumbprint $Cert.Thumbprint -Services POP,IMAP | |
Get-ExchangeCertificate | |
Get-Service -Name MSExchangePOP* , MSExchangeIMAP* | Restart-Service | |
Get-Service -Name MSExchangePOP* , MSExchangeIMAP* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment