View Full Version : Email attachment limits?
SuperDon 10-19-2001, 09:22 AM Hi,
I have a Linux box running CPanel.
Is there a limit to the size of email attachments? Cant this be configured and if so how?
Thanks.
RutRow 10-20-2001, 12:58 AM Well, I don't know much about CPanel, but if your default MTA is sendmail, then you can add this option to your mc file.
define(`confMAX_MESSAGE_SIZE', `1048576')dnl
Then re-run m4 to build your conf file. The above line would make the max message size 1MB. Adjust as necessary.
RutRow 10-20-2001, 01:04 AM Oh, one stupid thing about this (which I haven't figured out yet) is that if someone sends you a 10 MB file, your server will accept all the data until the last bit has been recieved, then it sends a message back saying the email was too large and cancels the whole thing. If anyone knows a way around this, I'd like to hear it.
SuperDon 10-20-2001, 05:58 AM So, by default there is no attachmnet limit?
RutRow 10-20-2001, 09:56 AM If that option is not in your config file, then there probably is no limit. Most mail servers that I have seen,though, are usually reconfigured for a ~5MB limit.
mithilesh 10-20-2001, 07:07 PM It is also depend upon how much you have space on server.Because If you have 5mb space on server then how can you received a mail of 10mb.:o
magnafix 10-21-2001, 12:56 AM Hi,
The post above suggests regenerating your mc file. This isn't necessary in late versions (8.11?) of sendmail. The /etc/sendmail.cf file comes pre-generated with a limit, although it is commented out. All you need to do is uncomment it so it reads:
O MaxMessageSize=1000000
then: service sendmail restart
That would limit mail attachments to 1meg.
GTOTYPE 10-21-2001, 01:01 AM As a webmaster... I don't like the idea of companies limiting my size limit..... If I pay for 100 MB of space I expect to be able to recieve 100 MB worth of attachments if possible.
-Its a bad business practice.
JohnCrowley 10-21-2001, 01:19 AM I agree you should be able to receive up to 100 MB worth of attachments, but being able to receive a 100 MB attachment itself is not only a serious load on a shared server, but not the way email was intended to be used. Limits are placed on the size of attachments to preclude any overload of a server trying to parse and distribute multiple 100 MB attachments simultaneously.
- John C.
RutRow 10-21-2001, 12:44 PM Originally posted by magnafix
Hi,
The post above suggests regenerating your mc file. This isn't necessary in late versions (8.11?) of sendmail. The /etc/sendmail.cf file comes pre-generated with a limit, although it is commented out. All you need to do is uncomment it so it reads:
O MaxMessageSize=1000000
then: service sendmail restart
That would limit mail attachments to 1meg.
I am not suggesting re-generating the mc file... just a simple edit. Same as editing the cf file directly, only I find the mc file is slightly more human readable than the cf file. Just personal preference. :)
RutRow 10-21-2001, 12:55 PM Its a bad business practice.
Whoa, I thought this discussion was about HOW to set/unset email limits, not the ethics of setting limits. You do not know my reasons for doing this so please don't make judgements on my practices. Please try to stay on topic.
|