Deliverability

Mautic mail lands in inbox, Gmail-sent mail goes to spam

When Mautic mail reaches the inbox but the same address sent from Gmail lands in spam, Gmail is judging two different routes. Compare the Authentication-Results headers of one message from each path. The usual causes are Google missing from SPF, no DKIM for your domain on Google, a DMARC alignment failure, or content and reputation differences.

Sohail HussainSohail Hussain11 min read

Short answer

  • Send one message from each path to the same Gmail test address, open Show original on both, and compare the SPF, DKIM and DMARC lines. The path that fails or has no aligned domain is the one to fix.
  • Most often the Gmail or Workspace path has no DKIM signature for your own domain, or Google is missing from your SPF record, so DMARC has nothing aligned to pass on.
  • If authentication passes on both, the difference is content, recipient history or reputation, not DNS.

You see it in your own words: "Mautic emails sent perfectly, but emails sent from Gmail with the same address are marked as spam." The same From address takes two different routes, and Gmail judges each route separately. People who discussed this on the Mautic community forum pointed at SPF, DKIM, DMARC and the sending IP; that matches what I'd check, in that order.

Why the two paths get different treatment

Same From address, but almost everything else differs.

Gmail's sender rules say messages must be authenticated with SPF or DKIM, and messages that aren't authenticated might be marked as spam or rejected with a 5.7.26 error. For mail sent directly to personal Gmail accounts, the From: header's organizational domain must align with either the SPF domain or the DKIM domain.

Your DNS was probably set up for the Mautic relay (SES, SendGrid, your own SMTP server) and never updated for Google. Common causes, most likely first:

  1. No DKIM key for your domain in Google Workspace. Without your own DKIM key, Gmail signs outgoing messages with a default key at d=*.gappssmtp.com. That does not align with your From domain, so DKIM gives DMARC nothing to use.
  2. Google missing from SPF. If you start using a new mail server or third-party sender and don't update SPF, messages from the new sender could be marked as spam. It also works the other way: a record built only for Google fails for the Mautic relay.
  3. A DMARC policy that punishes the unaligned path. With p=quarantine or p=reject, a Gmail-path message that fails alignment goes straight to spam. If messages fail DMARC, the enforcement in the sending domain's DMARC policy generally applies.
  4. Content and history. Hand-written mail with an odd link, an attachment or a first-time recipient can score worse than a templated message from an established relay.
  5. Reputation. The Mautic path borrows its relay's IP reputation. The Gmail path uses Google's IPs plus your domain's own history.

I can't tell from the outside which of these is yours. The headers can, which is why step 1 comes first.

Gmail-path resultLikely causeGo to
spf=softfail or spf=neutralGoogle not in your SPF recordStep 2
dkim=none or DKIM domain is gappssmtp.comCustom DKIM not onStep 3
SPF and DKIM pass but dmarc=failAlignment problemStep 4
All three passContent, history or reputationSteps 5 and 6

Step 1: compare the headers of both messages

  1. Send one message from Mautic and one composed in Gmail or Workspace to the same personal Gmail address. Use the same subject and similar body.
  2. Open each message in the recipient inbox. Next to Reply, click More, then Show original.
  3. Find the Authentication-Results header and note the SPF, DKIM and DMARC verdicts.
  4. Write down smtp.mailfrom= (the SPF domain) and header.i= or header.d= (the DKIM domain). Compare each to your From domain.

Don't test by mailing yourself; Google notes that you can't verify DKIM is on by sending yourself a test message. Paste the full headers into our email header analyzer to read both paths side by side, or see Understanding Email Headers for what each field means. Google also has a Messageheader tool in its Admin Toolbox that reads the DKIM status from pasted headers.

If the From address is @gmail.com

Mautic cannot authenticate a personal gmail.com address, because Google owns that domain's DNS. Google warns against impersonating Gmail From headers, so send Mautic mail from a domain you control.

Step 2: add Google to your SPF record

A domain should publish one SPF record that lists every sender. Google says each sender goes behind an include: tag, and a record can have up to 10 include tags. A combined record for Google plus an SES relay looks like this (swap in your actual relay's include):

example.com.  TXT  "v=spf1 include:_spf.google.com include:amazonses.com ~all"

Common mistakes:

  • Two v=spf1 records. Merge them into one; two records cause a permanent SPF error.
  • Too many lookups. Check the total with our SPF lookup count calculator and build the record with the SPF generator.
  • Editing the wrong name. If Mautic sends from a subdomain, that subdomain needs its own record.

DNS changes usually show up within minutes to a few hours, depending on the old record's TTL.

Step 3: turn on DKIM for your domain in Google Workspace

This is the fix I'd try first when the Gmail path shows dkim=none or a gappssmtp.com signature. You need a super administrator account.

  1. In the Admin console, go to Menu > Apps > Google Workspace > Gmail, then click Authenticate email.
  2. In Selected domain, pick your domain and click Generate New Record.
  3. Choose the key length. Google says to select 2048 if your domain provider supports it, otherwise 1024. The default prefix selector is google.
  4. Copy the host name and the TXT value, then add them at your DNS provider. The host name will look like google._domainkey.
  5. Wait for DNS to propagate. It can take up to 48 hours for DKIM to start working.
  6. Return to Authenticate email and click Start authentication. The status should change to Authenticating email with DKIM.
  7. Send a new message to a different Gmail address and confirm dkim=pass with your domain in header.d=.

If you hit a "Not authenticating" message after publishing the record, you still need to finish setup by clicking Start authentication. Google's full walkthrough is in its Set up DKIM help page; for the concepts, read What Is DKIM?.

Step 4: fix DMARC alignment

DMARC passes when a message passes SPF authentication and SPF alignment, or DKIM authentication and DKIM alignment. Mixed setups break here: a relay may pass SPF for its own domain (not aligned with yours), and Google-path mail without custom DKIM is signed with a Google domain.

Check what policy you publish now. If you're not sure, start from monitoring:

DNS TXT Record
Type:TXT
Host:_dmarc
Value:v=DMARC1; p=none; rua=mailto:dmarc@example.com

With p=none and reports, you can see every system sending as your domain before you tighten. Google's own advice: SPF and DKIM should be authenticating messages for at least 48 hours before turning on DMARC. If your policy is already quarantine or reject, a failing Gmail path explains the spam placement directly. Build the record with the DMARC generator; What Is DMARC? covers alignment, and Google's Set up DMARC page lists the options.

Strict alignment can bite

If your DMARC record sets strict alignment (aspf or adkim set to s), subdomain senders can fail even though they are yours. Google's Postmaster guidance suggests relaxed alignment usually gives enough protection.

Step 5: if authentication passes, look at content and history

When SPF, DKIM and DMARC all pass on both messages, authentication is not the difference. Look at:

  • Content. Mautic mail is templated and consistent. A hand-written Gmail message with a link to an unfamiliar domain, a shortener, an attachment or an image-only body can score worse. Our spam checker is a word-list scorer, not a real filter test, so treat it as a hint.
  • Recipient history. Gmail weighs how that recipient treated your address before. Earlier spam reports or ignored messages can follow the pairing.
  • Account age and volume. A new Workspace account sending cold messages by hand has little history. A sudden jump in how many people you write to manually can look like bulk behavior.
  • A plain-text test. One Microsoft support answer for a similar problem suggests sending a plain-text message with no signature, links or attachments to one recipient, then asking them to mark it Not spam if it lands in spam.

Step 6: check IP and domain reputation

Gmail's sender rules also ask for spam rates reported in Postmaster Tools below 0.3%, and its Postmaster FAQ says rates above 0.1% already hurt inbox delivery for bulk senders. Add your domain to Postmaster Tools (see our Google Postmaster Tools guide) and look at domain reputation and the spam rate. Note that the Domain Reputation dashboard only shows mail from the exact domain used for DKIM and SPF, so it may be empty if your signing domain differs. Also check the Mautic relay's IP against blocklists. See sender reputation for how the pieces connect.

CauseSymptom in headersFix
Google not in SPFspf=softfail or neutralAdd include:_spf.google.com, keep one record
No custom DKIMdkim=none or gappssmtp.comGenerate and start DKIM in Admin
Misaligned domainsdmarc=fail, SPF and DKIM passAlign the signing or envelope domain
Reputation or contentAll pass, still spamPostmaster Tools, plain test, warmer recipient history

Checklist before you test again

  • One SPF record only, listing Google and the Mautic relay, under 10 lookups.
  • Google Workspace DKIM shows Authenticating email with DKIM.
  • Mautic's relay signs with a DKIM key for your own domain.
  • DMARC record exists, starts at p=none with a reporting address.
  • Test goes to a different Gmail address, not yourself.
  • Same From domain on both paths.

Preventing the split

Authorize every system that sends as your domain, and re-check after adding any new tool. Use a subdomain for bulk or marketing mail so its reputation stays apart from the mailbox people write from. Test headers whenever you change DNS.

Where Mailneo fits

Mostly it doesn't; this is DNS and reputation work you do at your registrar and in Google Admin. For accounts connected to Mailneo, we check SPF, DKIM and DMARC and whether they authorize the provider you use, and we check common blacklists. We can't change your DNS, override Gmail's filtering or guarantee inbox placement. For comparing the two paths, the free header analyzer is enough.

If nothing works

If both paths pass all three checks, the content is equivalent, and the Gmail-sent mail still lands in spam consistently, contact Google Workspace support (or the Gmail help community if you use a free account). Include the full headers of one spam-filed message, timestamps, sender and recipient addresses, and your published DNS records.

Subject: Workspace mail from {your-domain} goes to spam in Gmail, relay mail does not

Messages sent from {sender}@{your-domain} through Gmail land in spam at
{recipient}@gmail.com. The same address sent through our SMTP relay lands in the inbox.

Both pass SPF, DKIM and DMARC (headers attached). DKIM status in Admin:
Authenticating email with DKIM. DMARC policy: p={policy}.
Example message sent at {timestamp, timezone}.

Please check whether the domain or account has a reputation or filtering issue.

Common questions

Can I just whitelist the recipient?

It can help that one recipient (adding you to contacts or marking Not spam), but it doesn't fix the cause. Other recipients will still see the spam placement.

Does Gmail treat 5,000 messages a day differently?

Yes. Google defines bulk senders as those sending more than 5,000 messages daily, and they must set up SPF, DKIM and DMARC. Authentication still matters below that line, because all senders need SPF or DKIM.

Should the Gmail path and Mautic share one domain?

They can, as long as both authenticate and align. A subdomain for Mautic is often cleaner because its reputation stays separate from the mailbox you write from.

Why does a Mautic message pass but a Gmail one fail on the same day?

Because each path has its own SPF domain, DKIM key and sending IP. The headers show which one is missing.

deliverabilitymauticgmail
Share this article
Sohail Hussain

Sohail Hussain

Founder & CEO at Mailneo

Building Mailneo — AI-powered email marketing for growing businesses.

Related Articles

Deliverability

454-4.7.0 Too many login attempts: XOAUTH2 on Google Workspace

The error 454-4.7.0 Too many login attempts means Google is rate-limiting SMTP logins from your account or server. Stop the queue, wait, then resend slowly over fewer, reused connections. For bulk mail to a large list, use a sender built for it, not a Workspace mailbox.

Sohail Hussain|9 min read
Deliverability

421-4.7.0 Gmail Has Detected This Message Is Suspicious: Fix

The 421-4.7.0 "suspicious due to the nature of the content and/or the links" error means Gmail's content filter rejected your message after DATA, not an authentication check. Remove click tracking or move it to your own domain, drop URL shorteners, check link reputation, then retest with a plain message.

Sohail Hussain|10 min read
Deliverability

421 4.7.0 Temporary System Problem. Try again later (10)

`421 4.7.0 Temporary System Problem. Try again later (10).` is a temporary Gmail deferral, not a permanent rejection. Google's server asked your sender to retry later. Slow your send rate, let your mail server retry, and check authentication and reputation if the deferrals last more than a day or two.

Sohail Hussain|9 min read
Deliverability

421-4.7.0 Try again later, closing connection (EHLO): fix

The error "421-4.7.0 Try again later, closing connection. (EHLO)" means Google's SMTP server is temporarily refusing your session, usually because of connection volume, a low-reputation IP, or a weak relay setup. Slow down, reuse one connection, queue with retries, authenticate, and send a real EHLO hostname.

Sohail Hussain|11 min read

Ready to supercharge your email marketing?

Start sending smarter emails with AI-powered campaigns. No credit card required.

Get Started Free