# Gmail blocked the message for its content: the 552 5.7.0 attachment bounce, and how we clear it

Published: 2026-11-12  
Author: Guanacos Tech (https://guanacostech.com)  
Canonical: https://guanacostech.com/blog/552-5-7-0-gmail-blocked-attachment-fix

> Gmail refused a message for its content, not your reputation. Tell a blocked attachment from an admin rule or a size limit, and get the file delivered.

**Short answer:** A 552 5.7.0 rejection means Gmail refused the message for its content, nearly always a blocked file type. Executables and scripts such as .exe, .js, .bat and .msi are refused, including inside a .zip or .gz archive. Authentication and reputation play no part. Remove the file, or share it from Drive and send the link.

Say a nine-person architecture studio sends revised drawings all day. One Tuesday the office manager mentions that three clients never received the latest set. The messages are not in anyone's spam folder. They never arrived at all, and the only trace is a bounce she had already learned to scroll past, because it reads like every other bounce: the message was blocked because its content presents a potential security issue.

This is the rejection that catches people out, because none of the usual deliverability work touches it. SPF, DKIM and DMARC can all pass. The domain can have a clean record at every receiver. Gmail looked at what was inside the message and declined to carry it.

## What 552 5.7.0 says, and what it rules out

Google publishes the code in its Gmail SMTP errors and codes table. The 552 response with the 5.7.0 enhanced status carries this text, checked on 12 November 2026:

```
552 5.7.0 This message was blocked because its content presents a potential security issue.
```

That entry points at one explanation, and only one: the list of file types blocked in Gmail. In most cases that is the whole story. Something attached to the message, or something sitting inside an archive attached to the message, is on a list Gmail will not deliver.

Read it as a statement about the payload, not about the sender. The 5 at the front of the code means a permanent refusal of that attempt, so no queue will retry it into existence. The message is gone, and whoever sent it has to do something different rather than wait.

## Which rejection do you actually have

Before touching anything, open the full bounce instead of the one-line summary a mail client shows. The code decides which problem you are in, and these four get confused with each other constantly.

| What the bounce carries | What it means | Where the fix lives |
| --- | --- | --- |
| `552 5.7.0`, content presents a potential security issue | Gmail refused the content, normally a blocked file type, including one found inside an archive | The attachment, not the DNS |
| `552 5.3.4` | Over Google's message size limits, too many attachments, or headers that are too large | Send the file from Drive instead |
| Any code with `gcdp` in the text | A custom rule written by a Google Workspace administrator, not a Gmail default | The compliance rule named in the admin logs |
| `550 5.7.1` with reputation wording | Domain or IP reputation, nothing to do with the file | [Reputation, rebuilt in order](https://guanacostech.com/blog/gmail-550-5-7-1-low-reputation-fix) |
| `550 5.7.26` | The message was not authenticated to Gmail's satisfaction | [SPF, DKIM and alignment](https://guanacostech.com/blog/550-5-7-26-unauthenticated-gmail-fix) |

If the bounce is in front of you but the headers are not, paste the message source below and read what the receiving server actually said before anyone starts editing DNS.

Free tool

Decode the headers of a message that went to spam

Paste the raw headers and see the Received chain plus the SPF, DKIM and DMARC results, line by line.

[Analyze headers](https://guanacostech.com/header-analyzer)

## The file types Gmail will not carry

Google's Gmail Help page publishes the blocked extensions. As listed on 12 November 2026, they fall into four recognisable groups:

- Windows executables and installers: `.exe`, `.msi`, `.msix`, `.msixbundle`, `.appx`, `.appxbundle`, `.bat`, `.cmd`, `.com`, `.cpl`, `.dll`, `.scr`, `.pif`, `.sys`, `.ex`, `.ex_`
- Scripts and shortcuts: `.js`, `.jse`, `.vb`, `.vbe`, `.vbs`, `.ps1`, `.wsc`, `.wsf`, `.wsh`, `.hta`, `.sct`, `.shb`, `.lnk`, `.nsh`
- Disk images, archives of code and mobile packages: `.iso`, `.img`, `.vhd`, `.dmg`, `.cab`, `.apk`, `.jar`, `.jnlp`, `.lib`
- Installer and database oddities that rarely cross anyone's mind: `.ade`, `.adp`, `.mde`, `.msc`, `.msp`, `.mst`, `.ins`, `.isp`, `.chm`, `.xll`, `.diagcab`, `.diagcfg`, `.diagpack`

Two rules around that list matter more than the list itself. Google says the restriction follows these types into compressed form, such as `.gz` or `.bz2`, and applies when they are found inside archives such as `.zip` or `.tgz`. It also covers documents carrying malicious macros. A tidy project `.zip` is therefore refused because of one `.dll` four folders down, and the person who sent it has no idea which file caused it.

The second rule is that the list moves. Google states it updates the types of files not allowed as harmful software changes, so this is a page to check when something new starts bouncing, not a list to memorise.

Renaming the extension is the first thing somebody tries. We do not build a client workflow on it. In the attachment rules Google gives administrators, it says file types detected as executables are rejected automatically and an administrator cannot allow them, which tells you the detection does not stop at the filename. A rename also teaches staff that the way past a security control is to disguise the file, which is a worse habit than the one it solves.

## What we check first

1. Read the whole bounce, including the lines a mail client folds away. The code and the wording decide everything that follows.
2. Send the same message again with nothing attached. If it arrives, the conversation is about files, and nobody needs to touch a DNS record this week.
3. List what is actually inside the archive, every level down. Build folders, vendor libraries and old installers travel inside project zips far more often than anyone expects.
4. If either domain runs on Google Workspace, open Email Log Search in the admin console, under Reporting, which needs the Gmail Settings administrator privilege. The result for each recipient names any compliance rule the message matched and links through to that rule. Delivery logs are not available for messages older than 30 days, so this check has a deadline.
5. Search the bounce text for `gcdp`. Google adds that tag to errors produced by rules an administrator created, and finding it moves the whole investigation out of Gmail's defaults and into somebody's console.
6. Agree the permanent route for that kind of file before the next send, not after the next complaint.

## Getting the file there anyway

The documented route is Drive. When an attachment is over the size limit, Gmail already uploads it to Drive and puts a link in the message by itself, so sharing a link for a blocked file is the same move made deliberately. Upload, share it to the recipient's address with view access, send the link, and the message carries nothing a filter can object to.

For anything recurring, such as installers for a client's workstations, a weekly export or a set of drawings, stop attaching and publish. A shared folder with the right access is less work over a year than three people rediscovering the same bounce, and it leaves a record of who opened what.

Password protecting an archive deserves a warning, because it is the usual next idea. Google tells administrators that the contents of password-protected files are not scanned, and points them at attachment rules to block or quarantine those files. A locked archive is more likely to be stopped by policy than waved through, since no filter can see inside it to clear it.

## If you run the Workspace domain on either side

Half of these cases end in an admin console rather than in Gmail's own rules, and the settings behave in ways that surprise people:

- Attachment compliance matches on file type, file name or message size, and the action can be to reject the message, quarantine it for admin review, or modify its delivery.
- Custom file types are matched by filename only, unless you also select matching on file format. A rule that blocks `.exe` by name alone is defeated by a rename, which is worth knowing before you trust it.
- File types detected as executables are rejected automatically, and that behaviour cannot be switched off. Admin rules can be stricter than Gmail, never looser.
- Content compliance scans the body and the text of common attachments such as `.docx`, `.xlsx` and `.pdf`, and can strip attachments instead of refusing the whole message. The scan covers content up to about 1 MB.
- When a rule rejects a message, Google adds an SMTP code that you cannot remove, but the text beside it is yours. Write a rejection message naming who to contact. The alternative is a client reading a generic policy error and quietly giving up on the email.

## Size is a different bounce entirely

Teams mix these two up, so it is worth separating them. Size problems come back as `552 5.3.4`, which Google's table attributes to exceeding message size limits, too many attachments, or oversized headers. Google's sending limits for Workspace list 25 MB per message for Business and Education editions, and on Enterprise, 25 MB on Standard with up to 50 MB on Enterprise Plus, where the larger option works in the web version of Gmail. Those figures were checked on 12 November 2026, and they cover message content and attachments before encoding.

That last detail is where people get caught. Encoding inflates a message, and Google warns administrators that a size rule applies to the raw message, which can run about a third larger than the files themselves. A folder that reads as 20 MB on a laptop is not 20 MB on the wire, which is why a send that worked last month fails after someone adds one more photograph.

## What we watch afterwards

A fix here is only as good as what the team does next week. We spot check Email Log Search for a month, since the blocked type usually reappears from a second system nobody mentioned, often an accounting tool or a backup job mailing a report. We write down the agreed route for large and blocked files in one short paragraph the staff can actually follow. And we recheck Google's blocked list when something new starts bouncing, because the list is maintained against live malware trends rather than frozen.

## How Guanacos Tech helps

This is part of [email deliverability consulting for small business](https://guanacostech.com/email-deliverability): read the real bounce, separate a content block from a reputation or an authentication problem, fix the route the files take, and leave the team with one rule they can follow without asking anyone. If messages are disappearing and nobody can say which of the four problems you have, a 30-minute call is enough to find out and to agree what changes.

## Sources

- [Gmail SMTP errors and codes (Google Workspace Admin Help)](https://support.google.com/a/answer/3726730)
- [File types blocked in Gmail (Gmail Help)](https://support.google.com/mail/answer/6590)
- [Filter messages with attachments (Google Workspace Admin Help)](https://support.google.com/a/answer/2364580)
- [Control message delivery based on message content (Google Workspace Admin Help)](https://support.google.com/a/answer/1346936)
- [Message bounced due to a policy rule (Google Workspace Admin Help)](https://support.google.com/a/answer/7282433)
- [Troubleshoot message delivery with Email Log Search (Google Workspace Admin Help)](https://support.google.com/a/answer/7513679)
- [Gmail sending limits in Google Workspace (Google Workspace Help)](https://knowledge.workspace.google.com/admin/gmail/gmail-sending-limits-in-google-workspace)

## Frequently asked questions

### Can a Google Workspace administrator allow a blocked file type for our domain?

Not for executables. Google's attachment rules documentation says file types detected as executables are rejected automatically and an administrator cannot allow them. Admin rules can be stricter than Gmail's defaults, never looser. For a legitimate installer, the supported route is to share it from Drive and send the recipient a link.

### Does renaming a .exe to .txt get the file through?

It changes what a filename-based rule sees, which is exactly why Google warns administrators that custom file types match by filename unless they also match on file format. Gmail's own block detects executables, so we do not build a workflow on a rename, and it teaches staff to disguise files to beat a security control.

### The bounce says 552 5.7.0 but there was no attachment at all. Now what?

Reproduce it. Send the body with nothing attached, then add each part back one at a time. A forwarded message carried as an attachment, an embedded file or a signature image is still content, even when the compose window looks empty. If it only fails from one system, ask what that system attaches automatically.

---

Guanacos Tech is an independent consultancy with Google-certified engineers: email deliverability, Google Workspace and Google Cloud, in English and Spanish. Book a free 30-minute call: https://calendar.app.google/pq2seCCcch9U2GFV8
