Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: calisun on November 13, 2006, 11:20:05 PM

Title: email attachement problem
Post by: calisun on November 13, 2006, 11:20:05 PM
There is an emplyee at our office here that is trying to email 7.6meg email attachement, the message says (Maximum Attachment Size: 10,485,760 bytes)
When he hits "attach" button, it uploads the file and shows the file as attachement, but when he hits send button, the window just goes white and nothing happens, the email never gets send.
Title: email attachement problem
Post by: byte on November 13, 2006, 11:38:46 PM
The limit is 15MB by default which can be changed via the DB configuration, I would check the /var/log/qpsmtpd/current logs for a message which it may say message too big...don't forget the email overhead including attachment size.

HTH

Edit - As you mention via webmail that would mean you are over the 10MB webmail limit
Title: email attachement problem
Post by: calisun on November 13, 2006, 11:54:34 PM
How can a 7.6MEG attachment be over the limit of 10MEG?
Title: email attachement problem
Post by: byte on November 14, 2006, 12:07:21 AM
Quote from: "calisun"
How can a 7.6MEG attachment be over the limit of 10MEG?


Don't forget it doesn't include any email overheads!
Title: email attachement problem
Post by: calisun on November 14, 2006, 12:27:25 AM
I just checked log files and I found this:

PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 10343505 bytes) in /home/httpd/html/horde/lib/Horde/MIME/Part.php on line 1095

How big are the overheads, and what is the actual attachment size allowed?
Title: email attachement problem
Post by: mmccarn on November 14, 2006, 01:10:01 AM
Here's someone who describes the same symptoms:
http://forums.contribs.org/index.php?topic=34014.0

Who says he fixed it by changing the PHP memory limits, possibly according to this post: http://forums.contribs.org/index.php?topic=33486.0

This is a horde / php / webmail issue, rather than an "email" issue...
Title: email attachement problem
Post by: byte on November 14, 2006, 10:34:16 AM
Quote from: "mmccarn"

This is a horde / php / webmail issue


People had this problem in the old days of SME when the webmail limit was only 2MB (which you could change) following post above will allow you to send bigger attachments.

I would have said possible a 5/6MB file with a reasonable normal amount of email message would be ok.
Title: email attachement problem
Post by: william_syd on November 14, 2006, 11:15:27 AM
Quote from: "calisun"
I just checked log files and I found this:

PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 10343505 bytes) in /home/httpd/html/horde/lib/Horde/MIME/Part.php on line 1095

How big are the overheads, and what is the actual attachment size allowed?


You hit the php 32M default memory limit.

Code: [Select]
memory_limit = {
    my $ml = $php{MemoryLimit} || "32M";
    $OUT .= "$ml";


See this post (http://forums.contribs.org/index.php?topic=33486.msg142868#msg142868) for the command to use to increase the value..
Title: Ok so no simple clickety method to change the limits ?
Post by: Agent86 on January 14, 2007, 03:39:56 AM
Why is there not a clickety method or something in the server manager to change the send and receive size limits for email ?

Please explain this to me ?

This is one of the simplest of things needed.
Especially for business use, I want to send someone a cad drawing or some script to have work done on it. I can't even send it. The one script I need someone to work on for me is like 25megs unzipped and I can't send it.

I do not want any limits on my sending capacity or at least I want much much higher limits ?

Is this the only way to fix this is to edit some files ? And These Commands ?

And what happens when I do upgrades? Will those changes be gone and I'll have to do it again ?

Please advise
Thanks
Title: Re: Ok so no simple clickety method to change the limits ?
Post by: mrjhb3 on January 14, 2007, 06:54:29 AM
Quote from: "Agent86"
Why is there not a clickety method or something in the server manager to change the send and receive size limits for email ?

Please explain this to me ?

This is one of the simplest of things needed.
Especially for business use, I want to send someone a cad drawing or some script to have work done on it. I can't even send it. The one script I need someone to work on for me is like 25megs unzipped and I can't send it.

I do not want any limits on my sending capacity or at least I want much much higher limits ?

Is this the only way to fix this is to edit some files ? And These Commands ?

And what happens when I do upgrades? Will those changes be gone and I'll have to do it again ?

Please advise
Thanks


You could always sponser one of the devs to get the work done.  As it has been stated many times, there are many requests that come in, but far few developers to handle the requests, and far too many of us that want something done, but don't want to contribute to the cause.

Your config DB settings are maintained during an upgrade, and they are restored during a restore, so if you make changes, they are retained.

John
Title: Re: Ok so no simple clickety method to change the limits ?
Post by: william_syd on January 14, 2007, 08:03:31 AM
Quote from: "Agent86"


I do not want any limits on my sending capacity or at least I want much much higher limits ?

Please advise
Thanks


Are these the limits with using an email client and not webmail ?

If so, try..
Code: [Select]
config delprop qmail MaxMessageSize
signal-event email-update
Title: Re: Ok so no simple clickety method to change the limits ?
Post by: Agent86 on January 14, 2007, 04:57:55 PM
Quote from: mrjhb3
Quote from: "mrjhb3"


You could always sponser one of the devs to get the work done.  As it has been stated many times, there are many requests that come in, but far few developers to handle the requests, and far too many of us that want something done, but don't want to contribute to the cause.

Your config DB settings are maintained during an upgrade, and they are restored during a restore, so if you make changes, they are retained.

John


I need to do some sponsoring,this is true; and thanks for the info on the DB settings

I'll work on that some and see how it goes.

I'll look more closely into the sponsoring topics I've not had much time to really understand the process etc.

Thanks again.
Title: Re: Ok so no simple clickety method to change the limits ?
Post by: Agent86 on January 14, 2007, 05:51:20 PM
Quote from: "william_syd"
Quote from: "Agent86"


I do not want any limits on my sending capacity or at least I want much much higher limits ?

Please advise
Thanks


Are these the limits with using an email client and not webmail ?

If so, try..
Code: [Select]
config delprop qmail MaxMessageSize
signal-event email-update


Well it seemt to be both webmail and client problem as it appears In searching the forums. Except the webmail give a blank page but the client will tells you exceeds the globe size of the server and to try sending smaller file and things like that.
But I think the max size for sending mail by default is 15MB sending size from what I can tell reading the forums thus the edits that have been listed for editing the DB
I know nothing of it but just what I'm reading on it. just fyi
and thanks
Title: email attachement size
Post by: Agent86 on January 14, 2007, 06:34:26 PM
Ok so to conclude on the email size limits based on what I've been reading and for  fellow newbies LOL

Read to the end to see william_syd's post of commands and examples which he has corrected me on

But for client sending larger attachment, the following commands did appear to fix things for my client attachments
config delprop qmail MaxMessageSize
signal-event email-update


Anyhow Thats All I know
Thanks
Title: Re: Ok so no simple clickety method to change the limits ?
Post by: byte on January 14, 2007, 07:44:57 PM
Quote from: "Agent86"
I want to send someone a cad drawing or some script to have work done on it. I can't even send it. The one script I need someone to work on for me is like 25megs unzipped and I can't send it.

I do not want any limits on my sending capacity or at least I want much much higher limits ?


What you should remember is that the email protocol is not designed for transferring huge files as most of the servers in the world have a limit for example I know in the dial up days the limit used to be 2MB these days the general rule is for these days I would say 10/15MB even that is still big in email terms.
Title: Webmail
Post by: Agent86 on January 14, 2007, 09:15:05 PM
Now with sending to webmail to test the attachment size topic ?

I add an attachment of 1.rar file and 1.zip file
Then click on update button, then click send message.

A popup screen comes up and says:
You have chosen to open compose.php
from http://foolishlys.com what should the webbrowser to with this file
  Open with ( browse)
  save to disk
  do this automatically with files like this from now on.

I don't know why this would popup,

This seems to be a standard firefox message when opening files I've downloaded or something but this is now getting ridiculous LOL

Anyhow I can't test my webmail to see if the large attachment  changes are working ?

I don't recall getting this popup message before when sending attachments ? with webmail

I believe before it just gave me a blank page when sending attachements that are too large ?

Anyhow now what ?
Title: Re: Ok so no simple clickety method to change the limits ?
Post by: Agent86 on January 14, 2007, 09:30:55 PM
Quote from: "byte"
Quote from: "Agent86"
I want to send someone a cad drawing or some script to have work done on it. I can't even send it. The one script I need someone to work on for me is like 25megs unzipped and I can't send it.

I do not want any limits on my sending capacity or at least I want much much higher limits ?


What you should remember is that the email protocol is not designed for transferring huge files as most of the servers in the world have a limit for example I know in the dial up days the limit used to be 2MB these days the general rule is for these days I would say 10/15MB even that is still big in email terms.


Yep I think your right, but what to do in the case of sending a large set of cad drawings ? like 40 meg. ? or so isn't it good to have at least some type of account to send this or should I post to ibay and send the link or something.
But basically this seems to be an ongoing problem I'm have work done on a script or things worked on and I can't send a zip file or s series of a few files cause I have limitations.
I do know that when sending large files to my comcast account they were rejected due to being too large.
so perhaps I should change the limits back to defaults or something

And with my webmail popup effect that now occurs I'm not sure what to do now or how to work around that too.

Thanks
Steve
Title: Re: Ok so no simple clickety method to change the limits ?
Post by: byte on January 14, 2007, 10:48:15 PM
Quote from: "Agent86"
Yep I think your right, but what to do in the case of sending a large set of cad drawings ? like 40 meg. ? or so isn't it good to have at least some type of account to send this or should I post to ibay and send the link or something.


I setup a ftp location for our CAD team to transfer drawings, or depending if they need to edit them I would get them to pdf them then send via email.
Title: Re: email attachement size
Post by: william_syd on January 14, 2007, 11:57:28 PM
Quote from: "Agent86"

login as root:
config setprop php MemoryLimit nnnn
config setprop php PostMaxSize mmmm
config setprop php UploadMaxFilesize pppp
expand-template /etc/php.ini
/etc/rc7.d/S86httpd-e-smith restart

example:
[root@myserver ~]# config setprop php MemoryLimit 32M
[root@myserver ~]# config setprop php max_execution_time 300
[root@myserver ~]# config setprop php upload_max_filesize 32M
[root@myserver ~]# config setprop php post_max_size 32M
[root@myserver ~]# expand-template /etc/php.ini
[root@myserver ~]# /etc/rc7.d/S86httpd-e-smith restart



From the zend/php developer manual.
Quote
post_max_size  integer

    Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize.

    If memory limit is enabled by your configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size.


http://devzone.zend.com/manual/view/page/

Default SME values are..

Quote from: "php"
MemoryLimit 32M
PostMaxSize 20M
UploadMaxFilesize 10M
MaxExecutionTime 30


Quote from: "qmail"
MaxMessageSize 15000000


Note also there is no underscore in these php properties used in the configuration db .

To correct your example..

Code: [Select]
[root@myserver ~]# config delprop php MemoryLimit
[root@myserver ~]# config delprop php max_execution_time
[root@myserver ~]# config delprop php upload_max_filesize
[root@myserver ~]# config delprop php post_max_size


Then (my recommendation)..

Code: [Select]
[root@myserver ~]# config setprop php MemoryLimit 128M
[root@myserver ~]# config setprop php PostMaxSize 100M
[root@myserver ~]# config setprop php UploadMaxFilesize 50M
[root@myserver ~]# config setprop php MaxExecutionTime 600
[root@myserver ~]# expand-template /etc/php.ini
[root@myserver ~]# /etc/rc7.d/S86httpd-e-smith restart
Title: No underscore
Post by: Agent86 on January 15, 2007, 12:33:45 AM
No underscore ? got it

Thanks, I'm glad I didn't break anything

Please advise further on this subject
Title: Re: No underscore
Post by: william_syd on January 15, 2007, 12:41:10 AM
Quote from: "Agent86"

Please advise further on this subject


I was in the middle of an edit when you posted. Please see my post above.
Title: Limits
Post by: Agent86 on January 15, 2007, 01:03:29 AM
So will these limits only effect the email?
What about the file storage limits for the file manager, which is one of the RPM's for Gollem I've installed ?

Any concerns here ?
Title: Re: Limits
Post by: william_syd on January 15, 2007, 01:07:33 AM
Quote from: "Agent86"
So will these limits only effect the email?
What about the file storage limits for the file manager, which is one of the RPM's for Gollem I've installed ?

Any concerns here ?


I don't have the Gollem RPM installed.

You question is best answered by mrjhb3 the resident Horde guru.
Title: email size solved
Post by: Agent86 on January 15, 2007, 04:08:35 AM
Thanks
Title: Re: Webmail
Post by: CharlieBrady on January 15, 2007, 04:28:00 AM
Quote from: "Agent86"
Now with sending to webmail to test the attachment size topic ?


I don't understand what you are saying here. That doesn't seem to be a valid English question to me.

Quote

I add an attachment of 1.rar file and 1.zip file
Then click on update button, then click send message.

A popup screen comes up and says:
You have chosen to open compose.php
from http://foolishylys.com what should the webbrowser to with this file
  Open with ( browse)
  save to disk
  do this automatically with files like this from now on.

I don't know why this would popup,


I don't know either. It shouldn't. Have you reported this problem via the Bug Tracker?
Title: Sending with webmail
Post by: Agent86 on January 15, 2007, 02:25:27 PM
I was typing too fast sorry about that.

I meant I was going to test sending attachements with webmail as oppose to sending with my client to test things out some more.

And basically I've got this popup screen.

I'll test a few more times now that I've made a few changes with those commands you gave me for file sizes and things.

Thanks this has really helped me a lot I was starting to get a little discouraged with my SME server trying to make it due the things I want it to ?

Thanks again.
Title: Re: Sending with webmail
Post by: CharlieBrady on January 15, 2007, 04:45:01 PM
Quote from: "Agent86"

And basically I've got this popup screen.

...


Have you reported the problem via the Bug Tracker?
Title: email attachments
Post by: Agent86 on January 16, 2007, 04:24:22 AM
Hi and thanks

I did not get this screen from work, but only from home on the LAN

I did not report the bug until I can be sure that it is a bug and not some setting on my workstation, but I will

Thanks
Title: attachment no popup now
Post by: Agent86 on January 16, 2007, 02:42:16 PM
Hi

FYI after restarting the workstation the popup window that was appearing is not appearing now.

Must have just been a fluke
Thanks
Title: email attachement problem
Post by: del on January 16, 2007, 03:25:15 PM
Hi Agent86,

How about the webshare contrib? With this you could upload the 40mb file, send a link and the other person (using a user name and password) can download it, edit it and then upload it and email you that it is finished :D
That's what I do.

Regards,
Del
Title: Ibays
Post by: Agent86 on January 16, 2007, 07:56:16 PM
Well I do that now with Ibays, but I can really navigate a folder basically I have to enter the exact name of the file for example

www.domainname.com/ibayname/filename

not a problem really but would be nice to be able to browse to the folders or files and download or upload

I'm concerned about the contrib when updating what happens to the contribs ?

Please advise
Thanks
Title: email attachement problem
Post by: bpivk on January 16, 2007, 08:13:17 PM
Nothing happens to them. There can be issues if a contrib isn't supported on update, but i didn't have any problems with updating to this day.

And try the webshare contrib. Then you'll be able to browse, upload and download files.
Title: Can't seem to find the contribs
Post by: Agent86 on January 17, 2007, 03:58:06 AM
I'm sorry but I can't find the contribs page any more?
Title: Re: Can't seem to find the contribs
Post by: william_syd on January 17, 2007, 05:07:33 AM
Quote from: "Agent86"
I'm sorry but I can't find the contribs page any more?


http://mirror.contribs.org/smeserver/contribs//dmay/smeserver/7.x/smeserver-webshare-1.0.0-8dmay.noarch.rpm
http://mirror.contribs.org/smeserver/contribs//dmay/smeserver/7.x/perl-Apache-Htpasswd-1.5.9-1.1.el3.rf.noarch.rpm
Title: Re: Can't seem to find the contribs
Post by: Agent86 on January 19, 2007, 03:18:22 AM
Quote from: "william_syd"
Quote from: "Agent86"
I'm sorry but I can't find the contribs page any more?


http://mirror.contribs.org/smeserver/contribs//dmay/smeserver/7.x/smeserver-webshare-1.0.0-8dmay.noarch.rpm
http://mirror.contribs.org/smeserver/contribs//dmay/smeserver/7.x/perl-Apache-Htpasswd-1.5.9-1.1.el3.rf.noarch.rpm


Thanks

Do you know how this contrib might effect Gollem, or smeserver-remoteuseraccess rpm, which automatically chroot's each user to their home directory ?

I'm concerned that this may somehow cancel each other out LOL ?

Please advise
Thanks
Title: Re: Can't seem to find the contribs
Post by: mrjhb3 on January 19, 2007, 04:11:20 AM
Quote from: "Agent86"
Quote from: "william_syd"
Quote from: "Agent86"
I'm sorry but I can't find the contribs page any more?


http://mirror.contribs.org/smeserver/contribs//dmay/smeserver/7.x/smeserver-webshare-1.0.0-8dmay.noarch.rpm
http://mirror.contribs.org/smeserver/contribs//dmay/smeserver/7.x/perl-Apache-Htpasswd-1.5.9-1.1.el3.rf.noarch.rpm


Thanks

Do you know how this contrib might effect Gollem, or smeserver-remoteuseraccess rpm, which automatically chroot's each user to their home directory ?

I'm concerned that this may somehow cancel each other out LOL ?

Please advise
Thanks


Gollem does an ftp under the covers.  The webshare gives you secure https access to files.  In my testing, they didn't conflict at all because they serve two different purposes.

JB
Title: Perfect thanks
Post by: Agent86 on January 19, 2007, 03:20:12 PM
Thanks that what I was hoping
Title: email attachement problem
Post by: bpivk on January 19, 2007, 03:31:58 PM
Webshare makes folders like ibays and gollem works like a ftp program so they not only do different things but they connect to different folders (gollem = ibay, user dir ; webshare = webshare dir)
Title: This is what happened
Post by: Agent86 on January 20, 2007, 10:51:45 PM
I installed the smeserver-webshare-1.0.0-8dmay.noarch.rpm first and in complained about no perl-Apache-Htpasswd-1.5.9-1.1.el3.rf.noarch.rpm or something similar.
So I installed the perl-Apache-Htpasswd-1.5.9-1.1.el3.rf.noarch.rpm  
reconfig, then reboot

Then installed the smeserver-webshare-1.0.0-8dmay.noarch.rpm
And this appeared during the install
I'm not sure if this is normal or not I just wanted to be sure nothing was broken now ?


Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/esmith/FormMagick.pmline 237, <LEXIN> line 42.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/XML/Parser/Expat.pm line 474.
Use of uninitialized value in print at /usr/lib/perl5/site_perl/CGI/FormMagick/Setup.pm line 179.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/esmith/FormMagick.pmline 237, <LEXIN> line 99.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/XML/Parser/Expat.pm line 474.
Use of uninitialized value in print at /usr/lib/perl5/site_perl/CGI/FormMagick/Setup.pm line 179.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/esmith/FormMagick.pmline 237, <LEXIN> line 155.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/XML/Parser/Expat.pm line 474.
Use of uninitialized value in print at /usr/lib/perl5/site_perl/CGI/FormMagick/Setup.pm line 179.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/esmith/FormMagick.pmline 237, <LEXIN> line 211.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/XML/Parser/Expat.pm line 474.
Use of uninitialized value in print at /usr/lib/perl5/site_perl/CGI/FormMagick/Setup.pm line 179.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/esmith/FormMagick.pmline 237, <LEXIN> line 268.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/XML/Parser/Expat.pm line 474.
Use of uninitialized value in print at /usr/lib/perl5/site_perl/CGI/FormMagick/Setup.pm line 179.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/esmith/FormMagick.pmline 237, <LEXIN> line 325.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/XML/Parser/Expat.pm line 474.
Use of uninitialized value in print at /usr/lib/perl5/site_perl/CGI/FormMagick/Setup.pm line 179.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/esmith/FormMagick.pmline 237, <LEXIN> line 382.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/XML/Parser/Expat.pm line 474.
Use of uninitialized value in print at /usr/lib/perl5/site_perl/CGI/FormMagick/Setup.pm line 179.
smeserver trap post-install: smeserver-webshare


Please advise
Thanks
Title: Webshare
Post by: Agent86 on January 23, 2007, 01:19:54 AM
Quote from: "bpivk"
Nothing happens to them. There can be issues if a contrib isn't supported on update, but i didn't have any problems with updating to this day.

And try the webshare contrib. Then you'll be able to browse, upload and download files.


Is there a file limitation size for webshare contrib

I've installed and  am having a problem uploading a 81MB zip file from work client computer on windoze ?

Please advise