SMTP error · Any server
552 5.3.4: Message size exceeds fixed limit
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
-
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.
-
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.
-
Split the message
Send the attachments across several emails if each one fits under the limit on its own.
-
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.
-
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
- 552 5.2.2: Recipient's inbox is out of storage space (Gmail) permanent
- 554 5.7.1: Message rejected for policy reasons or as spam permanent
- 451 4.3.0 and 4.4.x: Temporary failure, try again later temporary
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