Roundcube Community Forum

 

Sending mail w/ attachment 6MB or over

Started by xxqboyxx, October 30, 2009, 11:33:45 AM

Previous topic - Next topic

xxqboyxx

Hi,

I have been trying a few days to fiddle with this problem.  The web client works GREAT, the only issues I have is when sending mail with attachments greater than 6MB.  Roundcube just hangs at "Sending message" and never goes through.  If I send a mail with attachments less than 6MB it will go through just fine.  

I've tried everything from adding "php.ini" file and set the attributes:
post_max_size = 800000000
upload_max_filesize = 800000000

Also adding "settings.php" and set the attributes:
ini_set('post_max_size', '800000000');
ini_set('upload_max_filesize', '800000000');

I was not successful.  I really like roundcube and don't mind supporting it, I'm willing to donate $50.00 if I can get this to work please.  Thanks!

Also here's an error in the log I'm getting:
"[30-Oct-2009 15:26:46] PHP Fatal error:  Out of memory (allocated 30670848) (tried to allocate 3193332 bytes) in /homepages/1/d278902607/htdocs/roundcube/program/lib/Mail/mimePart.php on line 256"

SKaero

It's a know problem #1484660 (Attachment Excessive Memory Use Error) ? Roundcube Webmail You can increasing the memory_limit in the .htaccess to get larger uploads to work.

xxqboyxx

My host is 1and1 and they say the php memory limit is set to 20MB and I CANNOT increase this because it is a shared hosting package.  Is 20MB enough to run roundcube if uploading large attachments?

Thanks.

commotion

I have same issue.
I also have 1and1 shared hosting
I am also willing to donate
we really need this to work

max

have you controlled your .htaccess in the config folder?

there must be an entry as described in the install file:
   php_value       upload_max_filesize     2M  

instead of 2m you must place your max. value, so not more than 20m in your case.
ubuntu 10.10, Linux version 2.6.35

SKaero

Quote from: max;22666have you controlled your .htaccess in the config folder?

there must be an entry as described in the install file:
   php_value       upload_max_filesize     2M  

instead of 2m you must place your max. value, so not more than 20m in your case.
The problem is the memory limit there a bug that cause the memory limit to be more then double the attachment size, the memory limit is how much ram RoundCube is allowed to use and a lot of shared hosts limit the the amount you are allowed to use so one user doesn't over use the server resources.

commotion

yah ive tried almost everything i could think of and i hope to get this working asap. other mail clients don't have a problem sending 10-20mb files. if only roundcube would work

SKaero

Have you tried using this patch http://public.lanl.gov/jbarbuc/patches/roundcube/roundcubemail-0.1.1.attach.patch I haven't tested it but its reported to work, use at your own risk.

xxqboyxx

yeah tried that too, don't work either  =T

commotion

Im game to try anything. but i dont want to sound dumb here but how to you patch roundcube with that file?

xxqboyxx

Quote from: commotion;22686Im game to try anything. but i dont want to sound dumb here but how to you patch roundcube with that file?
I believe this is the "rcube_imap.inc" file.  Pretty much just copy and paste that in a text editor and save it as "rcube_imap.inc" without the quotes.  Replace the one in the roundcube directory located in:  "roundcube/program/include/rcube_imap.inc".  

Just so you know, I've tried this method before posting here.  But you can try it, just backup the old one before you replace it with the one skaero posted.

SKaero

Quote from: xxqboyxx;22689I believe this is the "rcube_imap.inc" file.  Pretty much just copy and paste that in a text editor and save it as "rcube_imap.inc" without the quotes.  Replace the one in the roundcube directory located in:  "roundcube/program/include/rcube_imap.inc".  

Just so you know, I've tried this method before posting here.  But you can try it, just backup the old one before you replace it with the one skaero posted.
No that isn't how you apply a patch, read this for information on how to apply the patch http://www.roundcubeforum.net/recycle-bin/1113-html-patch-2007-01-15-a.html#post6141

xxqboyxx

Oh I guess it was more complicated then I thought.  On the other hand, I don't think 1and1 give you root access on a shared hosting package.

SKaero

I just tested it and it doesn't work right now, all of the file paths in the patch are wrong so I am guessing its just to far out of date.

xxqboyxx

skaero do you do web design?  We are looking for someone to do web designing for our company at an affordable price...