Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: WebmailLite wont accept large attachment Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jsherk
Newbie
Newbie


Joined: 18 June 2010
Online Status: Offline
Posts: 28
Posted: 01 November 2010 at 9:24pm | IP Logged Quote jsherk

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 View jsherk's Profile Search for other posts by jsherk
 
jsherk
Newbie
Newbie


Joined: 18 June 2010
Online Status: Offline
Posts: 28
Posted: 01 November 2010 at 10:20pm | IP Logged Quote jsherk

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 View jsherk's Profile Search for other posts by jsherk
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6092
Posted: 02 November 2010 at 1:16am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
damu15skd
Newbie
Newbie
Avatar

Joined: 18 November 2010
Location: India
Online Status: Offline
Posts: 1
Posted: 18 November 2010 at 2:19am | IP Logged Quote damu15skd

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 View damu15skd's Profile Search for other posts by damu15skd
 
administrator
AfterLogic Support
AfterLogic Support


Joined: 10 November 2003
Online Status: Offline
Posts: 22
Posted: 19 November 2010 at 1:29am | IP Logged Quote administrator

Hi damu,

please try the solution Igor described above.
Back to Top View administrator's Profile Search for other posts by administrator
 
biotech
Newbie
Newbie
Avatar

Joined: 05 October 2010
Location: United States
Online Status: Offline
Posts: 17
Posted: 23 November 2010 at 3:04pm | IP Logged Quote biotech

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 View biotech's Profile Search for other posts by biotech
 
administrator
AfterLogic Support
AfterLogic Support


Joined: 10 November 2003
Online Status: Offline
Posts: 22
Posted: 24 November 2010 at 6:15am | IP Logged Quote administrator

The only recommendation we can do is try to use IMAP instead of POP3.
Back to Top View administrator's Profile Search for other posts by administrator
 
biotech
Newbie
Newbie
Avatar

Joined: 05 October 2010
Location: United States
Online Status: Offline
Posts: 17
Posted: 24 November 2010 at 8:49am | IP Logged Quote biotech

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 View biotech's Profile Search for other posts by biotech
 
jsherk
Newbie
Newbie


Joined: 18 June 2010
Online Status: Offline
Posts: 28
Posted: 19 March 2011 at 10:21am | IP Logged Quote jsherk

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 View jsherk's Profile Search for other posts by jsherk
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide