
Diagnose Zimbra Mailbox Database Errors Before Repair
Trace Zimbra DB failures to connection, storage, or corruption issues, then protect backups and choose a version-safe recovery path.
To raise Zimbra Webmail’s attachment limit, adjust both the individual upload limit and the maximum message size. In current Zimbra 10 documentation, zimbraFileUploadMaxSizePerFile controls the size of each uploaded file, zimbraMailAttachmentMaxSize sets the message-size limit for a user or class of service (COS), and zimbraMtaMaxMessageSize is the system-wide ceiling. The MTA ceiling must be at least as large as the user or COS limit, and it affects mail for the whole system.
A large attachment passes through several checks. The browser uploads a file, Zimbra builds an email message, and the MTA accepts or rejects the complete message. If one limit is lower than the others, changing a higher limit will not help. A proxy or another mail gateway in front of Zimbra can impose an additional cap.
| Setting | What it limits | Scope in current Zimbra 10 docs |
|---|---|---|
zimbraFileUploadMaxSizePerFile | Each uploaded attachment file | Global, domain, COS, or account |
zimbraMailAttachmentMaxSize | Total message size for a user | COS or account |
zimbraMtaMaxMessageSize | Maximum total message size accepted system-wide | Global; the Zimbra 10 guide documents a 150 MB ceiling |
Email size is larger than the original file size because MIME encoding adds overhead. A 50 MiB attachment therefore needs more than a 50 MiB message limit, and multiple attachments share that message limit. Choose a reasonable margin and remember that recipients’ mail systems may impose smaller limits.

Run these checks as the zimbra user. First note the product version, then inspect the global MTA limit and the effective COS/account settings:
su - zimbra
zmcontrol -v
zmprov gacf zimbraMtaMaxMessageSize zimbraFileUploadMaxSizePerFile
zmprov gc <cos_name> zimbraMailAttachmentMaxSize zimbraFileUploadMaxSizePerFile
zmprov ga user@example.com zimbraMailAttachmentMaxSize zimbraFileUploadMaxSizePerFile
Replace the COS and account placeholders with real names. An empty account-level value can mean the account inherits from its COS. Record current values so you can restore them. If an attribute is not recognized, do not substitute a similar-looking setting blindly; check the configuration guide for your installed release.
For example, if you want to allow one 50 MiB attachment, you might set the per-file upload cap to 50 MiB and the account or COS message limit to 80 MiB. The MTA global ceiling must be 80 MiB or higher. These example values are not universal recommendations: a larger global limit increases the size of messages every user and the inbound MTA may accept.

For the 80 MiB example, 80 × 1,048,576 = 83,886,080 bytes. Set the global value with zmprov:
zmprov mcf zimbraMtaMaxMessageSize 83886080
This is a system-wide limit, not a per-user exception. Zimbra 10 documentation states that zimbraMtaMaxMessageSize is the hard ceiling and cannot exceed 150 MB. Keep the value within that documented maximum and coordinate the change with your mail policy.
To raise the limit for every account in one COS, set its message-size attribute. To change just one mailbox, use the account command instead:
zmprov mc <cos_name> zimbraMailAttachmentMaxSize 83886080
zmprov ma user@example.com zimbraMailAttachmentMaxSize 83886080
Use the COS command or the account command as appropriate; do not apply both unless the account needs an explicit override. The same settings are available in the Administration Console under the COS or account’s Preferences → Composing Email, where the field is shown as Maximum Message Size (MB). User-level values override COS values.
For the 50 MiB per-file example, set the upload limit on the COS or account:
zmprov mc <cos_name> zimbraFileUploadMaxSizePerFile 52428800
zmprov ma user@example.com zimbraFileUploadMaxSizePerFile 52428800
Again, choose one scope. The Zimbra 10 configuration guide describes this attribute as the maximum size for each uploaded file and allows it at global, domain, COS, and account levels. If the per-file attribute is unset, the guide says the upload size falls back to zimbraFileUploadMaxSize. Do not raise a separate fallback setting unless the active release uses it and the observed error points to that limit.

The current Zimbra configuration guide marks the MTA message-size attribute as requiring an MTA restart. On each MTA host, apply that part of the change during an appropriate window:
zmmtactl restart
Recheck the global value and the account or COS values with zmprov. Then sign out and back in to refresh the web session. In Webmail, compose a test message with a file just below the new per-file limit, send it to a test mailbox, and confirm the recipient can open or download it. A successful upload alone does not prove the whole message passed the MTA limit.
If the browser still rejects the file before sending, check which mailbox node handled the upload and whether a reverse proxy or web gateway has a request-body limit. If the message uploads but sending returns a size error, inspect the rejection text and MTA logs; the global message cap or a downstream recipient system may be lower. Test a file near the intended limit, not one far above it.
For ZCS releases that predate the current Zimbra 10 attributes, the documented controls may instead include zimbraFileUploadMaxSize, zimbraMailContentMaxSize, and the MTA limit. Older layouts can require mailbox-service restarts or per-server changes. Check zmprov desc -a <attribute> and use the guide for that exact release before applying legacy commands.

References: Zimbra Daffodil (v10) Administrator Guide: Email Message Size Restriction; Zimbra 10 Configuration Guide; Zimbra: Configuring maximum message size; Zimbra Proxy configuration reference.

Trace Zimbra DB failures to connection, storage, or corruption issues, then protect backups and choose a version-safe recovery path.

Trace Zimbra’s deferred SMTP queue to the exact MX or relay, test TCP port 25 from the MTA, and fix the network path without deleting queued mail.

Find oversized Zimbra audit logs, check retention, and reclaim disk space while preserving required security records and avoiding the wrong audit file.

Separate a browser-side loading problem from a Zimbra server issue with safe checks, targeted log review, and version-aware recovery steps.

Publish the right DNS records, enable Zimbra DKIM signing, and verify SPF and DMARC alignment before enforcing mail authentication.

Configure per-domain LDAP authentication in Zimbra with a bind template or search filter, encrypted transport, and a test account before rollout.

Configure every Zimbra Proxy host to redirect webmail traffic to HTTPS, restart Nginx, and verify the redirect and certificate safely.

Set the GAL polling interval for a Zimbra domain, run an immediate sync, and verify updates without confusing directory lookup with address-book synchronization.

Diagnose a Zimbra LDAP boot failure by checking slapd, startup logs, disk space, TLS permissions, and host connectivity before restarting dependent services.