Setting zimbraMailC...
 
Notifications
Clear all

[Solved] Setting zimbraMailContentMaxSize per-mailbox

5 Posts
3 Users
0 Reactions
862 Views
(@spada)
New Member
Joined: 3 years ago
Posts: 8
Topic starter  

Hello,
I need to tune some options like zimbraMailContentMaxSize, zimbraMtaMaxMessageSize and zimbraFileUploadMaxSize not just globally, but specifically for a single mailbox.
Even just for a specific domain could help.
Is it possible to do this and how ?

Trying to set that option like :
```
zmprov ma user@domain zimbraMailContentMaxSize 52428800
ERROR: service.FAILURE (system failure: unable to modify attrs: object class violation - unable to modify attributes: ldap host=xxxx.com:389: attribute 'zimbraMailContentMaxSize' not allowed)
```
It seems that the option is not available for the mailbox

I'm using Carbonio 24.7.0

Thanks 


   
Quote
(@anahuac)
Joined: 3 years ago
Posts: 340
 

I'm sorry to bring you bad news. There is no way to do that. 😑 


   
ReplyQuote
(@spada)
New Member
Joined: 3 years ago
Posts: 8
Topic starter  

Thank you.
Is there any interest to implement this functionality in a future version ?


   
ReplyQuote
(@anahuac)
Joined: 3 years ago
Posts: 340
 

I don't work for Zextras, so I can't speak for them at all, but in my opinion, that is so far below the list of needs that I have no hopes about it.

Regards


   
ReplyQuote
(@bisi_ii)
New Member
Joined: 6 years ago
Posts: 9
 

Claude Hiakiu 4.5 (via <a href=" removed link " target="_blank" rel="noopener">Duck.ai) agrees with @anahuac.  Try asking this question, and you will get a pretty detailed reply, especially if you set the input to "show reasoning" (vs "fast"). It is a little behind the times (only up to v24.7)

does carbonio ce have a command equivalent to this zimbra foss 8.8.15 command:
zmprov ma user@domain zimbraMailContentMaxSize 52428800

Claude Haiku 4.5

Based on my search results, I have some important news: Carbonio CE does not support per-mailbox zimbraMailContentMaxSize settings through any command-line equivalent.

The Core Issue

The attribute zimbraMailContentMaxSize is not allowed at the mailbox/account level in Carbonio CE. When you try to use the command you mentioned:

zmprov ma user@domain zimbraMailContentMaxSize 52428800

Carbonio CE will return an LDAP error:

ERROR: service.FAILURE (system failure: unable to modify attrs: object class violation - unable to modify attributes: attribute 'zimbraMailContentMaxSize' not allowed)

This limitation applies even in current versions of Carbonio (as of 24.7.0).


What You Can Do Instead

Global Configuration (Server/Config Level)

In Carbonio CE, you can only set zimbraMailContentMaxSize at the global server level, not per-account. The equivalent commands would be (/bin/bash):

carbonio prov modifyServer mail-server-name zimbraMailContentMaxSize 52428800

Or globally:

carbonio prov modifyConfig zimbraMailContentMaxSize 52428800

Carbonio CLI Syntax

Carbonio CE uses a different command structure than the traditional zmprov from Zimbra FOSS. The modern syntax is:

carbonio config set server {servername} zimbraMailContentMaxSize {value}

Or for global configuration:

carbonio config set global zimbraMailContentMaxSize {value}

Workaround Considerations

If you need per-user limits in Carbonio CE, you would need to:

  1. Use Class of Service (COS) settings to apply different limits to groups of users, though zimbraMailContentMaxSize has the same per-account restriction
  2. Configure limits at the MTA level using zimbraMtaMaxMessageSize instead (which is settable globally or per-server)
  3. File upload limits via zimbraFileUploadMaxSize (also global/server level only)

This is a known limitation in Carbonio CE that the development team has not prioritized for implementation.


   
ReplyQuote