我的客户端正在尝试使用IMAP中的Web Outlook中的"连接帐户"将一个Office 365电子邮件帐户连接到另一个。执行此操作时,它失败了,无法连接到帐户。该帐户不能通过"不安全"方法连接,当您手动输入IMAP设置时,该帐户也无法使用。Office 365电子邮件帐户在单独的Office 365帐户上,但我怀疑当它们在同一Office 365帐户上时也会发生。
我将这个问题作为一个问题,然后回答我自己的问题,以帮助别人有相同的问题。
这似乎是Microsoft Outlook的错误。您可以使用PowerShell手动创建"连接的帐户"来解决它。
通过右键单击PowerShell,以管理员的身份运行PowerShell。
您可以将PowerShell连接到在线交换以下命令:
set-ExecutionPolicy remotesigned
$LiveCred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $LiveCred -Authentication Basic -AllowRedirection
Import-PSSession $Session
然后执行以下命令:
New-ImapSubscription -Name "Connected account" -Mailbox "Email address of the target mailbox" -EmailAddress "Email address of the source mailbox" -IncomingUserName "Email address of the source mailbox" -IncomingPassword (ConvertTo-SecureString -String 'Password of the source mailbox' -AsPlainText -Force) -IncomingServer Outlook.office365.com -IncomingSecurity Ssl -IncomingPort 993
因此,下面是您需要用值替换的字符串:目标邮箱的电子邮件地址源邮箱的电子邮件地址源邮箱的密码