Roundcube Community Forum

Release Support => Pending Issues => Topic started by: xxqboyxx on October 30, 2009, 11:33:45 AM

Title: Sending mail w/ attachment 6MB or over
Post by: xxqboyxx on October 30, 2009, 11:33:45 AM
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"
Title: Sending mail w/ attachment 6MB or over
Post by: SKaero on October 31, 2009, 12:55:10 AM
It's a know problem #1484660 (Attachment Excessive Memory Use Error) ? Roundcube Webmail (http://trac.roundcube.net/ticket/1484660) You can increasing the memory_limit in the .htaccess to get larger uploads to work.
Title: Sending mail w/ attachment 6MB or over
Post by: xxqboyxx on October 31, 2009, 10:01:08 PM
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.
Title: Sending mail w/ attachment 6MB or over
Post by: commotion on October 31, 2009, 10:52:28 PM
I have same issue.
I also have 1and1 shared hosting
I am also willing to donate
we really need this to work
Title: Sending mail w/ attachment 6MB or over
Post by: max on November 01, 2009, 09:03:50 AM
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.
Title: Sending mail w/ attachment 6MB or over
Post by: SKaero on November 01, 2009, 09:36:33 AM
Quote from: max;22666
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.

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.
Title: Sending mail w/ attachment 6MB or over
Post by: commotion on November 01, 2009, 09:44:19 AM
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
Title: Sending mail w/ attachment 6MB or over
Post by: SKaero on November 01, 2009, 10:02:59 AM
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.
Title: Sending mail w/ attachment 6MB or over
Post by: xxqboyxx on November 01, 2009, 01:17:49 PM
yeah tried that too, don't work either  =T
Title: Sending mail w/ attachment 6MB or over
Post by: commotion on November 01, 2009, 08:53:08 PM
Im game to try anything. but i dont want to sound dumb here but how to you patch roundcube with that file?
Title: Sending mail w/ attachment 6MB or over
Post by: xxqboyxx on November 01, 2009, 09:17:21 PM
Quote from: commotion;22686
Im 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.
Title: Sending mail w/ attachment 6MB or over
Post by: SKaero on November 01, 2009, 09:35:55 PM
Quote from: xxqboyxx;22689
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.

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
Title: Sending mail w/ attachment 6MB or over
Post by: xxqboyxx on November 01, 2009, 11:58:51 PM
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.
Title: Sending mail w/ attachment 6MB or over
Post by: SKaero on November 02, 2009, 04:08:44 AM
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.
Title: Sending mail w/ attachment 6MB or over
Post by: xxqboyxx on November 02, 2009, 08:07:19 AM
skaero do you do web design?  We are looking for someone to do web designing for our company at an affordable price...
Title: Sending mail w/ attachment 6MB or over
Post by: SKaero on November 02, 2009, 08:50:14 AM
I do web design, I sent you a PM.
Title: Sending mail w/ attachment 6MB or over
Post by: Guila on November 03, 2009, 05:29:38 AM
Hi i passed some days to solve this problem, but now works fine...
I´m sending attachments with 25Mb...
you need to change some lines in 2 files: php.ini and .htaccess

i´m using RoundCube 0.3 stable with Apache 2.2.8 and PHP 5.2.4

i put to send attachments until 25mb

my php.ini

max_execution_time = -1    
max_input_time = -1        
memory_limit = 384M
post_max_size = 27M
file_uploads = On
upload_max_filesize = 25M


my .htaccess

php_value       upload_max_filesize     25M
php_value       post_max_size           27M
php_value       memory_limit            384M

if you wanna send attachments more than 25Mb you must up memory_limit value

i hope this solve your problem!!
Title: Sending mail w/ attachment 6MB or over
Post by: macshodan on November 24, 2009, 09:04:23 AM
Thanks that helped me a lot!
Title: Sending mail w/ attachment 6MB or over
Post by: |_ocutus on February 15, 2010, 10:04:26 AM
Quote from: Guila;22736
my php.ini

max_execution_time = -1    
max_input_time = -1        
memory_limit = 384M
post_max_size = 27M
file_uploads = On
upload_max_filesize = 25M


my .htaccess

php_value       upload_max_filesize     25M
php_value       post_max_size           27M
php_value       memory_limit            384M


works fine for me.

thanx!!
Title: Sending mail w/ attachment 6MB or over
Post by: TheOnly4u on April 01, 2010, 08:05:23 PM
Quote from: Guila;22736
Hi i passed some days to solve this problem, but now works fine...
I´m sending attachments with 25Mb...
you need to change some lines in 2 files: php.ini and .htaccess

i´m using RoundCube 0.3 ...


I've installed roundcube 0.3.1 with simplescripts and cant find php.ini. I've tried just changing .htaccess, but it still say maximum 2,0MB upload on attachments. And if I upload more then 2 MB it gives me upload failed.

Anyone have a solution?

Cheers
TO
Title: Sending mail w/ attachment 6MB or over
Post by: olesj on May 20, 2010, 08:03:00 AM
Im having the same problem max 2 mb upload .
Title: Sending mail w/ attachment 6MB or over
Post by: henlon on July 20, 2010, 06:52:43 AM
I have the same problem too.
First I tried with mail.inc.php wich would be a proper place to find the setting for max attachment size, but there was nothing.
Title: Sending mail w/ attachment 6MB or over
Post by: adumpaul on November 05, 2011, 07:16:35 AM
Web Fly Software is a reliable web solution provider, widening the reach of business to make your presence felt in the online world. As one of the best web development and web design company in India,webflysoftware are committed to deliver high standard and affordable web solutions involving an advanced approach together with years of experience and expertise. Webflysoftware provides services website design ,website development,flash design,logo design and online marketing.