Raise Zimbra’s Webmail Attachment Limit at Every Layer

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.

Know which limit is blocking the upload

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.

SettingWhat it limitsScope in current Zimbra 10 docs
zimbraFileUploadMaxSizePerFileEach uploaded attachment fileGlobal, domain, COS, or account
zimbraMailAttachmentMaxSizeTotal message size for a userCOS or account
zimbraMtaMaxMessageSizeMaximum total message size accepted system-wideGlobal; 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.

A dark administration settings panel with rows of controls and a highlighted numeric field
Review the server-level message setting before raising per-user attachment limits.

Check the active values and choose a target

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.

A dark user settings form with a highlighted numeric field among preference rows
Set the account or COS message allowance to match the policy for the affected users.

Apply the limits in the right scopes

Set the global MTA ceiling

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.

Set a COS or account message limit

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.

Set the individual file upload cap

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.

A webmail compose window with recipient rows, a message area, and an attachment progress bar
The compose view is where a user can confirm that a file uploads before sending.

Apply changes and verify both upload and delivery

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.

A dark email detail pane with a single attachment row and a download icon
Verify the message at the recipient side and check that its attachment is available.

Quick checks if the limit still appears unchanged

  • Confirm you changed the account or COS the test mailbox actually uses.
  • Make sure the per-file upload value and message-size values are set in bytes and are not reversed.
  • Verify the global MTA ceiling is at least as high as the account/COS message cap.
  • Check every MTA and mailbox node in a multi-server environment, plus any external proxy or gateway limit.
  • Compare the exact rejection message with the setting that governs that stage: upload, message composition, SMTP acceptance, or recipient delivery.

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

Leave a Comment

How to