Gmail Sending Health
Why replies sent from a custom-domain address through Gmail can land in Spam, how to fix SPF, DKIM and DMARC, where to add the DNS records at Porkbun, Cloudflare and GoDaddy, and how the Sending health panel checks your setup.
Gmail sending health
When you reply to a ticket from a Gmail connection, ZyberDesk sends the message through Gmail. If you reply from a custom-domain address, such as hello@yourcompany.com, that address is a Send mail as alias on your Gmail account. The message is sent by Google's servers, but it says it comes from your domain.
Inboxes check whether the domain's owner allows that. If your domain's DNS does not say so, the reply can land in the customer's Spam folder, even though Gmail reports it as sent. The Sending health section on the Gmail card in Integrations shows what is missing and the exact DNS record to add.
Replies from a plain gmail.com address always pass, because Google signs and authorises them itself. Those addresses are not checked.
Why replies land in Spam
Three DNS records let a receiving inbox trust mail from your domain.
| Record | What it does | What Gmail sending needs |
|---|---|---|
| SPF | Lists the servers allowed to send for your domain. | One SPF record that includes Google. |
| DKIM | Adds a signature that proves the message came from your domain and was not changed. | A Google DKIM key, which needs Google Workspace for the domain. |
| DMARC | Tells inboxes what to do with mail that fails SPF or DKIM, and where to send reports. | A DMARC record, starting with p=none. |
A typical problem looks like this: the domain's SPF record only lists the registrar's mail servers, so mail sent by Google fails SPF. There is no DKIM key and no DMARC record, so nothing else vouches for the message. Inboxes treat that mail as suspicious.
SPF
Add Google to your domain's SPF record. SPF lives in a TXT record on the root of your domain (the host is @, or the domain name, depending on your provider).
- Look at the existing record. It starts with
v=spf1. - Add
include:_spf.google.combefore the final~allor-all. For example, changev=spf1 include:_spf.porkbun.com ~alltov=spf1 include:_spf.porkbun.com include:_spf.google.com ~all. - Save the record.
A domain must have only one SPF record. Two records starting with v=spf1 make SPF fail for every message. If you have two, merge them into one. The Sending health panel shows the merged record for you to paste in.
If the alias is set up in Gmail with its own SMTP server (see below), the SPF record has to authorise that provider instead. The panel then only checks that an SPF record exists.
DKIM
DKIM signing for a custom domain needs Google Workspace. A free gmail.com account cannot sign mail for another domain. You have two options.
Option 1: use Google Workspace for the domain.
- In the Google Admin console, open Apps > Google Workspace > Gmail > Authenticate email.
- Choose the domain and select Generate new record. Keep the default selector,
google. - Add the TXT record Google shows at
google._domainkey.yourcompany.com. - Back in the Admin console, select Start authentication.
Option 2: send the alias through your domain provider's SMTP server.
In Gmail, open Settings > Accounts > Send mail as, edit the alias and choose to send through your provider's SMTP server (for example smtp.porkbun.com) with your mailbox credentials. Mail is then sent and signed by your domain provider instead of Google. Make sure your SPF record authorises that provider.
If you do neither, the panel shows a warning for DKIM. Replies can still arrive in the inbox when SPF and DMARC are set up, but DKIM is the strongest signal.
DMARC
DMARC is a TXT record at _dmarc.yourcompany.com. Start in monitoring mode, then tighten it once your reports look clean.
- Add a TXT record with host
_dmarcand valuev=DMARC1; p=none; rua=mailto:you@yourcompany.com. Use an address you read. Inboxes send daily summary reports there. - Leave it for a week or two. Check that your own mail passes SPF and DKIM.
- Change
p=nonetop=quarantine. Later you can move top=reject.
With p=none the panel shows a warning labelled "monitoring only", because the policy does not yet protect your domain.
If you send from a subdomain such as mail.yourcompany.com and it has no DMARC record of its own, the panel uses the record on the parent domain, the same way inboxes do.
Where to add the records
Every provider asks for a record type, a host (also called name) and a value. Add TXT records with the values from the Sending health panel.
Porkbun. Open Domain Management, then Details for the domain, then DNS Records. Select Add, choose type TXT, leave Host empty for the root record (SPF) or enter _dmarc or google._domainkey, paste the Answer, and save.
Cloudflare. Open the domain, then DNS > Records > Add record. Choose type TXT. Enter @ as the Name for the root record, or _dmarc or google._domainkey. Paste the value into Content and save. To change an existing SPF record, edit it instead of adding a second one.
GoDaddy. Open My Products, then DNS next to the domain. Select Add New Record, choose type TXT, enter @ as the Name for the root record, or _dmarc or google._domainkey, paste the Value and save. To change an existing SPF record, edit it.
Some providers append your domain to the host automatically. If so, enter _dmarc, not _dmarc.yourcompany.com. DNS changes can take from a few minutes to a few hours to be visible.
Test your setup
After you change DNS, use Re-check in the Sending health panel, then confirm with a real message.
- Send yourself a test reply from a ticket, to a Gmail address you control.
- Open the message in Gmail, select the three dots, then Show original.
- At the top, look for
SPF: PASS,DKIM: PASSandDMARC: PASS. DKIM can readNEUTRALorFAILuntil you set it up as described above. - For a broader check, send a message to the address shown at mail-tester.com. It scores the message and explains any issues.
What the Sending health panel checks
The panel appears on each connected Gmail mailbox. It checks the reply-from address and every other Send mail as alias on the account, grouped by address.
| Check | Pass | Warning | Fail |
|---|---|---|---|
| SPF, alias sent through Google | One SPF record that includes _spf.google.com, directly or in an included record. | No SPF record, Google not included, or more than one SPF record. | |
| SPF, alias sent through its own SMTP server | An SPF record exists. | No SPF record. | |
| DKIM, alias sent through Google | A key exists at google._domainkey.<domain>. | No key published. | |
| DMARC | A policy of quarantine or reject. | No record, or p=none. | |
| Address verified in Gmail | Gmail has verified the alias. | The alias is pending or not found. Confirm it in Gmail under Settings > Accounts > Send mail as. |
Each result shows a label in text (Pass, Warning, Fail or Unknown), what was found in DNS and a one-line explanation. For warnings and failures it shows the exact record to add, with a copy button. Unknown means a DNS lookup timed out or could not be completed. Use Re-check to try again.
When any address fails, the Gmail card shows Replies may go to Spam in its header. When the worst result is a warning it shows Check sending setup. When everything passes, the badge is hidden.
The check reads public DNS records only. It does not send email, and it does not change anything on your domain or in Gmail.