[imp] attachments > 9 MB need memory_limit = 200M ??!
Kevin M. Myer
kevin_myer at iu13.org
Thu May 29 10:46:56 PDT 2003
I had similar issues (see
http://marc.theaimsgroup.com/?l=imp&m=104221588724492&w=2) and as I recall, the
issue is that the Net_SMTP PEAR module ends up using a lot of resources when
dealing with a lot of strings (i.e. and attachment).
Look at bug # 1162 (as well as #1206, which is the exact same thing). Your only
recourses are:
1) Rewrite the Net_SMTP to be more resource effecient or,
2) Boost your PHP memory_limit to something (IMHO) outrageous, like 400Mb of
memory.
Unfortunately, I don't have the expertise to do 1) and option 2) is a denial of
service waiting to happen and genuinely bad practice. I recall some discussion
(on the list or via bug postings) about not using email for large attachments
but (once again, IMHO), a 10Mb attachment isn't all that large, plus there are
other non-technical (i.e. political) pressures to let such large attachments go
through.
Actually, now that I think about it, you could probably also use the sendmail
binary directly, instead of using SMTP as your ['mailer']['type'], which
provides a third option, to the two above.
Kevin
> ----- Message from krause at biochem.mpg.de ---------
> Date: Wed, 28 May 2003 22:44:22 +0200
> From: Markus Krause <krause at biochem.mpg.de>
> Reply-To: Markus Krause <krause at biochem.mpg.de>
> Subject: [imp] attachments > 9 MB need memory_limit = 200M ??!
> To: imp at lists.horde.org
>
> hi all,
>
> i am using the cvs snapshot 2003-05-28 of horde/imp/[...] with apache 1.3.27
> and
> php 4.3.1
>
> in php.ini i have:
>
> max_execution_time = 120
> max_input_time = 240
> memory_limit = 100M
>
> if i attach a file until (about) 9 mbytes i can send emails without any
> problems, but as of 10 mbytes the attachments have the size zero (likely a
> similar error than reported by others)
>
> but if i change the settings in php.ini to
>
> memory_limit = 200M
>
> i can send (at least) attachments with 15 mbyte! (unfortunately several users
> in
> our network do send files of that size regularily!)
>
> does anyone know why the memory usage does "explode" that much? how much do i
> need then for 25 mbyte (thats the limit of our mailserver, its horrible but
> the
> users demand this and we have to provide this!)? is there a "formular"?
>
> thanks in advance for your help!
>
> markus krause
>
> --
> Markus Krause email: krause at biochem.mpg.de
> Max-Planck-Institute of Biochemistry phone: +49-89-8578-2825
> Computing Center
>
> -------------------------------------------------
> This mail sent through the new webmail system
> at https://webmail2.biochem.mpg.de
> Please report any problems to rz-linux at biochem.mpg.de
>
>
> --
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>
>
> ----- End message from krause at biochem.mpg.de -----
--
Kevin M. Myer
Systems Administrator
Lancaster-Lebanon Intermediate Unit 13
(717) 560-6140
More information about the imp
mailing list