Created
Dec 18, 2020 6:01 AM
Tags
虽然 Microsoft Business 365 可以直接通过 Exchange 登录邮箱,但是在特殊情况下还是需要用到 POP 的。目前 Microsoft 365 账户若要通过 POP 配置账户,需要针对邮箱开启 SMTP client authentication,具体操作需要通过运行 PowerShell 命令执行。
- 首先下载这里的两个文件,先安装 msoidcli_64.msi,再安装 msoidcli_64.msi
- 然后打开 PowerShell,先修改策略
- 然后保存接下来登录要用的账号密码
- 新建 session
- 连接
- 启用 Smtp Client Authentication
Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential
在弹出的窗口中输入账号密码,就是网页登录用的那个
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://partner.outlook.cn/PowerShell-LiveID/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
这样就连接上了
Set-CASMailbox -Identity <你的用户名> -SmtpClientAuthenticationDisabled $false