Connection dropped by imap-server
ERROR: Connection dropped by imap-server
It's an issue with extremely large attachments in the mail spool. I think, the issue is the following: with large mail spools or with large attachments within the mailspools, imapd requires a lot more time to parse through the spool. SquirrelMail times out while waiting for imapd to respond. (the default time-out in SquirrelMail 1.x is 15 seconds).
Fix:
1. Remove large attachments from the mail spool.
2. Convert the mail spool to a binary format such as mbx that can be parsed and handled more quickly than a straight text file.
Use a larger timeout while waiting for the IMAP read request to complete. Thick clients such as Outlook have a configurable timeout from 1 minute to 10 minutes... I believe SquirrelMail 2.x has better support for a longer timeout.
If you want to increase the timeout in SquirrelMail 1.x go to line 444 of functions/imap_general.php and change the last parameter of the fsockopen() call from 15 [seconds] to something larger. Keep in mind that if you increase this, you may also need to increase the "max_execution_time" parameter in your php.ini file. This solved my problem with a 250 MB inbox.
It's an issue with extremely large attachments in the mail spool. I think, the issue is the following: with large mail spools or with large attachments within the mailspools, imapd requires a lot more time to parse through the spool. SquirrelMail times out while waiting for imapd to respond. (the default time-out in SquirrelMail 1.x is 15 seconds).
Fix:
1. Remove large attachments from the mail spool.
2. Convert the mail spool to a binary format such as mbx that can be parsed and handled more quickly than a straight text file.
Use a larger timeout while waiting for the IMAP read request to complete. Thick clients such as Outlook have a configurable timeout from 1 minute to 10 minutes... I believe SquirrelMail 2.x has better support for a longer timeout.
If you want to increase the timeout in SquirrelMail 1.x go to line 444 of functions/imap_general.php and change the last parameter of the fsockopen() call from 15 [seconds] to something larger. Keep in mind that if you increase this, you may also need to increase the "max_execution_time" parameter in your php.ini file. This solved my problem with a 250 MB inbox.
Comments
Post a Comment