Author Topic: Sending mail w/ attachment 6MB or over  (Read 12280 times)

Offline xxqboyxx

  • Newbie
  • *
  • Posts: 6
Sending mail w/ attachment 6MB or over
« 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"

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Sending mail w/ attachment 6MB or over
« Reply #1 on: October 31, 2009, 12:55:10 AM »
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.

Offline xxqboyxx

  • Newbie
  • *
  • Posts: 6
Sending mail w/ attachment 6MB or over
« Reply #2 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.

Offline commotion

  • Newbie
  • *
  • Posts: 3
Sending mail w/ attachment 6MB or over
« Reply #3 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

Offline max

  • Jr. Member
  • **
  • Posts: 14
Sending mail w/ attachment 6MB or over
« Reply #4 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.
ubuntu 10.10, Linux version 2.6.35

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Sending mail w/ attachment 6MB or over
« Reply #5 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.

Offline commotion

  • Newbie
  • *
  • Posts: 3
Sending mail w/ attachment 6MB or over
« Reply #6 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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Sending mail w/ attachment 6MB or over
« Reply #7 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.

Offline xxqboyxx

  • Newbie
  • *
  • Posts: 6
Sending mail w/ attachment 6MB or over
« Reply #8 on: November 01, 2009, 01:17:49 PM »
yeah tried that too, don't work either  =T

Offline commotion

  • Newbie
  • *
  • Posts: 3
Sending mail w/ attachment 6MB or over
« Reply #9 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?

Offline xxqboyxx

  • Newbie
  • *
  • Posts: 6
Sending mail w/ attachment 6MB or over
« Reply #10 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.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Sending mail w/ attachment 6MB or over
« Reply #11 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

Offline xxqboyxx

  • Newbie
  • *
  • Posts: 6
Sending mail w/ attachment 6MB or over
« Reply #12 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.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Sending mail w/ attachment 6MB or over
« Reply #13 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.

Offline xxqboyxx

  • Newbie
  • *
  • Posts: 6
Sending mail w/ attachment 6MB or over
« Reply #14 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...