Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: fastautomation on June 19, 2008, 09:47:11 AM

Title: attachment size limit
Post by: fastautomation on June 19, 2008, 09:47:11 AM
Can anyone help, I'm trying to use scan to e-mail on a digital photocopier. I'm using the sme server as the smtp gateway for the copier and when e-mailing it says that the server has rejected the e-mail because the attachment is to big. The attachment is only about 300kb and I've set the attachment limit on the server to 15Mb. Please can someone give me any suggestions as I'm out of things to try.
Title: Re: attachment size limit
Post by: mgic_box on June 19, 2008, 11:07:58 AM
Can anyone help, I'm trying to use scan to e-mail on a digital photocopier. I'm using the sme server as the smtp gateway for the copier and when e-mailing it says that the server has rejected the e-mail because the attachment is to big. The attachment is only about 300kb and I've set the attachment limit on the server to 15Mb. Please can someone give me any suggestions as I'm out of things to try.




 For the limitation of emails, it's 15MB by default. You can change this setting with


Code: [Select]

config setprop qmail MaxMessageSize 35000000
signal-event email-update


Title: Re: attachment size limit
Post by: fastautomation on June 19, 2008, 11:11:32 AM
I've changed it to different sizes but it makes no difference. Is there a way to remove this limitation?
Title: Re: attachment size limit
Post by: mgic_box on June 19, 2008, 11:13:43 AM
I've changed it to different sizes but it makes no difference. Is there a way to remove this limitation?

 I Do not Know, May some one else can Help....???

 Sorry for not helping more...

 Regards.

Title: Re: attachment size limit
Post by: byte on June 19, 2008, 12:23:41 PM
Please explain in more detail i.e are you using the webmail to attach files ? or are you using an email client to attach and send ?

If its the webmail side then the default attachment size is 10MB (Search forum to find out how to tweak)

If its the email client side then 15MB is the default and to change the value do as per mgic_box  reply
Title: Re: attachment size limit
Post by: fastautomation on June 19, 2008, 03:55:32 PM
It's a digital photocopier that I'm trying to send from, all the copier asks for is and smtp server. If I use our ISP's smtp server, it works fine but not when I use the sme server as the smtp server.
Title: Re: attachment size limit
Post by: mercyh on June 19, 2008, 06:04:18 PM
You might do a:

Code: [Select]
config show qmail
to verify what the setting is.

(If you by chance put in 15 or 15000 instead of 15000000, that might explain it.)

My test server returns:
[root@testserver ~]# config show qmail
qmail=service
    MaxMessageSize=15000000
    status=enabled

Also remember these commands are case sensitive
Title: Re: attachment size limit
Post by: imcintyre on June 19, 2008, 07:53:19 PM
This may help.

http://forums.contribs.org/index.php?topic=39896.0
Title: Re: attachment size limit
Post by: mmccarn on June 19, 2008, 10:45:40 PM
I've updated the wiki page on email size limits: http://wiki.contribs.org/Email#Set_max_email_size

Are you certain that your emails are not being blocked by the qpsmtpd check_basicheaders plugin (which rejects all email that does not contain a valid date and a valid "From:" header)?
Title: Re: attachment size limit
Post by: mercyh on June 19, 2008, 10:57:54 PM
mmccarn,

Your wiki edit looks good to me. I wonder if fastautomation could post his whole reject message from the copier?

It is interesting that all the different default settings have not been standardized as it does not make too much sense to have one be 10mg and another be 25mg.
Title: Re: attachment size limit
Post by: zatnikatel on June 19, 2008, 11:31:11 PM
It's a digital photocopier that I'm trying to send from, all the copier asks for is and smtp server. If I use our ISP's smtp server, it works fine but not when I use the sme server as the smtp server.

do you have your own domian name and if you are sending out straight though sme and you have a dhcp ipaddress some other isp will reject it yahoo is bad on this one you could also setup SME in the email part to use your ISP smtp server if you like 
Title: Re: attachment size limit
Post by: CharlieBrady on June 20, 2008, 12:19:01 AM
I've changed it to different sizes but it makes no difference.

Then chances are you've diagnosed the problem incorrectly. Why do you think that attachment size limitation is the problem? Have you looked in the qpsmtpd log file? If so, what exactly does it say?