When opening an email in Gmail, users may encounter a prominent yellow or red warning banner stating: “Be careful with this message. This sender failed our fraud detection checks and may not be who they appear to be,” or “Gmail couldn’t verify that this message actually came from [domain].” These safety banners appear when an incoming message fails email authentication, lacks identity alignment, or matches behavioral patterns associated with domain and display-name spoofing.
Quick Answer
Gmail displays safety warnings when an email fails SPF or DKIM validation, lacks DMARC alignment, or uses a display name that mimics an internal executive or contact. To remove the warning, publish valid SPF and 2048-bit DKIM records, enforce an aligned DMARC policy, and configure internal spoofing protections in Google Workspace.
Understanding Gmail Safety Warning Banners
Gmail uses an automated scanning engine that analyzes incoming emails before rendering them in the inbox. When a message looks suspicious, Gmail flags it with one of three primary banner variations:
- The Gray “Unverified Sender” Banner: “Gmail couldn’t verify that this message actually came from example.com.” This indicates an authentication failure: the sending server did not pass SPF or lacked a valid DKIM signature.
- The Yellow Fraud Warning: “Be careful with this message. This sender failed our fraud detection checks…” This appears when the email fails authentication and the sender’s display name or domain closely mimics a known contact or popular brand.
- The Red High-Risk Banner: “This message seems dangerous… It was sent from an email address that appears to be spoofed.” This appears when a message explicitly fails DMARC evaluation, fails SPF/DKIM checks, and contains suspicious links or requests for sensitive credentials.
[Incoming Message Received]
│
[Gmail Heuristic Analysis]
┌────────────────────────────┼────────────────────────────┐
▼ ▼ ▼
[SPF / DKIM Check] [Alignment Check] [Identity Analysis]
Did crypto pass? Does Return-Path/DKIM Does display name mimic
Is sender IP allowed? align with From:? an internal VIP or domain?
└────────────────────────────┬────────────────────────────┘
▼
Any Flags or Mismatches?
┌────────────┴────────────┐
NO YES
│ │
Clean Delivery Safety Warning Banner
(Standard Inbox) • Gray: Unverified
• Yellow: Suspicious
• Red: Dangerous / Spoofed
Common Root Causes
1. Unauthenticated Internal Sending (CRMs, Scanners, and Apps)
A company employee receives an email that looks like it came from their own CEO or human resources department (hr@yourcompany.com), but it was actually generated by an external tool (such as an automated payroll platform, ticketing system, or multi-function printer). If that tool was not added to the company’s SPF record and does not sign with DKIM, Gmail flags it as an internal impersonation attack.
2. DMARC Policy Left at p=none
Publishing a DMARC policy with p=none informs receivers to collect reports without rejecting unaligned emails. However, while p=none prevents hard bounces, it instructs Gmail to fall back to its internal spam heuristics. If an email fails SPF alignment, Gmail will deliver the message but attach a safety warning to alert the user.
3. Broken DKIM via Mailing Lists or Forwarding
When an email passes through an external forwarder or distribution list, the forwarding server’s IP address breaks SPF. If the message lacked a robust DKIM signature, or if the forwarding platform modified the body (by adding footers or subject tags), the DKIM hash breaks. With both SPF and DKIM invalid, Gmail displays an unverified warning.
4. Display Name Impersonation
Attackers often create external accounts (e.g., ceo1234@gmail.com) and set the friendly display name to match a company executive (John Doe <ceo1234@gmail.com>). Even though the email technically passes authentication for gmail.com, Google Workspace’s anti-phishing filters detect the name match and display a spoofing warning to protect the user.
Diagnostic Steps
Step 1: Open the Raw Message Headers
- In Gmail, open the message displaying the warning banner.
- Click the More icon (three vertical dots) next to the Reply button.
- Select Show original.
Step 2: Review the Authentication Summary
At the top of the Original Message screen, check the diagnostic table:
- SPF: Does it report
PASS,SOFTFAIL, orFAIL? - DKIM: Does it report
PASSwith your domain name, or does it sayFAIL? - DMARC: Does it report
PASSorFAIL?
If SPF or DKIM failed, scroll down to the Authentication-Results header to identify the exact IP address or selector that caused the failure. For a deeper breakdown of this header data, see How to Read Gmail “Original Message” Headers.
Step-by-Step Fixes
Fix 1: Deploy Strong DKIM Authentication
DKIM is the most effective way to eliminate spoofing warnings because it survives automated email forwarding:
- Access the Google Admin Console (or your mail platform’s admin panel).
- Generate a dedicated 2048-bit DKIM key following How to Generate 2048-bit DKIM Key in Admin Console.
- Publish the selector TXT record to your DNS.
- Turn on DKIM signing. Future messages signed by your domain will immediately satisfy Gmail’s authenticity checks.
Fix 2: Align Third-Party Application Sending
If the warning is triggered by emails sent from your website, CRM, or ticketing desk:
- Do not send emails from those platforms using your primary apex domain without authorization.
- Configure the platform to sign with a custom DKIM selector matching your domain.
- Alternatively, route outbound application mail through Google Workspace SMTP Relay using verified credentials.
Fix 3: Advance Your DMARC Policy to Quarantine or Reject
A domain with an unenforced DMARC policy (p=none) invites spoofing and leaves the receiver guessing. Once your valid mail streams are authenticated, update your DMARC record to enforce quarantine or rejection:
v=DMARC1; p=quarantine; pct=100; rua=mailto:dmarc-reports@example.com;
Enforcing DMARC prevents unauthorized servers from sending mail using your domain, stopping spoofing attempts before they reach the user’s inbox; see How to Resolve DMARC Policy Rejects: Reject vs. Quarantine.
Fix 4: Configure Anti-Spoofing Settings in Google Workspace
If legitimate internal emails sent via third-party partners still trigger warnings inside your own Google Workspace tenant:
- Go to Google Admin Console > Apps > Google Workspace > Gmail > Safety.
- Under Spoofing and authentication, review the rules for:
- Protect against spoofing of employee names
- Protect against inbound emails spoofing your domain
- If an approved third-party service must send on your behalf, add its sending IP addresses to your Inbound Gateway or Email Allowlist rather than turning off safety protections entirely.
If your messages continue to trigger anti-fraud alerts despite passing SPF and DKIM, examine your domain’s sending reputation and spam metrics using “This sender has failed our fraud detection checks” and “Unauthenticated Email from [Domain]” Warning.