Skip to content
Gmail and Google Workspace · permanent error

552 5.3.4: subject line too long

Gmail rejected the message because its Subject header is longer than Google's header size limits allow.

Gmail
Provider
Permanent (5xx)
Class
Sources checked
Author

At a glance

Code
552 5.3.4
Temporary or permanent
PermanentRefused for good: the message comes back to the sender, and resending it gets the same answer.
Who has to act
The sender. The fix is on the sending side: your domain, your server or your list.
What the server says
552 5.3.4 Your message has a Subject: header that exceeds Google's message header size limits.

What it means

The subject line is too long for Gmail. People rarely type a subject anywhere near that long, so the cause is usually software: a template that inserts a whole field or list into the subject, a step that appends to it on every forward or retry, or non-ASCII text encoded several times over. Google links the reply to its page on Gmail message header limits. Shorten the subject and send again; inboxes only show the start of a subject anyway.

Common causes

  • A template that inserts long data, such as a full record or list, into the subject.
  • Code that appends to the subject repeatedly, for example on each forward or retry.
  • Repeated encoding of non-ASCII text, which multiplies its length.

How to fix it

  1. 01Check the Subject header of the rejected message as it was sent.
  2. 02Limit the subject length in your template or code.
  3. 03Fix any step that appends to or re-encodes the subject.
  4. 04Resend with a short subject.

Sources

What this page rests on, checked on 20 Oct 2026. The explanation is ours; the reply text is the server's.

  1. 552 5.3.4Message headers too large.Gmail rejected the message because its header section as a whole is larger than Google allows, or holds too many header fields.GmailPermanent
  2. 552Storage allocation exceeded.The receiving server aborted the message because it exceeded a storage limit, usually a full mailbox or a message larger than allowed.StandardPermanent
  3. 5.3.4Message too big.The message is larger than the maximum size the receiving system accepts for any message, so it was refused and has to be made smaller.StandardPermanent

5.3.4 at other providers

  1. 552 5.3.4Message headers too large.Exchange Online rejected the message because its headers add up to more than 256 KB, the limit for all header fields together.MicrosoftPermanent

All 108 Gmail codesEvery code in the wikiPaste your own bounce

Beat · paid monitoring

A heartbeat for your email.

Beat runs every check on this site on a schedule: 41 checks, 33 blacklists and real inbox placement. The moment something breaks, it tells you what broke, why it matters, and the exact fix.

example.comWatching
  • SPFpass
  • DKIMpass
  • DMARCp=none
  • Blacklists0 of 33

Illustrative. Your domain, every few hours.

Also from us:Pulse: your own sending infrastructureConsulting: $65/hr, no retainer