为用户设置 POP3 或 IMAP4 设置Set POP3 or IMAP4 settings for a user

您使用 Set-CASMailbox cmdlet 为每个用户配置 PO3 和 IMAP4 选项。下表描述了这些配置选项。You use the Set-CASMailbox cmdlet to configure the PO3 and IMAP4 options for each user. The configuration options are described in the following table.

参数Parameter 描述Description Values
PopForceICalForCalendarRetrievalOptionPopForceICalForCalendarRetrievalOption
ImapForceICalForCalendarRetrievalOptionImapForceICalForCalendarRetrievalOption
设置会议请求的首选格式。Sets the preferred format for meeting requests.
默认情况下,会议请求显示为 Outlook Web App 链接。您可以将它们更改为 iCal 格式。By default, meeting requests appear as Outlook Web App links. You can change them to iCal format.
$true 会议请求是所有 Outlook Web App 链接$true Meeting requests are all Outlook Web App links
$false 会议请求都是 iCal 格式$false Meeting requests are all iCal format
PopSuppressReadReceiptPopSuppressReadReceipt
ImapSuppressReadReceiptImapSuppressReadReceipt
设置当邮件被下载和重新打开时或刚刚打开该邮件时是否发送已读回执Sets whether to send read receipts when a message is downloaded and again when it is opened or just when the message is opened
默认情况下,如果请求了已读回执,将会发送两个已读回执:一个是当用户下载邮件时发送的,另一个是当用户打开邮件时发送的。您可以对其进行更改,只发送一个已读回执:当用户打开邮件时。By default, if a read receipt is requested, two read receipts are sent: one when a user downloads a message and another when the user opens the message. You can change it so that only one read receipt is sent: when the user opens the message.
$false 每次收件人下载邮件时都会向 POP3 或 IMAP4 用户发送已读回执。用户打开邮件时还会向用户发送已读回执。这是默认设置。 $false POP3 or IMAP4 users are sent a read receipt each time a recipient downloads a message. Users are also sent a read receipt when the user opens the message. This is the default setting.
$true在其电子邮件客户端程序中使用发送的邮件发送已读的回执选项的 POP3 或 IMAP4 用户仅在收件人打开邮件时会收到已读的回执。$true POP3 or IMAP4 users that use the send read receipt for messages I send option in their email client programs receive a read receipt only when the recipient opens the message.
PopMessagesRetrievalMimeFormatPopMessagesRetrievalMimeFormat
ImapMessagesRetrievalMimeFormatImapMessagesRetrievalMimeFormat
设置接收邮件的首选格式。Sets the preferred format for received messages.
默认使用基于邮件的最佳格式。The default is to use the best format based on the message.
使用数字或文本值。Use a numeral or a text value.
0TextOnly 纯文本0 or TextOnly Text only
1HtmlOnly HTML1 or HtmlOnly HTML
2HtmlAndTextAlternative HTML 和替代文本2 or HtmlAndTextAlternative HTML and alternative text
3TextEnriched 浓缩文本3 or TextEnriched Enriched text
4TextEnrichedAndTextAlternative 浓缩文本和替代文本4 or TextEnrichedAndTextAlternative Enriched text and alternative text
5BestBodyFormat 最佳正文格式。此值为默认值。 5 or BestBodyFormat Best body format. This is the default value.
6Tnef 传输不确定封装格式 (TNEF)。也称为 RTF 格式、Outlook RTF 格式或 MAPI RTF 格式。 6 or Tnef Transport-Neutral Encapsulation Format (TNEF). Also known as rich text format, Outlook rich text format, or MAPI rich text format.
PopEnableExactRFC822SizePopEnableExactRFC822Size
ImapEnableExactRFC822SizeImapEnableExactRFC822Size
设置是否计算邮件的准确大小。Sets whether to calculate the exact size of messages.
建议不要更改此值,除非您的电子邮件客户端的默认值会导致问题。默认情况下,估计的邮件大小而不是邮件的准确大小,被发送到电子邮件客户端。Changing this value is not recommended unless the default value causes problems for your email client. By default, the estimated message size, rather than the exact message size, is sent to the email client.
$true 使用实际的邮件大小。$true Use actual message size.
$false 使用估计的邮件大小。此为默认选项。 $false Use estimated message size. This is the default.

有关与 POP3 和 IMAP4 相关的详细信息,请参阅POP3 和 IMAP4For additional information related to POP3 and IMAP4, see POP3 and IMAP4.

在开始之前,您需要知道什么?What do you need to know before you begin?

  • 估计完成每个步骤时间:5 分钟。Estimated time to finish each procedure: five minutes.

  • 只能使用命令行管理程序执行此过程。 若要了解如何使用 Windows PowerShell 连接到 Exchange Online,请参阅连接到 Exchange Online PowerShellYou can only use the Shell to perform this procedure. To learn how to use Windows PowerShell to connect to Exchange Online, see Connect to Exchange Online PowerShell.

  • 您必须先获得权限,然后才能执行此过程或多个过程。若要查看所需的权限,请参阅 Exchange Online 中的功能权限主题中的"POP3 和 IMAP4 设置"条目。You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "POP3 and IMAP4 settings" entry in the Feature permissions in Exchange Online topic.

提示

遇到问题了吗?请在 Exchange 论坛中寻求帮助。 请访问以下论坛:Exchange ServerExchange OnlineExchange Online ProtectionHaving problems? Ask for help in the Exchange forums. Visit the forums at Exchange Server,Exchange Online, or Exchange Online Protection.

要执行什么操作?What do you want to do?

使用 Exchange 命令行管理程序 为 POP3 或 IMAP4 用户设置会议请求格式Use the Exchange Management Shell to set the meeting request format for a POP3 or IMAP4 user

以下示例将向 USER01 传入邮件中的所有会议请求都设置成适于 POP3 用户的 iCal 格式。The following example sets all meeting requests in incoming mail to USER01 to iCal format for a POP3 user.

Set-CASMailbox USER01 -PopUseProtocolDefaults $false -PopForceICalForCalendarRetrievalOption $true 

以下示例将向 USER01 传入邮件中的所有会议请求都设置成适于 IMAP4 用户的 iCal 格式。The following example sets all meeting requests in incoming mail to USER01 to iCal format for an IMAP4 user.

Set-CASMailbox USER01-ImapUseProtocolDefaults $false -ImapForceICalForCalendarRetrievalOption $true 

您如何知道操作成功?How do you know this worked?

若要验证您是否已成功为 POP3 或 IMAP4 用户设置了会议请求格式,请在 Exchange 命令行管理程序 中运行以下命令验证显示的值是否是您所配置的值:To verify that you successfully set the meeting request format for a POP3 or an IMAP4 user, run the following command in the Exchange Management Shell and verify that the values displayed are the values that you configured:

Get-CASMailbox USER01 | format-list *ForceIcal*,*UseProtocolDefaults

使用 Exchange 命令行管理程序 为 POP3 或 IMAP4 用户设置抑制已读回执选项Use the Exchange Management Shell to set the suppress read receipt option for a POP3 or IMAP4 user

下面的例子中对其进行了设置,以便只有在邮件被打开时,POP3 发件人才会收到已读回执。The following example sets it up so that the POP3 sender receives a read receipt only when the message is opened.

Set-CASMailbox USER01 -PopUseProtocolDefaults $false -PopSuppressReadReceipt $true 

下面的例子中对其进行了设置,以便只有在邮件被打开时,IMAP4 发件人才会收到已读回执。The following example sets it up so that the IMAP4 sender receives a read receipt only when the message is opened.

Set-CASMailbox USER01 -ImapUseProtocolDefaults $false -ImapSuppressReadReceipt $true 

您如何知道操作成功?How do you know this worked?

若要验证您是否已成功为 POP3 或 IMAP4 用户设置了已读回执选项,请在 Exchange 命令行管理程序 中运行以下命令验证显示的值是否是您所配置的值:To verify that you successfully set the read receipt option for a POP3 or an IMAP4 user, run the following command in the Exchange Management Shell and verify that the values displayed are the values that you configured:

Get-CASMailbox USER01 | format-list *SuppressReadReceipt,*UseProtocolDefaults

使用 Exchange 命令行管理程序 为 POP3 或 IMAP4 用户设置邮件检索格式Use the Exchange Management Shell to set the message retrieval format for a POP3 or IMAP4 user

以下示例针对 USER01 的 POP3 访问权限将邮件检索格式设置为"仅文本"。The following example sets the message retrieval format to text only for POP3 access for USER01.

Set-CASMailbox USER01 -PopUseProtocolDefaults $false -PopMessagesRetrievalMimeFormat TextOnly 

以下示例针对 USER01 的 IMAP4 访问权限将邮件检索格式设置为"仅文本"。The following example sets the message retrieval format to text only for IMAP4 access for USER01.

Set-CASMailbox USER01 -ImapUseProtocolDefaults $false -ImapMessagesRetrievalMimeFormat TextOnly 

您如何知道操作成功?How do you know this worked?

若要验证您是否已成功为 POP3 或 IMAP4 用户设置了邮件检索格式,请在 Exchange 命令行管理程序 中运行以下命令验证显示的值是否是您所配置的值:To verify that you successfully set the message retrieval format for a POP3 or an IMAP4 user, run the following command in the Exchange Management Shell and verify that the values displayed are the values that you configured:

Get-CASMailbox USER01 | format-list *MessagesRetrievalMimeFormat,*UseProtocolDefaults

使用 Exchange 命令行管理程序 为 POP3 或 IMAP4 用户设置邮件大小计算Use the Exchange Management Shell to set the message size calculation for a POP3 or IMAP4 user

本示例计算 USER01 的 POP 邮件的准确大小。This example calculates the exact size of POP messages for USER01.

重要

只有当 POP 客户端不适用于此用户时,才将 PopEnableExactRFC822Size 参数设置为 $trueSet the PopEnableExactRFC822Size parameter to $true only if the POP client doesn't work for this user.

Set-CASMailbox USER01 -PopUseProtocolDefaults $false -PopEnableExactRFC822Size $true 

本示例计算 USER01 的 IMAP 邮件的准确大小。This example calculates the exact size of IMAP messages for USER01.

重要

只有当 IMAP 客户端不适用于此用户时,才将 ImapEnableExactRFC822Size 参数设置为 $trueSet the ImapEnableExactRFC822Size parameter to $true only if the IMAP client doesn't work for this user.

Set-CASMailbox USER01 -ImapUseProtocolDefaults $false -ImapEnableExactRFC822Size $true 

您如何知道操作成功?How do you know this worked?

若要验证您是否已成功为 POP3 或 IMAP4 用户设置了邮件的大小计算,请在 Exchange 命令行管理程序 中运行以下命令验证显示的值是否是您所配置的值:To verify that you successfully set the message size calculation for a POP3 or IMAP4 user, run the following command in the Exchange Management Shell and verify that the values displayed are the values that you configured::

Get-CASMailbox USER01 | format-list *EnableExact*,*UseProtocolDefaults

详细信息For more information

使用远程 PowerShell 连接到 Exchange OnlineConnect to Exchange Online Using Remote PowerShell

POP3 和 IMAP4POP3 and IMAP4

用户的启用或禁用 POP3 或 IMAP4 访问Enable or Disable POP3 or IMAP4 access for a user

Set-CASMailboxSet-CASMailbox