Chat bot builder? Go to buzzmark.chat

SMTP error · Any server

552 5.3.4: Message size exceeds fixed limit

The error as servers send it Permanent - not retried
552 5.3.4 Message size exceeds fixed limit

IP addresses, domains and links in the line differ per message, and a long reply may be split over several lines.

What it means

The message is larger than the server allows, so it was refused. The limit applies to the whole message: text, images and attachments together. Either your own outgoing server or the recipient's server can set it.

The line above is from Postfix. Gmail sends "552-5.3.4 Your message exceeded Google's message size limits", and Exchange and Microsoft 365 send "552 5.3.4 Message size exceeds fixed maximum message size". The code 5.3.4 always means "message too big for system".

Usual causes

  • One or more large attachments.
  • Encoding. Attachments are encoded for transport, which makes them about a third bigger than the file on your disk. A 20 MB file becomes roughly 27 MB of email.
  • Many high-resolution images or photos pasted into the message.
  • A long reply chain that still carries every earlier attachment.
  • A low limit on the recipient's server. Company mail servers often accept less than the big mailbox providers.

How to fix it

  1. Send a link in place of the file

    Upload the file to a file-sharing or cloud storage service and put the link in the email. This is the only fix that always works.

  2. Make the files smaller

    Compress images, export PDFs at a lower quality, or zip the files. Leave room for the encoding overhead of about a third.

  3. Split the message

    Send the attachments across several emails if each one fits under the limit on its own.

  4. Find out the limit

    Gmail lets you send attachments up to 25 MB in total. Other servers differ, and many advertise their limit in the SIZE line of their EHLO response. If in doubt, stay under 10 MB.

  5. If you run the server

    In Postfix the limit is message_size_limit, about 10 MB by default. In Exchange and Microsoft 365 it is set per mailbox and per connector. Raising your own limit does not change what the recipient accepts.

Related errors

All SMTP error codes

Rather not do DNS by hand?

Buzzmark is EU-hosted transactional email that generates your SPF, DKIM, DMARC and Return-Path records, checks them for you and warns you if they ever drift.

Free up to 300 emails a month · No credit card