Koozali.org: home of the SME Server

Webmail Attachment Size - Again!

Bob

Webmail Attachment Size - Again!
« on: April 09, 2003, 07:19:57 PM »
I've tried all the usual fixes for this - php.ini, DM's HowTo but Webmail refuses to attach anything bigger than 1Mb to an e-mail.

I'm running SME v5.6 and have Dan Browns upgrades to Horde installed.

Anyone got an answer?

Bob

Re: Webmail Attachment Size - Again!
« Reply #1 on: April 09, 2003, 10:25:58 PM »
Got this reply to my query from Aavo - have posted it here for others to comment on or use if they have the same problem. Havent got it to work here yet but that may just be me :-)



Yes, I found - in  squid.conf.
(reading squid.conf.default  - very good for "Readme").
Adding this line to /etc/squid/squid.conf  and restarted squid - OK!
     request_body_max_size 0 MB
If this is not definered, default is 1MB!  (0 means no limit ; I have set limit 10MB in php.ini.)
Then added this line in template
/etc/e-smith/templates/etc/squid/squid.conf/30attachment_limit   to make
this permanent...
Or, make custom template recommended... (The nr. of the file "30..._..." is
not critical).

Aavo

Bob

Re: Webmail Attachment Size - Again!
« Reply #2 on: April 10, 2003, 05:17:48 PM »
Aavo's latest version of his fix. Still wont work for my setup but it may be useful for somebody out there.

mkdir -p /etc/e-smith/templates-custom/etc/squid/squid.conf
cp /etc/e-smith/templates/etc/squid/squid.conf/*
/etc/e-smith/templates-custom/etc/squid/squid.conf
cd /etc/e-smith/templates-custom/etc/squid/squid.conf
pico 15attachment_limit
>>>add this line:
request_body_max_size 0 MB
>>>Save and exit pico
/sbin/e-smith/expand-template /etc/squid/squid.conf
service squid restart
--------------------------
There are 3 lines in "/etc/php.ini" to look:  (I have these values)
memory_limit = 60M
post_max_size           =20M
upload_max_filesize = 20M

/etc/e-smith/events/actions/restart-httpd-full

Note that php.ini is templated!
/etc/e-smith/templates/etc/php.ini/20ResourceLimits
/etc/e-smith/templates/etc/php.ini/40DataHandling
/etc/e-smith/templates/etc/php.ini/60FileUploads
----------------------
But... another issue: tried various files to attach -- the attachment size
is now limitted - 6MB!???

Offline albatroz

  • *****
  • 159
  • +0/-0
Webmail Attachment Size - Again!
« Reply #3 on: September 04, 2004, 03:36:48 PM »
Does anybody knows a fix for webmail restrictions for SME 6.0