当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] 如何在 Outlook 365/2019/2016 中手动配置 Exchange 或 Microsoft 365 帐户

作者:精品下载站 日期:2024-12-14 23:35:50 浏览:13 分类:玩电脑

如何在 Outlook 365/2019/2016 中手动配置 Exchange 或 Microsoft 365 帐户


现代版本的 Outlook(从 Outlook 2016 开始)不允许您手动配置与 Exchange Server 或 Exchange Online (Microsoft 365) 上托管的邮箱的连接。 Microsoft 开发人员认为 Outlook 应始终使用自动发现机制来自动发现 Exchange 邮箱的连接设置。

在本文中,我们将向您展示如何使用包含必要连接信息的本地 XML 文件在 Outlook 2019/2016 或 Outlook 365 中手动设置与本地 Exchange Server 或 Microsoft 365(Office 365 或 Exchange Online)上邮箱的连接。如果无法执行自动发现(自动发现配置不正确、Autodiscover.xml 文件不可用、Internet 访问受限、使用代理或 VPN 连接访问内部 Exchange Server 等),此方法将帮助您配置 Outlook 与邮箱的连接。

注意。 当然,首先,我们建议您为外部和内部客户端正确配置域的自动发现。仅当您无法正确配置自动发现时,才应使用本指南手动设置 Outlook 连接。

方法 1. Outlook 客户端的本地 XML 重定向

  1. 如果您知道通过 OWA 访问 Exchange 的 URL,请检查以下 URL 地址是否可用:_https://mail.a-d.site/autodiscover/autodiscover.xml(您必须进行身份验证才能访问 XML 文件)。如果该文件可用,请转到下一步。如果没有,则转第二种方法;

    [玩转系统] 如何在 Outlook 365/2019/2016 中手动配置 Exchange 或 Microsoft 365 帐户

  2. 在计算机的本地磁盘上创建一个自定义 XML 文件,该文件会将 Outlook 重定向到包含文件 autodiscover.xml 的 URL。创建包含以下文本的文本文件 autodiscover.xml 并将其保存到计算机上的本地目录(例如,C:\Autodiscover utodiscover.xml);

    <?xml version=”1.0″ encoding=”utf-8″ ?>
    <Autodiscover xmlns=”http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006″>
    <Response xmlns=”http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a”>
    <Account>
    <AccountType>email</AccountType>
    <Action>redirectUrl</Action>
    <RedirectUrl>_https://mail.a-d.site/autodiscover/autodiscover.xml</RedirectUrl>
    </Account>
    </Response>
    </Autodiscover>

    注意 将 RedirectUrl 参数中的值替换为您的域的自动发现 URL。

  3. 打开注册表编辑器并转到注册表项 HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office .0\Outlook\AutoDiscover。使用您的域名称和包含您在上一步中创建的本地 XML 文件的路径的值创建一个新的 REG_SZ 注册表参数。例如:
    参数名称

    a-d.site

    价值

    C:\Autodiscover\autodiscover.xml

    然后创建一个值为 1PreferLocalXML (REG_DWORD) 参数。之后,Outlook 在执行自动发现时将始终首先查看您本地的 autodiscover.xml 文件;

    [玩转系统] 如何在 Outlook 365/2019/2016 中手动配置 Exchange 或 Microsoft 365 帐户

  4. 只需启动 Outlook 并运行添加帐户向导即可。输入您的邮箱名称、电子邮件地址和密码。如果一切操作正确,Outlook 将自动配置 Exchange 邮箱连接。

    [玩转系统] 如何在 Outlook 365/2019/2016 中手动配置 Exchange 或 Microsoft 365 帐户

方法 2. 具有 Exchange 连接设置的本地 Autodiscover.XML 文件

如果您的计算机上没有包含 autodiscover.xml 的 URL,您将必须手动创建一个包含完整用户设置的本地 XML 文件,以连接到 Exchange Server 或 Microsoft 365 邮箱。您可以从任何配置的 Outlook 客户端获取此文件的示例参数。为此,请转到文件夹

C:\Users\%username%\AppData\Local\Microsoft\Outlook

,您将在其中找到名为 [longGUID]-Autodiscover.xml 的文件。

[玩转系统] 如何在 Outlook 365/2019/2016 中手动配置 Exchange 或 Microsoft 365 帐户

复制此文件,如有必要,更改帐户设置 并将其保存到C:\Autodiscover utodiscover.xml。然后按照第一种方法中的步骤 3 和 4 进行操作。

如果您无法获取此文件,您可以手动创建它。该文件必须具有以下格式。

如果您使用的是 Outlook Anywhere (RPC/HTTP)

<?xml version=”1.0″ encoding=”utf-8″?>
<Autodiscover xmlns=”http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006″>
<Response xmlns=”http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a”>
<User>
<AutoDiscoverSMTPAddress>[SMTP_ADDRESS]</AutoDiscoverSMTPAddress>
<LegacyDN>[USER_LEGACYDN]</LegacyDN>
</User>
<Account>
<AccountType>email</AccountType>
<Action>settings</Action>
<Protocol>
<Type>EXCH</Type>
<Server>[SERVER_NAME]</Server>
<ServerDN>[SERVER_DN]</ServerDN>
<AuthPackage>[RPC_AUTH_PACKAGE]</AuthPackage>
</Protocol>
<Protocol>
<Type>EXPR</Type>
<Server>[OUTLOOK_ANYWHERE_SERVER]</Server>
<SSL>On</SSL>
<AuthPackage>[HTTP_AUTH_PACKAGE]</AuthPackage>
<ServerExclusiveConnect>on</ServerExclusiveConnect>
<CertPrincipalName>[CERTIFICATE_PRINCIPAL_NAME]</CertPrincipalName>
<ServerExclusiveConnect>off</ServerExclusiveConnect>
</Protocol>
</Account>
</Response>
</Autodiscover>

如果您没有使用 Outlook Anywhere 进行连接:

<?xml version=”1.0″ encoding=”utf-8″?>
<Autodiscover xmlns=”http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006″>
<Response xmlns=”http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a”>
<User>
<AutoDiscoverSMTPAddress>[SMTP_ADDRESS]</AutoDiscoverSMTPAddress>
<LegacyDN>[USER_LEGACYDN]</LegacyDN>
</User>
<Account>
<AccountType>email</AccountType>
<Action>settings</Action>
<Protocol>
<Type>EXCH</Type>
<Server>[SERVER_NAME]</Server>
<ServerDN>[SERVER_DN]</ServerDN>
<AuthPackage>[RPC_AUTH_PACKAGE]</AuthPackage>
</Protocol>
</Account>
</Response>
</Autodiscover>

将这些 XML 文件中方括号中的参数更改为与您的域匹配的信息(您可以从 Exchange 或 AD 管理员处获取)。

方法 3. Microsoft 365 (Exchange Online) 的 Autodiscover.XML 文件示例

如果要在 Outlook 365/2019/2016 中手动连接来自 Microsoft 365 (Exchange Online) 的邮箱,可以使用 PowerShell 获取本地 autodiscover.xml 文件所需的所有邮箱设置。

使用 Exchange Online PowerShell v2 模块连接到您的 EOL 租户:

Connect-ExchangeOnline -UserPrincipalName [email protected] -ShowProgress $true

使用以下命令获取用户邮箱设置:

Get-Mailbox -Identity maxbak | select DisplayName,LegacyExchangeDN,PrimarySmtpAddress,ExchangeGuid|fl

[玩转系统] 如何在 Outlook 365/2019/2016 中手动配置 Exchange 或 Microsoft 365 帐户

以下是 Exchange Online (Microsoft 365) 邮箱的 Autodiscover.xml 文件示例。将突出显示的参数替换为使用 PowerShell 获取的属性值:

<?xml version="1.0" encoding="utf-8"?>
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
<User>
<DisplayName> [DisplayName] </DisplayName>
<LegacyDN>[LegacyExchangeDN] </LegacyDN>
<AutoDiscoverSMTPAddress>[PrimarySmtpAddress] </AutoDiscoverSMTPAddress>
<DeploymentId>1234</DeploymentId>
</User>
<Account>
<AccountType>email</AccountType>
<Action>settings</Action>
<MicrosoftOnline>True</MicrosoftOnline>
<ConsumerMailbox>False</ConsumerMailbox>
<Protocol Type="mapiHttp" Version="1">
<MailStore>
<ExternalUrl>https://outlook.office365.com/mapi/emsmdb/?MailboxId=[ExchangeGuid]@a-d.site</ExternalUrl>
</MailStore>
<AddressBook>
<ExternalUrl>https://outlook.office365.com/mapi/nspi/?MailboxId=[ExchangeGuid]@a-d.com</ExternalUrl>
</AddressBook>
</Protocol>
<Protocol>
<Type>WEB</Type>
<Internal>
<OWAUrl AuthenticationMethod="LiveIdFba, OAuth">https://outlook.office365.com/owa/</OWAUrl>
<Protocol>
<Type>EXCH</Type>
<ASUrl>https://outlook.office365.com/EWS/Exchange.asmx</ASUrl>
</Protocol>
</Internal>
<External>
<OWAUrl AuthenticationMethod="Fba">https://outlook.office365.com/owa/a-d.site/</OWAUrl>
<Protocol>
<Type>EXPR</Type>
<ASUrl>https://outlook.office365.com/EWS/Exchange.asmx</ASUrl>
</Protocol>
</External>
</Protocol>
<Protocol>
<Type>EXHTTP</Type>
<Server>outlook.office365.com</Server>
<SSL>On</SSL>
<AuthPackage>Basic</AuthPackage>
<ServerExclusiveConnect>On</ServerExclusiveConnect>
</Protocol>
</Account>
</Response>
</Autodiscover>

[玩转系统] 如何在 Outlook 365/2019/2016 中手动配置 Exchange 或 Microsoft 365 帐户

将文件保存为 C:\Autodiscover utodiscover.xm。然后按照方法 1 -> 步骤 3 和 4 中所述更改注册表。添加新用户帐户后重新启动 Outlook。

第一次打开它时,您应该会看到 Microsoft 365 现代身份验证提示。输入你的用户名与密码。如果用户在 Microsoft 365 中启用了 MFA,请使用第二个因素确认登录。

如果启动 Outlook 时出现空白 Office 365 登录窗口,您可以按照本指南解决此问题。

[玩转系统] 如何在 Outlook 365/2019/2016 中手动配置 Exchange 或 Microsoft 365 帐户

您的 Outlook 应连接到 Exchange 邮箱,您将看到邮箱文件夹和电子邮件项目的列表。

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯