Checkout
http://mirror.contribs.org/smeserver/contribs/dmay/mitel/howto/webmail-attachment-size-howto.htmlAlso try to use the search function of this forum. The following has been compiled from various postings and applies to SME v5.5 and above.
Note that this setting change will apply to any PHP based file
transfer ie webshare folders
By default PHP limits the file size a user can post via a php form and upload via a php form. To increase the file size limit you need to login as root and edit your /etc/php.ini file to increase the default values of the following lines and restart httpd.
The values can be set in bytes (1,048,576 per MB) or they can be set in MB by appending the value with an "M", ie. 8M.
To upload large files, this value must be larger than upload_max_filesize. If memory limit is enabled by configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size.
To increase/decrease the file-size restriction on webmail attachments. The default webmail attachment limit is 2Megabytes. In SME Server v5.5 and later you can set the webmail attachment limit by setting the php UploadMaxFilesize property. Once you'd done so you'll need to signal the email-update event. For example, to set the maximum attachment size to 50Mb.
/sbin/e-smith/db configuration setprop php UploadMaxFilesize 50M
/sbin/e-smith/signal-event email-update
To check the file-size restriction on webmail attachments
/sbin/e-smith/db configuration getprop php UploadMaxFilesize
/sbin/e-smith/db configuration getprop php PostMaxSize
/sbin/e-smith/db configuration getprop php MemoryLimit
If error like "The page cannot be displayed", and fails to send the email
check your /etc/php.ini look for
post_max_size and upload_max_filesize and memory_limit
To limit users qmail attachment sizes (not just for webmail)
/sbin/e-smith/db configuration setprop smtpfront-qmail MaxMessageSize
/sbin/e-smith/signal-event email-update
Where is the maximum message size in bytes. This will create a file 'databytes' in /var/service/smtpfront-qmail/env which has a value ie 2097152 for 2Mb (1048576x2)
To check qmail attachment file-size restriction
/sbin/e-smith/db configuration getprop smtpfront-qmail MaxMessageSize