[horde] attachment problem

Friis-Hansen carl.friis-hansen at carl-fh.com
Wed Jan 26 18:46:28 UTC 2011


On 01/26/2011 07:37 PM, Rick Romero wrote:
> Quoting Paras pradhan <pradhanparas at gmail.com>:
>>> Hi,
>> >
>> > I am using horde 2.13 in Redhat Linux 5.5 . It uses postfix to deliver
>> > the messages to the relay host.
>> >
>> > The IMP has
>> >
>> > $conf['compose']['attach_size_limit'] = 26214400;
>> >
>> > and postfix has 20M (message_size_limit = 20480000)
>> >
>> > When I send mails of around 7 MB attachment, it goes through. But I
>> > get a blank compose page after I attach and send mail with around 12MB
>> > of attachment.
>> >
>> > php.ini has all entires which handles upload size upto 20M
>> >
>> > Any help is appreciated !
>
> I believe PHP is running out of memory - for a 15Mb attachment, I've had
> to set:
> memory_limit = 220M
>
> Rick

I also think attachments are base64 encoded, which can almost double the 
size of the attachment in the email. Thus, I would increase php memory 
limit to twice the attachment size plus whatever you think the scripts 
etc. will use. 220MB is a lot and could cause problems if there is a lot 
of activity on the server.

Carl Friis-Hansen


-- 
                           ---------=oOOo=---------
                             Carl Friis-Hansen
                             http://carl-fh.com/
                             Phone: +46 372 15033
                           ---------=oOOo=---------



More information about the horde mailing list