[imp] email attachment size problem

Andrew Morgan morgan at orst.edu
Thu Apr 22 14:34:25 PDT 2004



On Thu, 22 Apr 2004, You, Hongtao Howard wrote:

> Hi, I need some help on horde / imp configuration.
>
>
>
> Environment:
>
> I have a RedHat Linux 9.0 box, with Apache 2.0.40-21.9, PHP 4.2.2-17.2,
> horde 2.2.3-1, imp 3.2.1-1, turba 1.2-1, PEAR 1.3 from horde, etc.
>
>
>
> I configure php.conf under /etc/httpd/conf.d, and setup requestbodysize
> (something like that) directive from 524288 (512K) to 16777216 (16M).
>
>
>
> I configure php.ini under /etc/, and setup the following directives:
>
> . upload_max_filesize = 16M
>
> . memory_limit = 8M

Set your memory_limit to at 3 times the size of your upload_max_filesize.
In your case, set memory_limit to 24M.

Unfortunately, php maintains two complete copies of the attachment in
memory while it is base64 encoding the attachment, so you need a lot more
memory than the size of the attachment itself would indicate.

	Andy



More information about the imp mailing list