Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maximum message size

Status
Not open for further replies.
Jul 17, 2003
155
US
Hi,

In sendmail.cf, I set the max size limit to 10Meg -->
MaxMessageSize=10000000 and restart sendmail
But when I send an attachment of 8 Meg it still does not work. My sendmail version is 8.12.10.

Any idea?
Thanks
 
# Add this to your sendmail.mc

define(`confMAX_MESSAGE_SIZE', `10000000')dnl

# Then using m4 rebuild a sendmail.cf.

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

M. Brooks
X Concepts LLC
 
In the log it says,
... did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA

In the returned mail body:

This message is larger than the current system limit or the recipient's mailbox is full. Create a shorter message body or remove attachments and try sending it again.
...#5.2.3 smtp;450 5.2.3 Msg Size greater than allowed by Remote Host>
 
Try this..

Add this into your sendmail.mc file, rebuild, restart sendmail.

define(`SMTP_MAILER_MAX', `10000000')dnl

Let me know if this works..





M. Brooks
X Concepts LLC
 
Clarify this for me..

With the large attachment:

- you are sendning an e-mail locally to yourself?

or

- you are sending an e-mail from another server to your machine?

or

- you are sending an e-mail (outbound) to another server?



M. Brooks
X Concepts LLC
 
I find something interesting. I cannot send an attachment larger than 7356041 Kbytes. However, when I am sending an attachment of this size 7073309 Kbytes (6.9 Mb), I notice a change in file size after receiving the file. When sending from the sendmail server to my Outlook mail on the PC, it shows the attachment of size 9Mb. When I sent this same attachment from outlook on my PC to myself, it shows the attachment of size 8Mb.

Interestingly, when I saved this file on the PC it shows the original size of 6.9Mb

Base on this finding, does this mean that sendmail attaches extra information onto the attachment to make it larger during sending; thus, making it exceed the size limit allowed of 10Mb?
 
Depending on how your mail client actually generates the mail message and sends it to the mail server you will see this going kind of activity. Chalk it up to overhead or if you want more specifics check the RFC's for MIME and HTML mail encoding.

Cogito Ergo Sum - Non Compos Mentis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top