How to Set Connection Limits for IMAP4

Microsoft Exchange Server 2007 will reach end of support on April 11, 2017. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.

 

Applies to: Exchange Server 2007, Exchange Server 2007 SP1, Exchange Server 2007 SP2, Exchange Server 2007 SP3

This topic describes how to use the Exchange Management Console and the Exchange Management Shell to set the connection limits on the computer that is running Microsoft Exchange Server 2007 and that has the Internet Message Access Protocol version 4rev1 (IMAP4) service enabled. In the original release (RTM) version of Exchange 2007, you can set connection limits for IMAP4 only by using the Exchange Management Shell. In Exchange 2007 Service Pack 1 (SP1), you can also set connection limits for IMAP4 by using the Exchange Management Console. The steps to do this are included in this topic.

When you specify connection limits for IMAP4, you can select connection limits for the server, for an IP address, or for a specific user.

The following table describes the settings for connection limits.

Descriptions of commands for setting connection limits for IMAP4

Command Description Default Value Limits

MaxConnections

Specifies the total number of connections the specified server will accept. This includes authenticated and unauthenticated connections.

2,000

1-25,000

MaxConnectionFromSingleIP

Specifies the number of connections that the server will accept from a single IP address.

20

1-1,000

MaxConnectionsPerUser

Specifies the maximum number of connections that the server will accept from a particular user.

10

1-1,000

Before you begin

To perform this procedure, the account you use must be delegated the Exchange Server Administrator role and membership in the local Administrators group for the target server.

For more information about permissions, delegating roles, and the rights that are required to administer Exchange Server 2007, see Permission Considerations.

Note

After you set connection limits, you must restart the IMAP4 service. For more information about how to restart the IMAP4 service, see How to Start and Stop the IMAP4 Service.

Procedure

Exchange 2007 SP1

To use the Exchange Management Console to set IMAP4 connection limits for a server, IP address, or user

  1. In the console tree, expand Server Configuration, and then click Client Access.

  2. In the work pane, click the POP3 and IMAP4 tab.

  3. In the work pane, select IMAP4, and then click Properties in the results pane.

  4. On the IMAP4 Properties page, click the Connections tab.

  5. Under Connection Limits, specify the following:

    • To set the connection limit for a server, enter a value from 1 through 25,000 in the box next to Maximum connections.

    • To set the connection limit for an IP address, enter a value from 1 through 1,000 in the box next to Maximum connections from a single IP address.

    • To set the connection limit for a single user, enter a value from 1 through 1,000 in the box next to Maximum connections from a single user.

  6. Click Apply, and then click OK to save your changes.

To use the Exchange Management Shell to set IMAP4 connection limits for a server, IP address, or user

  • To set the connection limit for a server, run the following command:

    Set-ImapSettings -Server CAS01 -MaxConnections Value
    
  • To set the connection limit for an IP address, run the following command:

    Set-ImapSettings -Server CAS01 -MaxConnectionFromSingleIP Value
    
  • To set the connection limit for a user, run the following command:

    Set-ImapSettings -MaxConnectionsPerUser Value
    

For more information about syntax and parameters, see Set-IMAPSettings.

Exchange 2007 RTM

To use the Exchange Management Shell to set IMAP4 connection limits for a server, IP address, or user

  • To set the connection limit for a server, run the following command:

    Set-ImapSettings -Server CAS01 -MaxConnections Value
    
  • To set the connection limit for an IP address, run the following command:

    Set-ImapSettings -Server CAS01 -MaxConnectionFromSingleIP Value
    
  • To set the connection limit for a user, run the following command:

    Set-ImapSettings -MaxConnectionsPerUser Value
    

For more information about syntax and parameters, see Set-IMAPSettings (RTM).