Size limit while migrating using Vandelay

Your question

Hi,

while importing messages using Vandelay, I get several errors like this:

blob upload failed: single object exceeds the server size limit and cannot be split: blob upload of 85778777 bytes exceeds maxSizeUpload (50000000); exceeds the target server size limit, so this message is skipped and re-running will not migrate it

I tried to increase Email.maxMessageSize , Email.maxAttachmentSize and Imap.maxRequestSize as well as the reverse proxy’s request limit, but it’s still happening. I also looked into the source code and found maxSizeUpload inside CoreCapabilities but I didn’t understand where the setting comes from.

What size limit do I need to set in order to allow imports of larger emails?

The setting is maxUploadSize on the JMAP singleton, not the Email settings. It defaults to 50,000,000 bytes, which matches the error you’re seeing.

Increase it on the Jmap object (via the WebUI settings editor or stalwart-cli), e.g.:

{
  "maxUploadSize": 150000000
}

Changing Email.maxMessageSize/maxAttachmentSize won’t help here since those limit message/attachment size after parsing, while maxUploadSize governs the raw blob upload used by the JMAP upload endpoint (which Vandelay’s import relies on). See the JMAP protocol upload limits docs.

This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.