Turn bounced Gmail messages into a contact cleanup report by finding delivery notifications, extracting the affected recipient and linking each failure to the original sent message. Classify the evidence before proposing any change to the contact record.
A bounce does not always mean an address is wrong. Delivery can fail because of a temporary server issue, a policy block, a full mailbox or an invalid recipient. The report should help you distinguish those cases.
Keep delivery events separate from contacts
Store one record per affected recipient and delivery event. Keep the contact’s identity in a separate linked field, because the notification may refer to an alias or a forwarded address that differs from your contact list.
| Field | What to preserve |
|---|---|
| Notification message ID | Identifies the source evidence |
| Original sent-message reference | Connects the failure to the attempted message |
| Original recipient | Address you attempted to contact, if available |
| Final recipient | Address reported by the delivery system |
| Action and status | Structured delivery outcome, where present |
| Diagnostic text | The explanation supplied by the mail system |
| Contact match | Exact, ambiguous or not found |
| Review outcome | Human decision about the next action |
Keep the original text alongside any simplified category. A useful summary should make the evidence easier to read without discarding the detail needed to understand an unusual failure.
Option 1: Label delivery notifications and review them weekly
Search Gmail for likely delivery notices using known senders and subjects, then inspect the results before applying a dedicated label. Gmail’s sender, subject and date operators can help narrow the candidate set. Gmail search reference.
Avoid treating a subject containing “delivery” as proof of a bounce. It may be a parcel notification or a normal message discussing email delivery. Open the candidate and look for the affected recipient and actual failure details.
Record confirmed notifications in a sheet, linking the original sent message when you can identify it. Group repeated events by contact for review, but preserve each underlying attempt in the event log.
For a small number of messages, this manual method is often enough. The main improvement is a consistent weekly cleanup routine that prevents repeated failures from being ignored or confused with unanswered email.
Option 2: Build the cleanup report with Pillow
Pillow is an AI assistant that builds editable workflows from plain-English instructions through its workflow builder. Tell it where delivery notifications arrive and how your contact register identifies people and addresses.
Ask for proposed actions with evidence, rather than automatic deletion or guessed replacement addresses. This keeps a transient mail problem from turning into a permanent change to your records.
Build a disabled workflow that prepares a contact cleanup report fromGmail delivery notifications. Ask for the mailbox scope, candidate labelor search, review period, approved contact register and private destination.Confirm required connections and access before building.
Inspect candidates to confirm they are delivery notifications. Extracteach affected recipient separately, preserving original and final recipientaddresses, original message reference, action, status and diagnostic textwhere available. Keep the notification's message ID and source link.
Separate delayed delivery, reported failure, policy or authenticationissues, possible address problems and unclear notices. Do not infer thatevery failed delivery means an invalid address. Match contacts by exactknown addresses or aliases and flag ambiguous matches.
Create a deduplicated review report while retaining each delivery event.Preserve reviewer decisions and show repeated failures. Do not delete oredit contacts, guess replacement addresses, retry messages or send email.Show the report and workflow before enabling it.Copy the prompt above, then open Pillow to build your automation.
Option 3: Parse delivery notifications in n8n
Use scheduled Gmail retrieval, a delivery-notification parser and a contact lookup. The n8n Gmail node can retrieve message data; check whether your selected output exposes the structured notification parts you need.
Build the sequence as follows:
- Retrieve candidates within the approved scope and period.
- Inspect message content and relevant MIME parts.
- Extract a separate result for each affected recipient.
- Preserve the raw delivery fields and a readable explanation.
- Match the original attempt and known contact aliases where supported.
- Store the event before updating the grouped review report.
- Keep unparsed messages in an exception list.
Standard delivery-status notifications define per-recipient fields including Final-Recipient, Action and Status, with diagnostic information where available. One notification can cover several recipients. The original and final recipient may differ because of forwarding. RFC 3464 delivery-status format.
Classify the outcome before changing a contact
Use the structured fields when present and preserve the diagnostic wording. Keep temporary delays distinct from final reported failures. A delayed notification may be followed later by success or a final failure for the same attempt.
Within reported failures, distinguish an address problem from a sending-policy or authentication problem. A policy rejection can affect valid recipients. Changing those contacts would leave the actual sending issue unresolved.
For a fictional example, one attempt to a supplier produces a temporary delay notice, followed by a final failure. The report should show one attempted communication with its event history, rather than claim that two independent emails bounced.
If the notification contains only a vague human-readable explanation, use an Unclear category. Do not manufacture a standard status code from a sentence that merely sounds similar to one.
Match the failed attempt without merging unrelated events
Use the original message reference when the notification provides it. If you need a fallback match, combine the attempted recipient, subject and a bounded time window, then mark the confidence of that match.
A subject alone is insufficient. Several introductions may use “Quick question”, and one contact may receive different messages with the same subject. Keep ambiguous matches available for a person to resolve.
Use the notification message ID plus recipient position or identity as the event key. For the grouped view, use the original attempt and contact identity only after those links are established. This prevents a multi-recipient notification from becoming one vague failure row.
Do not merge every address at the same domain into one contact. A domain-level problem may be useful context, but each recipient still needs its own evidence and any follow-up decision.
Make cleanup decisions reversible and specific
Give the reviewer a short action list: check the address with the known contact, investigate the sending configuration, wait for a delayed outcome or leave the record unchanged. Keep the source link beside the proposed action.
If an address is corrected through a trusted source, record who confirmed it and retain the old address in history according to your contact process. Avoid guessing a replacement from a person’s name or a common company address pattern.
Keep automatic retries outside this workflow. A repeated failure may require a different communication route, and retrying many messages can create noise without fixing the cause.
Show coverage at the end of the report: candidates examined, confirmed notifications, affected recipients and items that could not be parsed. A zero-failure result should not hide a broken mailbox read or a parser that rejected every message.
Questions about bounced-email cleanup
Is an unanswered message the same as a bounce?
No. An unanswered thread has no reply under your chosen rule. A bounce contains delivery-outcome evidence. Keep the unanswered-email workflow separate so failed delivery does not trigger an ordinary follow-up draft.
Should I remove a contact after one failed delivery?
Review the evidence and your contact policy first. A single failure may be temporary or unrelated to the address. This workflow produces a cleanup proposal, not an automatic deletion rule.
Can it prove a message reached someone’s inbox?
No. The absence of a failure notification does not prove inbox placement or reading. Report only the delivery events and evidence the mailbox actually contains.