Voicemail IMAP-timeout Options

We have an Asterisk 1.8.3.2 server setup for voicemail. It is using IMAP for storage to an Exchange server. However, we keep on getting an “IMAP4 exceeded max connections” on the exchange server. This would result in us having to restart IMAP4 service in exchange.

We think it could be resolved by setting the timeout options namely:

opentimeout
closetimeout
readtimeout
writetimeout

Does anyone have any suggestions on recommended values for these options?

Thanks!

Are you running Exchange 2010? You could try increasing the max connections it will accept for IMAP4 using the EMC (Exchange Management Console)

ref: http://technet.microsoft.com/en-us/library/bb123712.aspx

-In the console tree, navigate to Server Configuration > Client Access.

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

-Select IMAP4 and then, in the action pane, under IMAP4, click Properties.

-On the IMAP4 Properties page, click the Connection tab.

-Under Connection Limits, specify the following:
To set the connection limit for a server, enter a value between 1 and 25,000 in the box next to Maximum connections.
To set the connection limit for an IP address, enter a value between 1 and 25,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 between 1 and 25,000 in the box next to Maximum connections from a single user.

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