Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Martin on May 19, 2003, 12:15:07 PM

Title: mail size limit
Post by: Martin on May 19, 2003, 12:15:07 PM
I want to receive some mails with large attachments, but it is not possible to sent a mail to my sme server larger than 15Mb. Can I change the maximum size?
Title: Re: mail size limit
Post by: Hawk on May 19, 2003, 03:24:41 PM
Checkout
http://mirror.contribs.org/smeserver/contribs/dmay/mitel/howto/webmail-attachment-size-howto.html

Also 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
Title: Re: mail size limit
Post by: Martin on May 19, 2003, 03:47:01 PM
The problem is: I cannot receive files larger then 15Mb.
When somebody sent me a file larger then 15Mb, he gets an error from my sme server.
Title: Re: mail size limit
Post by: Bob on May 19, 2003, 07:10:16 PM
tell him to forward you a copy of the mail he receives and then copy it here. people may then be able to identify where the problem is occuring. Make sure to include the message header.
Title: Re: mail size limit
Post by: Martin on May 20, 2003, 12:49:53 AM
The message he gets is:
552 5.2.3 Message exceeds maximum fixed size (15000000)
Title: Re: mail size limit
Post by: Jáder Marasca on May 20, 2003, 05:47:23 AM
I have same problem on one server...

Hawk said:
"
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
"

I just can find upload_max_filesize on my php.ini... what should I do?
I used : (again as from Hawk post)

/sbin/e-smith/db configuration setprop php UploadMaxFilesize 10M
/sbin/e-smith/signal-event email-update

but just have that parameter set! And getting "page cannot be displayed" error!
Title: Re: mail size limit
Post by: Steven on May 26, 2003, 01:18:01 PM
in your
/var/qmail/control/databytes

What is the value? By default it is 0 which should allow any size email coming in.

Steven
Title: Re: mail size limit
Post by: Jáder Marasca on May 26, 2003, 03:33:19 PM
It´s ZERO! See:

[root@aguia root]# cat /var/qmail/control/databytes
0
[root@aguia root]#

And remember... I have two config with no value:
/sbin/e-smith/db configuration getprop php PostMaxSize
/sbin/e-smith/db configuration getprop php MemoryLimit


What I suppose to have on them?

Thanks!

Jáder
Title: Re: mail size limit
Post by: wxp on June 05, 2003, 04:33:24 PM
Hawk I had to restrict the attachments sizes.

I followed your way to do it and apparently it worked. Except the sender doesn't receive an email saying the attachment was too big.

Any idea why ?

Thanks
Title: Re: mail size limit
Post by: Mike on November 22, 2003, 03:11:03 AM
Could somebody confirm for me that the default attachment file size limit on webmail is 2MB and that the default on POP3/SMTP is 15MB? And that accounts unless set have unlimited email storage? Am Using SME 5.6