Author Topic: problems sending out large attachments on roundcube  (Read 13619 times)

Offline timreichhart

  • Jr. Member
  • **
  • Posts: 28
problems sending out large attachments on roundcube
« on: June 15, 2009, 02:12:41 AM »
Hi Guys
I have a hugh problem right now with roundcube that problem is that I cant send out large attachments and I setup 10mb into php.ini and I dont have problems sending 5.6mb on outlook express but having problems sending 1mb on roundcube is there something I need to change or do?

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
problems sending out large attachments on roundcube
« Reply #1 on: June 15, 2009, 02:16:52 AM »
Check settings in .htaccess in RoundCube root folder.

By default it is limited not to upload files larger than 5MB

<IfModule mod_php5.c>
php_flag
	
display_errors
	
Off
php_flag
	
log_errors
	
On
php_value
	
error_log
	
logs/errors

php_value
	
upload_max_filesize
	
5M
php_value
	
post_max_size
	
	
6M
php_value
	
memory_limit
	
	
64M

php_value
	
zlib.output_compression
	
	
Off
php_value
	
magic_quotes_gpc
	
	
0
php_value
	
zend.ze1_compatibility_mode
	
0
php_value 
	
suhosin.session.encrypt 
	
Off 

php_value
	
session.auto_start
	
0
php_value
	
session.gc_maxlifetime
	
21600
php_value
	
session.gc_divisor
	
500
php_value
	
session.gc_probability
	
1

# http://bugs.php.net/bug.php?id=30766
php_value
	
mbstring.func_overload
	
0
</IfModule>
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline timreichhart

  • Jr. Member
  • **
  • Posts: 28
problems sending out large attachments on roundcube
« Reply #2 on: June 15, 2009, 02:20:27 AM »
sorry rosali I do not have .htaccess file for roundcube just let you know I installed roundcube with sudo apt-get install roundcube from ubuntu.

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
problems sending out large attachments on roundcube
« Reply #3 on: June 15, 2009, 02:27:23 AM »
OK, then I hope someone else jumps into this thread. I'm not familiar with Linux.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline timreichhart

  • Jr. Member
  • **
  • Posts: 28
problems sending out large attachments on roundcube
« Reply #4 on: June 15, 2009, 02:29:18 AM »
bc I dont have any problems sending large files with squirrelmail but when I try to send it from roundcube it will just set there saying sending message for long time and noting happens.

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
problems sending out large attachments on roundcube
« Reply #5 on: June 15, 2009, 03:18:06 AM »
Is there anything in your RC error log? PHP could be running out of memory, RC is known to really guzzel it up for attachments.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline timreichhart

  • Jr. Member
  • **
  • Posts: 28
problems sending out large attachments on roundcube
« Reply #6 on: June 15, 2009, 04:13:15 PM »
it would not be a memory issue because if that was a case then squirrelmail would be doing same thing as rc so it sounds like a issue with roundcube.

Offline timreichhart

  • Jr. Member
  • **
  • Posts: 28
problems sending out large attachments on roundcube
« Reply #7 on: June 15, 2009, 05:46:02 PM »
alright after looking in the rc/logs I need this:

Code: [Select]
[15-Jun-2009 01:41:10 -0400] IMAP Error: Authentication for x failed (LOGIN): &quot;a001 NO Authentication failed.&quot; (POST /rc/?_task=&_action=login)
[15-Jun-2009 01:52:15] PHP Fatal error:  Allowed memory size of 16777216 bytes exhausted (tried to allocate 5411979 bytes) in /usr/share/php/Mail/mimePart.php on line 315
[15-Jun-2009 02:27:29] PHP Fatal error:  Allowed memory size of 16777216 bytes exhausted (tried to allocate 4842219 bytes) in /usr/share/php/Mail/mimePart.php on line 315

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
problems sending out large attachments on roundcube
« Reply #8 on: June 16, 2009, 12:22:19 AM »
So it is memory issue. You can compare with Squirrelmail. The way RoundCube handles attachments is rather resource consuming. It is a known issue and devs discuss about it since months.

Quote

[15-Jun-2009 01:52:15] PHP Fatal error:  Allowed memory size of 16777216 bytes exhausted (tried to allocate 5411979 bytes) in /usr/share/php/Mail/mimePart.php on line 315
[15-Jun-2009 02:27:29] PHP Fatal error:  Allowed memory size of 16777216 bytes exhausted (tried to allocate 4842219 bytes) in /usr/share/php/Mail/mimePart.php on line 315


... this indicates that php.ini memory_limit is set to 16M. Increase it to 64M. By default this is done by the .htaccess file in the root folder. You stated yours is missing. So, either download and install it separately or adjust php.ini itself. Notice: .htaccess settings do not apply in cases. Your php may be set to ignore .htaccess files or parts of settings in there.

If you do not have access to your php settings you'll need assistance of your hosting company.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline timreichhart

  • Jr. Member
  • **
  • Posts: 28
problems sending out large attachments on roundcube
« Reply #9 on: June 16, 2009, 01:56:53 AM »
ok please tell me where to look at? bc I already upgraded my php.ini file to 64mb

bc I am the one who is hosting my own mail server and not by some crappy web hosting company.

well if its a known issue then get the problem fix.

Offline timreichhart

  • Jr. Member
  • **
  • Posts: 28
problems sending out large attachments on roundcube
« Reply #10 on: June 16, 2009, 11:54:29 PM »
well is going to help with this known issue.

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
problems sending out large attachments on roundcube
« Reply #11 on: June 17, 2009, 01:13:56 AM »
We can't fix this, we are not the devs. Contact devs at RoundCube Mailing Lists.

But first fix your php to allow 64M memory allocation and not only 16M. This should help even if RoundCube attachment handling is still rather resource consuming.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline timreichhart

  • Jr. Member
  • **
  • Posts: 28
problems sending out large attachments on roundcube
« Reply #12 on: June 17, 2009, 01:59:57 AM »
I have fix it and im just done with this crappy web client.

Offline elbek

  • Newbie
  • *
  • Posts: 6
fix it!!!
« Reply #13 on: June 07, 2010, 02:20:42 PM »
to fix this issue open your roundcube folder where is installed at hosting.

open your .htaccess file and edit it and change this line from:

php_value   memory_limit  64M to:

php_value   memory_limit  128M

Be sure that your php.ini give you more than 64 MB of memory too.

Restart apache2

hope this help.