Advertisement
Skip to content

CF7 mail missing only in Gmail: rejected at the door, or spam

By Published 10 min read

Some links on TechInfoTime are affiliate links: if you sign up or buy through them we may earn a commission, at no extra cost to you. We recommend a tool only where it fits the problem, and say who should skip it.

On this page (14 sections)
  1. The short version
  2. Contact form 7 emails missing Gmail recipients: understanding the issue
  3. Where to read the proof of a rejection: host mail log or CF7 mailing log entry vs Gmail's Spam and All Mail labels
  4. What CF7 uses as the From header by default, and why a visitor's own address often fails Gmail authentication
  5. How SPF, DKIM, and DMARC authentication affect Gmail delivery and what alignment means
  6. Steps to check SPF, DKIM, and DMARC records for your domain
  7. How to inspect Gmail's 'Show original' output and interpret authentication results
  8. Exact CF7 Mail tab settings to fix the From and Reply-To headers
  9. How to confirm the envelope-from (Return-Path) vs header From in actual messages and their source in CF7 or WordPress
  10. How to retrieve and read server mail logs for tracing delivery
  11. What to do if your host cannot set DKIM: use SMTP relay or transactional email providers
  12. Remediation steps for IP reputation issues affecting Gmail delivery
  13. How to confirm the fix held: send a test submission and check both the Gmail inbox and the raw headers for the authentication results
  14. Questions people still ask

In short: If Contact Form 7 emails go missing only in Gmail, first check if Gmail rejects them or places them in spam. Then fix the default From header to use your domain's email and set SPF, DKIM, and DMARC records for authentication.

Part of our guide on wordpress login fails after reset

Emails missing only in Gmail often mean Gmail rejects unauthenticated addresses or marks them as spam, not a Contact Form 7 fault.

At a glance
CF7 default Fromvisitor's address
SPF record neededyes
DKIM alignmentrequired
DMARC policyrecommended
Gmail rejection cluebounce message
Spam folder clueemail in Spam label
Mail log locationhosting control panel or server logs

The short version

  • Missing emails only in Gmail often mean Gmail rejects or spam-filters messages.
  • Default CF7 From header uses the visitor’s email, which often fails authentication.
  • Set the From header to a domain email and add SPF, DKIM, DMARC records.
  • Use the Reply-To header for the visitor’s real email address.
  • Check mail logs to distinguish rejections from spam foldering.

Contact form 7 emails missing Gmail recipients: understanding the issue

If you receive Contact Form 7 emails in Outlook and Yahoo but not in Gmail, this suggests the emails reached different recipients, not necessarily that the plugin sent identical messages each time.

Other providers receiving your mail does not prove Gmail received the same exact SMTP transaction, headers, or envelope-from address. Confirm these match by checking server mail logs and the email source.

Check your server logs for each recipient to confirm the plugin sent the mail the same way. Look for the SMTP envelope sender (Return-Path) and compare the headers delivered to each inbox.

If differences appear, the problem might be in how the mail is constructed or routed, not the plugin itself. This step prevents wrongly blaming Contact Form 7 for delivery issues specific to Gmail. There is more on letsencrypt renewal fails after host switch in a separate guide.

Where to read the proof of a rejection: host mail log or CF7 mailing log entry vs Gmail's Spam and All Mail labels

inbox screens of Outlook Yahoo Gmail side by side
inbox screens of Outlook Yahoo Gmail side by side

Check your hosting server’s mail logs to track email delivery to Gmail. These logs usually reside in files like /var/log/maillog, /var/log/mail.log, or Exim’s exim_mainlog.

Use commands like grep with recipient email or message ID to find relevant entries. For example: grep 'recipient@example.com' /var/log/maillog

Look for SMTP response codes; 250 means accepted, while 550 or 554 indicate rejection. A rejected message won’t appear in Gmail inbox or spam. There is more on email authentication fails after changing dns records in a separate guide.

If logs show acceptance, check Gmail’s Spam and All Mail labels to find the message. Gmail may accept mail but filter it silently to Spam or archive it, hiding it from Inbox.

Contact Form 7 plugins with debug or logging add-ons can capture sending errors or failures within WordPress, helping you distinguish between sending and delivery problems.

What CF7 uses as the From header by default, and why a visitor's own address often fails Gmail authentication

Contact Form 7’s default mail template often sets the From header to a mail-tag like [your-email]. This means the visitor’s email appears as the sender. Before you commit to anything, it is worth looking at how to set up dmarc for a domain.

Check your CF7 Mail tab settings to confirm the From field. If it uses [your-email] or similar, your server sends mail on behalf of a domain it does not control.

SPF and DKIM authentication requires the sending server to be authorized for the From domain. When the visitor’s domain differs, authentication usually fails.

Failed authentication causes Gmail to reject or spam-filter the message. This mismatch is a common cause of missing emails in Gmail when using CF7’s default settings. Before you commit to anything, it is worth looking at mailing list email bounce reasons.

How SPF, DKIM, and DMARC authentication affect Gmail delivery and what alignment means

SPF authorizes servers allowed to send mail for your domain. It’s a DNS TXT record listing IPs or include: statements for allowed senders.

DKIM adds a cryptographic signature using a DNS-published public key, verifying the mail was sent by the authorized server without modification.

DMARC tells receiving servers how to handle mails failing SPF or DKIM, including policy on rejection or quarantine. For the detail, see our notes on fixing email issues.

Alignment means the domain in the From header matches the domain authenticated by SPF and DKIM. DMARC requires this alignment for a pass.

Check which domain passed SPF and DKIM by inspecting headers like "Received-SPF", "Authentication-Results", and "DKIM-Signature". The domain in header.From and envelope-from (Return-Path) impact alignment.

For example, SPF might pass for the envelope-from domain, but if header.From domain differs, DMARC can still fail due to misalignment. Before you commit to anything, it is worth looking at how to monitor spam traps and sender reputation.

Steps to check SPF, DKIM, and DMARC records for your domain

Use command line tools like dig or host to check DNS records. For SPF: dig TXT example.com and look for a record starting with v=spf1.

For DKIM, check your selector with: dig TXT selector._domainkey.example.com where selector matches your DKIM configuration.

DMARC records are found with: dig TXT _dmarc.example.com showing a record starting with v=DMARC1. We cover solutions for wordpress hosting login errors in its own article.

Example SPF record: v=spf1 include:_spf.google.com -all authorizes Google’s servers to send on your behalf.

DKIM records contain public keys and look like: v=DKIM1; k=rsa; p=public_key_here.

DMARC records specify policy, e.g. p=none (monitor), p=quarantine, or p=reject.

Online tools like MXToolbox or Google’s CheckMX help visualize these records and test their correctness.

How to inspect Gmail's 'Show original' output and interpret authentication results

server mail log window and Gmail spam folder open
server mail log window and Gmail spam folder open

Open the missing email in Gmail and select More > Show Original to see full headers and authentication results.

Look for lines starting with Authentication-Results. They show SPF, DKIM, and DMARC status with pass, fail, or neutral.

Check the domains listed for each result to verify alignment with the From header domain.

For example, Authentication-Results: spf=pass (google.com: domain of example.com designates 1.2.3.4 as permitted sender) smtp.mailfrom=example.com

DKIM results appear as dkim=pass header.d=example.com; DMARC results as dmarc=pass (p=REJECT sp=NONE) header.from=example.com.

If any fail, Gmail may reject or spam-filter the message. Use this to confirm your fixes worked or to find issues.

Exact CF7 Mail tab settings to fix the From and Reply-To headers

In your WordPress admin, go to Contact > Contact Forms > your form > Mail tab.

Change the From field to a fixed email address on your domain, e.g., From: "Site Contact" <no-reply@example.com>.

Set the Reply-To field to [your-email] to keep the visitor’s address for replies.

Example: Reply-To: [your-email]

Do not use a mail-tag like [your-email] in the From field as this causes authentication failures.

Save the form and test sending to confirm the new settings improve delivery.

  1. Open Contact Forms in WordPress admin
  2. Edit your form and go to Mail tab
  3. Set From to a domain email (e.g., no-reply@example.com)
  4. Set Reply-To to [your-email]
  5. Save changes and send test email

How to confirm the envelope-from (Return-Path) vs header From in actual messages and their source in CF7 or WordPress

The envelope-from (Return-Path) is set by the mail server or plugin sending the message. It’s not always visible in the email client.

To see Return-Path, check the full email headers or server mail logs. The header looks like Return-Path: <bounce@example.com>.

CF7 and WordPress mail() function usually set Return-Path to the site admin email or configured sender. SMTP plugins may override this.

Check your SMTP or mail plugin settings for which address is used as envelope-from. Ensure it matches your domain to pass SPF and DMARC.

If Return-Path differs from header From, alignment fails unless both domains are under your control.

Use server logs or mail testing services to capture the full SMTP transaction and verify the envelope-from.

How to retrieve and read server mail logs for tracing delivery

Access your server via SSH or your hosting control panel’s file manager to find mail logs.

Common log files include /var/log/maillog, /var/log/mail.log (Linux with Postfix or Sendmail), or /var/log/exim_mainlog (Exim).

Use commands like grep 'recipient@example.com' /var/log/maillog to find related entries.

Look for lines with SMTP status codes: 250 means accepted, 550 or 554 mean rejection.

Example of rejection in logs: 550 5.7.1 Message rejected due to spam or authentication failure.

If you lack shell access, ask your hosting provider for mail delivery logs or enable CF7 debug plugins that log sending results.

Checking these logs helps distinguish between sending failure, rejection, or spam filtering by the recipient server.

What to do if your host cannot set DKIM: use SMTP relay or transactional email providers

email header showing From field with visitor email
email header showing From field with visitor email

Some hosting providers do not support DKIM signing on outbound mail. This limits your ability to pass authentication checks.

In such cases, configure CF7 or WordPress to send mail via an SMTP relay service that supports DKIM, like SendGrid, Mailgun, or Amazon SES.

Install an SMTP plugin for WordPress, enter your SMTP provider’s credentials, and route all outgoing mail through them.

These services provide DKIM keys and manage signing for you, improving deliverability to Gmail and other providers.

Check your SMTP provider’s documentation for setup instructions and sample DNS records.

This approach avoids relying on your host’s mail server and its reputation or authentication capabilities.

Remediation steps for IP reputation issues affecting Gmail delivery

If your sending server’s IP is blacklisted or has poor reputation, Gmail may reject or spam-filter your emails regardless of headers.

Check blacklists using online tools like MXToolbox, Spamhaus, or Talos Intelligence by entering your server’s IP.

If blacklisted, contact your hosting provider to request delisting or consider moving to a clean IP or using an SMTP relay service.

Request removal by following blacklist-specific procedures, which often involve email or web forms.

Maintain good sending practices to avoid future blacklisting, such as limiting volume, avoiding spam content, and cleaning email lists.

Monitor your IP reputation regularly and act promptly when issues arise to maintain Gmail deliverability.

How to confirm the fix held: send a test submission and check both the Gmail inbox and the raw headers for the authentication results

After applying fixes, submit a test through your Contact Form 7 form.

In Gmail, find the email, select More > Show Original to view full headers and authentication results.

Look for SPF, DKIM, and DMARC passes and confirm the domains match your site’s domain.

Also send to a non-Gmail account to verify consistent delivery and compare headers.

If Gmail still filters or rejects, revisit logs, DNS records, and CF7 settings to find remaining issues.

Questions people still ask

Why does Contact Form 7 use the visitor’s email as the From address by default?

CF7 uses the visitor’s email as From to make replies go directly to them. However, this breaks SPF and DKIM authentication with providers like Gmail, causing delivery failures.

How do I find my mail server’s logs for CF7 emails?

Mail logs are usually accessible via your hosting control panel or by contacting support. Logs reside in files like /var/log/maillog or /var/log/mail.log. CF7 debug plugins may capture sending results inside WordPress.

What do SPF, DKIM, and DMARC do for my emails?

SPF authorizes which servers can send mail for your domain. DKIM adds a cryptographic signature to verify the mail origin. DMARC tells receivers how to handle mails failing SPF or DKIM checks, improving deliverability.

Can I use an SMTP plugin instead of the default WordPress mail?

Yes. SMTP plugins let you route mail through trusted providers who add proper authentication and maintain good sending reputation, reducing delivery failures.

Why are my emails going to Gmail Spam even after fixing authentication?

Besides authentication, Gmail considers content, sending reputation, and user feedback when filtering spam. Monitor reputation and adjust content to avoid spam triggers.

As a web developer, I've traced many email delivery issues to authentication and header misalignment rather than plugin bugs.

Daniel Brooks Editor

Daniel Brooks writes TechInfoTime's guides to Windows, Mac and phone problems, online privacy and security, and the apps and AI tools worth using, working through each fix step by step on the settings real people have.

More in Blogging & Websites