Author |
|
jsherk Newbie
Joined: 18 June 2010
Online Status: Offline Posts: 28
|
Posted: 01 November 2010 at 9:24pm | IP Logged
|
|
|
Using v4.9.10 of Webmail Lite
I have noticed that if I receive an email with a large zip file (greater than 40MB) that when I try to view my emails in Webmail Lite, that it will come back with an error and stop displaying retreiving anymore emails.
I have both Attachment Size Limit and Mailbox Size Limit NOT enabled.
If I use Squirrel Mail or Horde Mail on the same server, they open the email fine without problems.
The error log shows this:
[01-Nov-2010 10:30:48] PHP Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to allocate 39321636 bytes) in /home/mydomain/public_html/webmail/libs/class_pop3.php on line 432
|
Back to Top |
|
|
jsherk Newbie
Joined: 18 June 2010
Online Status: Offline Posts: 28
|
Posted: 01 November 2010 at 10:20pm | IP Logged
|
|
|
Okay, as a further update, the message that appears in the browser is:
"Receiving messages terminated due to an error. Probably, not all the messages were received."
I also upgraded from v4.9.10 to v 5.0.9 and the problem still occurs.
Thanks
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 02 November 2010 at 1:16am | IP Logged
|
|
|
Quote:
[01-Nov-2010 10:30:48] PHP Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to allocate 39321636 bytes) in /home/mydomain/public_html/webmail/libs/class_pop3.php on line 432 |
|
|
WebMail and PHP itself consume quite a lot of memory to process large emails, and with memory_limit value not set high enough, you're likely to hit that limit. To process 40Mb mail, you'll need memory amount ~10 times more than mail size, 200M limit is too low for that. WebMail attempts to set memory_limit value defined in common/inc_constants.php file:
Code:
define('MEMORYLIMIT', '200M'); |
|
|
You might want to increase that value in WebMail code and/or in PHP configuration. As for preinstalled SquirrelMail or Horde, they are probably allowed to consume memory in less limited way.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
damu15skd Newbie
Joined: 18 November 2010 Location: India
Online Status: Offline Posts: 1
|
Posted: 18 November 2010 at 2:19am | IP Logged
|
|
|
jsherk wrote:
Okay, as a further update, the message that appears in the browser is:
"Receiving messages terminated due to an error. Probably, not all the messages were received."
I also upgraded from v4.9.10 to v 5.0.9 and the problem still occurs.
Thanks |
|
|
\
Hai this damu, me too getting the same problem..
Please give me the solution for this...
Regards,
SKD.
|
Back to Top |
|
|
administrator AfterLogic Support
Joined: 10 November 2003
Online Status: Offline Posts: 22
|
Posted: 19 November 2010 at 1:29am | IP Logged
|
|
|
Hi damu,
please try the solution Igor described above.
|
Back to Top |
|
|
biotech Newbie
Joined: 05 October 2010 Location: United States
Online Status: Offline Posts: 17
|
Posted: 23 November 2010 at 3:04pm | IP Logged
|
|
|
This did not work for me either....trying to receive 10MB message with config:
define('MEMORYLIMIT', '400M');
Also, RoundCube Reads email just fine...so it has to be php limits of shared hosting....and the end of AL webmail on shared hosts.
|
Back to Top |
|
|
administrator AfterLogic Support
Joined: 10 November 2003
Online Status: Offline Posts: 22
|
Posted: 24 November 2010 at 6:15am | IP Logged
|
|
|
The only recommendation we can do is try to use IMAP instead of POP3.
|
Back to Top |
|
|
biotech Newbie
Joined: 05 October 2010 Location: United States
Online Status: Offline Posts: 17
|
Posted: 24 November 2010 at 8:49am | IP Logged
|
|
|
Thanks, I already did have IMAP4 in place...and being how shared hosts won't change the php settings I think I am out of options. Don't really want to get dedicated host for mail only.
Thanks for your help though.
|
Back to Top |
|
|
jsherk Newbie
Joined: 18 June 2010
Online Status: Offline Posts: 28
|
Posted: 19 March 2011 at 10:21am | IP Logged
|
|
|
Thank you Igor...
Changing the MEMORYLIMIT has indeed solved the problem (on v5.1.8).
For a 33MB file I needed to increase the MEMORY LIMIT up to 300M for it to work correctly, so your estimate of about 10x is correct.
Thanks
|
Back to Top |
|
|