TL;DR
The message exceeded a size limit in the system that processed it; the digits do not say which element was measured. Do not retry the message unchanged. The sending administrator acts first, by reading the response to see which element was measured and reducing that element, or by obtaining a confirmed change to the limit; the code does not evaluate the recipient address, so it does not by itself justify suppression.
What this code means
Oversize relative to a per-message size cap on the processing mail system is what code 5.3.4 records under registry pattern X.3.4 at class 5. The registry allows this subcode only for permanent errors and covers limits set for physical or administrative reasons; it does not fix which part of the message is measured. Across the accepted provider examples for this code, four different scopes appear under the same digits: the whole message, the number of attachments, all header fields taken together, and one individual header field. The limit belongs to the mail system that applied it, not to the recipient address, so the status describes system policy rather than address validity.
Provider examples
552 5.3.4 Header size exceeds fixed maximum size.550 5.3.4 Message too large (G17)552 5.3.4 Your message exceeded Google's message size limits. To view our message size guidelines, go to Send attachments with your Gmail message. - gsmtp552 5.3.4 The number of attachments (num-attachments) exceeds Google's limit of limit attachments. To view our attachment size guidelines, go to Gmail receiving limits in Google Workspace. - gsmtp552 5.3.4 The size of your message (size bytes) exceeded Google's message size limits of limit bytes. To view our message size guidelines, go to Gmail receiving limits in Google Workspace. - gsmtp552 5.3.4 Your message exceeded Google's message header size limits. To view our header size guidelines, go to Gmail message header limits. - gsmtp552 5.3.4 The size of the header name header value (size bytes) exceeds Google's limit of limit bytes per individual header size. To view our header size guidelines, go to Gmail message header limits. - gsmtpTechnical meaning
A message larger than a per-message size limit imposed for physical or administrative reasons falls under X.3.4. The standard specifies this status as useful only for permanent errors; code 5.3.4 combines that meaning with class 5. The registry entry names the limit but not its value, not the element it measures, and not the system that holds it, so those three facts have to come from the response text and from the system that returned it. The basic reply paired with the enhanced code is not fixed either: the registry treats the associated basic status code as non-exclusive, the accepted examples pair 5.3.4 with both 552 and 550, and in each of them the enhanced class agrees with the reply class.
Delivery status
The leading digit 5 denotes a permanent failure of the current delivery request. The unchanged message should not be resubmitted to a system that applies the same limit; the permanence attaches to the message as submitted measured against that limit, not to the recipient address, which the code does not evaluate.
- Class
- Permanent failure
- Retry
- Do not retry unchanged
- Suppression
- Check the full context
Retry decision
Operational guidance: stop automatic and manual retries of the unchanged message, because the same message measured against the same limit produces the same response. A new send is justified only after the element named in the response has been confirmed below the stated limit, or after the operator of the system that applied the limit has confirmed a change to it. A different destination system may hold a different limit; sending through it is a new send on a changed route, not a retry of the failed attempt.
Suppression decision
Operational guidance: do not automatically add the recipient address to a suppression list solely because of 5.3.4. The code reports a limit held by a mail system and does not evaluate the recipient address or the state of the mailbox, so it is not evidence that the address is undeliverable. Inspect the full response, the message, the applied limit, and the event history for that address; suppress only when the applicable policy or an independent permanent signal justifies it.
Common causes
- The message as submitted is larger than the total per-message size limit of the system processing it; the Gmail documentation table and the Rackspace Email example both reject on that scope.
- The number of attachments exceeds a limit on attachment count that the system states separately from total size; the Gmail documentation table has a distinct response for that case.
- A header limit is exceeded even when the body is small: the accepted examples enforce a ceiling on all header fields taken together, in Microsoft 365 / Exchange Online and in Gmail, and a ceiling on one individual header field, in Gmail.
Diagnostic steps
- Inspect the raw SMTP response or delivery report and confirm that the enhanced code is exactly 5.3.4 and that the basic reply is in the 5xx class; the accepted examples pair this code with both 552 and 550, so the basic digits alone do not identify the case.
- Identify which system applied the limit: read the host named in the response or delivery report and match it to the hop in your own logs at the attempt time, because the limit belongs to the system that returned the response, which is not always the recipient's final mail system. Retain the full response text, the attempt time, the destination system, and the attempt identifier.
- Read the response text to determine which element was measured, the whole message, the number of attachments, all header fields together, or one individual header field, then measure that same element on the message as it was submitted. Where the response reports the measured value and the applied limit, use those figures rather than inferring a limit value from the code.
- Before a new send, confirm that the measured element is below the stated limit, or that the operator of the identified system has confirmed a change to the limit; a message that still receives 5.3.4 after a confirmed reduction is an escalation case, not a retry case.
Actions by owner
Sender administrator
- Stop retries of the unchanged message and retain the raw response, the attempt time, the destination system, and the attempt identifier; record which element the response named, since the remedy depends on it.
- Apply the remedy that matches that element: reduce the whole message, replace an attachment with a link to hosted content or reduce the number of attachments, or remove or shorten headers added by the sending platform when the limit covers the header block or a single field. Send again only after that element is confirmed below the stated limit, or after a confirmed change to the limit.
Recipient administrator
- Inspect system configuration and logs for the specified time to confirm that your system returned the response, and confirm which limit it applied: total message size, attachment count, combined header size, or an individual header.
- If policy permits, adjust the confirmed limit and verify the change before another attempt; otherwise state the exact limit and the element it measures to the sender, rather than leaving them to infer it from the code.
Provider
- If you operate the system that returned the error, inspect the message, attachment, and header limits it enforces and the logs for the specified attempt.
- Correct a confirmed configuration error or give administrators the exact limit and the element it measures; preserve the exact code and response text, and do not suppress the recipient solely because of 5.3.4.
Sources
These sources define what this enhanced status code means, mainly through the IANA registry and related RFCs. When provider examples appear on the page, they come from that provider's published documentation. Follow the links to read the original wording in context.
- SMTP Enhanced Status Codes — IANA registry of enhanced mail system status codes.
- RFC 5248 — A Registry for SMTP Enhanced Mail System Status Codes — Creates and governs the IANA enhanced status code registry.
- RFC 2034 — SMTP Service Extension for Returning Enhanced Error Codes — Defines how SMTP returns enhanced status codes to clients.
- RFC 3463 — Enhanced Mail System Status Codes — Defines the class/subject/detail model for enhanced status codes.
- Exchange Online limits — Microsoft service description of Exchange Online size and quota limits.
- Common email bounce messages — Rackspace documentation of common SMTP bounce messages.
- Gmail SMTP errors and codes — Official Gmail Help table of SMTP error messages and status codes.
Last verified:

