[imp] attachement bigger than 12MB

Kim Hoffman khoffman at uwo.ca
Fri Jun 13 10:32:17 PDT 2003


Hope this helps.

Initially I had difficulties adding more than one attachment nothing more than 
1MB.  Got help from Eric on this.  Then I got a bit further.  Could send some 
under 1MB.  Anything more would give me an error page about "Server not found" 
when I tried to attach.  By increasing the settings as indicated by Ian and 
Eric, I got past that.  Finally could attach a file or files bigger than 3.4M.  
However sending anything bigger than that would give me a message:
 "There was an error sending your message: unable to send data"
Found out that our sendmail/SMTP had a limit of 5000000 bytes. (I had the same 
problem with sending files bigger than 3.5M using our PINE client).

Also found out that the files grew in size when one sends it attached (~1.368 X 
original size).  Listed at the end of the email are the 'experimental' results.

I got my attachments to work after 'playing' around with the settings in 
 /etc/php.ini and
 /etc/httpd/conf.d/php.conf

ian turley mentioned to check in php.ini file the three settings:
; Maximum amount of memory a script may consume (8MB)
memory_limit = 8M
; Maximum size of POST data that PHP will accept.
post_max_size = 8M
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

I increased the above in the same ratio 64M,64M,8M.  Not sure whether there is 
a formula for increasing the size.  This might be an overkill.  Does someone 
has a formula for calculating this?

Eric Rostetter mentioned:
- If your apache config has the above AddType, and
  your /etc/httpd/conf.d/php.conf has the
  SetOutputFilter, then that is your problem. 
  So I took out:
   AddType application/x-httpd-php .php
- /etc/httpd/conf.d/php.conf 
   LimitRequestBody 524288 (set to a higher number)

========================
Ratio for .zip file
====================
Ratio: 
 1479.97/1081.52 = 1.368 
 3436.94/2511.61 = 1.368

As seen in Windows Explorer:
 71_win_ldap_en.zip 1082 KB application/x-zip-compressed 
 toadfree.zip 2512 KB
 
On sending as indicated in mail.uwo.ca:
 71_win_ldap_en.zip 1081.52 KB application/x-zip-compressed 
 toadfree.zip 2511.61 KB application/x-zip-compressed 

On Receiving as indicated in mail.uwo.ca:
 71_win_ldap_en.zip application/x-zip-compressed 1479.97 KB  
 toadfree.zip application/x-zip-compressed 3436.94 KB  

Ratio for .pdf files
===========================
Ratio: 
 685.46/500.92   = 1.368
 1864.62/1362.61 = 1.368
 1862.13/1360.78 = 1.368
 305.24/223.06   = 1.368

As seen in Windows Explorer:
 70-installguide-en.pdf 501 KB 
 UWO_50000_Quote.pdf 1363 KB 
 UWO_1000_Quote.pdf 1361 KB 
 MM 8[1][1].0 Fact Sheet.pdf 224 KB 

On sending as indicated in mail.uwo.ca:
 70-installguide-en.pdf 500.92 KB application/pdf 
 UWO_50000_Quote.pdf 1362.61 KB application/pdf 
 UWO_1000_Quote.pdf 1360.78 KB application/pdf 
 MM 8[1][1].0 Fact Sheet.pdf 223.06 KB application/pdf 

On Receiving as indicated in mail.uwo.ca:
 2 70-installguide-en.pdf application/pdf 685.46 KB  
 3 UWO_50000_Quote.pdf application/pdf 1864.62 KB  
 4 UWO_1000_Quote.pdf application/pdf 1862.13 KB  
 5 MM 8[1][1].0 Fact Sheet.pdf application/pdf 305.24 KB  
 
=====================
Microsoft files

Ratio:
.xls  31.48/23        = 1.369
.doc  40.37/29.50     = 1.368
.ppt  2084.11/1575.50 = 1.368

As seen in Windows Explorer:
 checklist-features.xls 24 KB
 Criteria.doc 30 KB  
 UWO_52003.ppt application/vnd.ms-powerpoint 1523 KB

On sending as indicated in mail.uwo.ca:
 checklist-features.xls 23.00 KB application/vnd.ms-excel 
 Criteria.doc 29.50 KB application/msword 
 UWO_52003.ppt 1523.00 KB application/vnd.ms-powerpoint

On Receiving as indicated in mail.uwo.ca:
 checklist-features.xls application/vnd.ms-excel 31.48 KB  
 Criteria.doc application/msword 40.37 KB  
 UWO_52003.ppt application/vnd.ms-powerpoint 2084.11 KB   
  
=====================
Text files

Ratio:
 168.52/123.14 = 1.369
 135.83/99.26 = 1.368

As seen in Windows Explorer:
 adminTasks.txt 124 KB
 Utilities_inc.txt 100 KB

On Receiving as indicated in mail.uwo.ca:
 adminTasks.txt text/html 168.52 KB  
 Utilities_inc.txt text/plain 135.83 KB  

On sending as indicated in mail.uwo.ca: 
 adminTasks.txt 123.14 KB text/html 
 Utilities_inc.txt 99.26 KB text/plain 
 
========
.exe file

Ratio:
 3147.37/2300.00 = 1.368

As seen in Windows Explorer:
 50ntsrv.exe 2300 KB

On sending as indicated in mail.uwo.ca: 
 50ntsrv.exe 2300.00 KB application/octet-stream 

On Receiving as indicated in mail.uwo.ca:
 50ntsrv.exe application/octet-stream 3147.37 KB  

-- 
Kim Tan Hoffman
Information Technology Services
University of Western Ontario
London Ontario
Phone:  519 6612111-x86008




More information about the imp mailing list