Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-18-2008, 02:49 AM
Senior Member
 
Posts: 69
Question [SOLVED] How to raise/increase the max file attachments? Error with zimbraMtaMaxMessa

Hello.

First, I like to say that Zimbra is just awesome. Finally, beauty + features + open source all rolled up into one.

I've got ZCS 5.0.6 64-bit on CentOS 5.1 running wonderfully.

I need to be able to finish migrating messages from the old server to ZCS, but some of the attachments from emails in the older server are huge.

I need to raise ZCS's max sizes to 50MB to 100MB (yes, that big but for just a few emails, I was young and stupid back then. Now I'm just old ), but I'm getting a "zimbraMtaMaxMessageSize must be a valid integer:" error:

Code:
[zimbra@power ~]$ zmprov mcf zimbraFileUploadMaxSize 50000000000
[zimbra@power ~]$ 
[zimbra@power ~]$ zmprov mcf zimbraMtaMaxMessageSize 50000000000
ERROR: account.INVALID_ATTR_VALUE (zimbraMtaMaxMessageSize must be a valid integer: 50000000000)
[zimbra@power ~]$ zmprov mcf zimbraMtaMaxMessageSize 5000000000
ERROR: account.INVALID_ATTR_VALUE (zimbraMtaMaxMessageSize must be a valid integer: 5000000000)
[zimbra@power ~]$
I also tried it in the admin GUI ("Global Settings" --> "MTA" --> "Maximum message size (kb):" ), but got the same error.

I've found bugzilla #26840, but it shows it's resolved in 5.0.5:
Bug 26840 – Wrong error while trying to set the mta max size

What are valid integers for 50MB or 100MB? or even higher?

Thank you!
Reply With Quote
  #2 (permalink)  
Old 06-18-2008, 10:36 AM
Special Member
 
Posts: 124
Default

838860800 bits = 100 MB

zmprov gacf | grep zimbraMtaMaxMessageSize
zmprov gacf | grep zimbraFileUploadMaxSize
--> to check the size of each

zmprov mcf zimbraMtaMaxMessageSize 838860800
zmprov mcf zimbraFileUploadMaxSize 838860800
--> to make each one 100 MB
Reply With Quote
  #3 (permalink)  
Old 06-18-2008, 10:47 AM
Zimbra Consultant & Moderator
 
Posts: 19,655
Default

Quote:
Originally Posted by frankman View Post
What are valid integers for 50MB or 100MB? or even higher?
What you've done in your settings is give the maximum size of 5GB, that's what invalid about it. It's outside the allowed range for that variable, it's a 32 bit signed integer and has a maximum size of 2GB.

BTW the bugzilla entry you referenced wasn't 'fixed', it was invalid and therefore closed.
__________________
Regards


Bill
Reply With Quote
  #4 (permalink)  
Old 06-18-2008, 10:58 AM
Special Member
 
Posts: 124
Default

5.820766091347 GB, to be exact. Sorry... too much coffee.
Reply With Quote
  #5 (permalink)  
Old 06-18-2008, 11:00 AM
Senior Member
 
Posts: 69
Thumbs up

Thanks, Daniel! That worked:

Code:
[zimbra@power ~]$ zmprov mcf zimbraMtaMaxMessageSize 838860800
[zimbra@power ~]$ zmprov gacf | grep zimbraMtaMaxMessageSize
zimbraMtaMaxMessageSize: 838860800
[zimbra@power ~]$ zmprov gacf | grep zimbraFileUploadMaxSize
zimbraFileUploadMaxSize: 50000000000
[zimbra@power ~]$ zmprov mcf zimbraFileUploadMaxSize 838860800
[zimbra@power ~]$ zmprov gacf | grep zimbraFileUploadMaxSize
zimbraFileUploadMaxSize: 838860800
[zimbra@power ~]$
And thanks, phoenix for the extra info. I didn't know the number was in bits!

(It'd be nice to have add that info to the error message that the number is in bits, rather than bytes or other. I got used to other programs and installers to type in a whole number (ie. 5000000 for 5 megabytes, etc.) or "K", "M" or "G" after the number (ie. 5M, 10G, etc.) and the program would do the conversion for me. )

I'll mark this as solved.
Reply With Quote
  #6 (permalink)  
Old 11-27-2008, 10:55 PM
Advanced Member
 
Posts: 178
Default

Quote:
Originally Posted by danielfarrelly View Post
838860800 bits = 100 MB

zmprov gacf | grep zimbraMtaMaxMessageSize
zmprov gacf | grep zimbraFileUploadMaxSize
--> to check the size of each

zmprov mcf zimbraMtaMaxMessageSize 838860800
zmprov mcf zimbraFileUploadMaxSize 838860800
--> to make each one 100 MB
This is incorrect, I think. Max message size (and File upload max size) are expressed in bytes, not bits. A 100MB setting would be 100x1024x1024
104857600. Your example is actually 800MB.
Reply With Quote
  #7 (permalink)  
Old 12-05-2008, 02:08 PM
Special Member
 
Posts: 124
Default

Quote:
Originally Posted by LaFong View Post
This is incorrect, I think. Max message size (and File upload max size) are expressed in bytes, not bits. A 100MB setting would be 100x1024x1024
104857600. Your example is actually 800MB.
Maximum message size is measured in kb (see Global Settings).
100 MB = 819200 kb
100 MB = 104857600 bytes
100 MB = 838860800 bits

Consequently...
100 MB = 800 Mb, not MB
Reply With Quote
  #8 (permalink)  
Old 12-05-2008, 03:46 PM
Advanced Member
 
Posts: 178
Default

Your math is right, but the web page isn't. I think the Global Settings page is wrong. It is not kb.

Global settings shows 50000kb:
[root@mail bin]# ./zmprov gcf zimbraMtaMaxMessageSize
zimbraMtaMaxMessageSize: 51200000

[root@mail bin]# grep message_size_limit /opt/zimbra/postfix/conf/main.cf
message_size_limit = 51200000

Global settings shows 100000kb:
[root@mail bin]# ./zmprov gcf zimbraMtaMaxMessageSize
zimbraMtaMaxMessageSize: 102400000

[root@mail bin]# grep message_size_limit /opt/zimbra/postfix/conf/main.cf
message_size_limit = 102400000

From postfix.org site:
message_size_limit (default: 10240000)
The maximal size in bytes of a message, including envelope information.
From Zimbra site:
Configuring maxmessagesize - Zimbra :: Wiki

And, zimbraFileUploadMaxSize is no longer used for mail:
"Until ZCS 5, there is a separate configuration parameter for file uploads."

Of course, the General Information tab of General Settings still shows it, but its use has changed:
Bug 27610 – Use zimbraMtaMaxMessageSize exclusively for mail, and use zimbraFileUploadMaxSize for docs/briefcase
Turns out, it now only applies to Docs/Briefcase, not mail messages:
"Add zimbraFileUploadMaxSize to GlobalConfig -> General since it is not applied to MTA but docs/briefcase"

I tried to check whether the docs/briefcase max (apparently in SOAP) was set in kb, but didn't have any luck. After many years, and hundreds of applications, I do not recall a single one which set sizes in kb.

Last edited by LaFong; 12-05-2008 at 06:50 PM..
Reply With Quote
  #9 (permalink)  
Old 02-22-2009, 11:34 PM
Senior Member
 
Posts: 65
Default How I can set max size for each user

I want to use zimbraMtaMaxMessageSize for set maximum size for each user.
I try to use this command
# zmprov ma user@domain.com +zimbraMtaMaxMessageSize 1024000
but I got error like this
ERROR: service.INVALID_REQUEST (invalid request: LDAP schema violation: [LDA rror code 65 - attribute 'zimbraMtaMaxMessageSize' not allowed])

How can I do for solve this problem.
***If zimbra can not do this feature please let me know.

thank you for reply.

Last edited by ohm_g7; 02-22-2009 at 11:54 PM..
Reply With Quote
  #10 (permalink)  
Old 02-23-2009, 12:01 AM
Advanced Member
 
Posts: 178
Default

I think zimbraMtaMaxMessageSize creates a Postfix global setting, and cannot be set per user.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.