Base de conhecimento

Send email through your own SendGrid account

Connect your own SendGrid account: domain authentication CNAMEs, a restricted Mail Send key, the Cloudflare grey-cloud trap, and a 403 on a valid key.

Zinn®, o nosso viking, a ler a sua lista de verificação ao lado de um índice de artigos com um aberto.

You will need a SendGrid (Twilio SendGrid) account and access to your domain's DNS.

SendGrid's own documentation: Sender authentication · API keys · Sign up

1. Authenticate your domain

Settings → Sender Authentication → Authenticate Your Domain.

Pick your DNS host from the list, and answer Yes to "Would you like to also brand the links for this domain?" — link branding rewrites tracked links to your own domain instead of sendgrid.net, and a client who hovers a link in your invoice should see your name.

Enter a subdomain such as mail.yourdomain.com when asked for the domain you send from.

2. Publish the CNAME records

SendGrid gives you three or five CNAME records. Add all of them.

TypeHostPurpose
CNAMEem1234.yourdomain.comReturn-path (bounce) domain
CNAMEs1._domainkey.yourdomain.comDKIM key 1
CNAMEs2._domainkey.yourdomain.comDKIM key 2

⭐ SendGrid uses CNAMEs rather than TXT records on purpose, and it is genuinely better: the actual key values live at SendGrid, so they can rotate their signing keys without you having to touch your DNS again.

⚠️ If your DNS provider is Cloudflare, set these records to DNS only (grey cloud), not proxied. A proxied CNAME resolves to Cloudflare's addresses and SendGrid's check fails.

Press Verify in SendGrid. Allow up to an hour.

3. Create an API key

Settings → API Keys → Create API Key.

Choose Restricted Access and grant Mail Send → Full Access only. Nothing else.

⛔ Do not use a Full Access key. A Full Access key can read your contacts, change your account settings and create more keys; the only thing we need to do is send a message. If our copy of your key were ever exposed, the difference between those two keys is the difference between some unwanted email and a compromised account.

⚠️ The key is shown once. Copy it before you leave the page — SendGrid cannot show it to you again, only replace it.

4. Connect it in Zinn®

Open Email sending in your dashboard:

  • Provider — SendGrid
  • Send from this domain — mail.yourdomain.com (a domain, not an address)
  • SendGrid API key — the key from step 3

SendGrid needs no other settings from you.

5. Send the test and enter the code

Press Send test message to an inbox on a different domain, read the code out of it, and enter it.

When it does not work

403 Forbidden — your API key does not have Mail Send permission. This is the commonest failure by a distance: a Restricted Access key created with no scopes ticked authenticates perfectly and is allowed to do nothing.

"The from address does not match a verified Sender Identity" — your domain authentication has not gone green yet, or the domain in Send from this domain is not the one you authenticated. SendGrid checks the exact domain: authenticating mail.yourdomain.com does not authorise sending from yourdomain.com.

Accepted but never delivered — look at Activity in SendGrid. A brand-new account is sometimes held for review for the first day or so, and the messages sit there rather than bouncing.

Your account was suspended after a few sends — SendGrid is strict about new accounts sending to addresses that bounce. Make sure your client list is clean before you switch over.

Este artigo ainda não foi traduzido para o seu idioma, pelo que está a ler a versão em inglês.

Mais recentes do blogue

O que temos escrito sobre alojamento, SEO e gestão de sites em escala.

SEO and Link Building from the Hosting Layer: A 2026 Operator's View

How hosting shapes indexing and link equity in 2026: keeping pages indexed, vetting aged domains before you build on them, link building without a footprint, and an honest line on what infrastructure can and cannot do for SEO.

Ler o artigo →

Making WordPress Fast and Secure: A Performance and Plugin Checklist

A practical checklist for fast, secure WordPress: server-level caching, a per-site object cache, the handful of plugins worth running, keeping the stack current, and the WooCommerce pages you must never cache.

Ler o artigo →

How to Choose Managed Web Hosting in 2026: A Buyer's Guide

What actually separates good managed hosting from a cheap box with a control panel — migrations, backups, isolation, real caching and honest scaling — and how to judge it before you commit.

Ler o artigo →

Ler o blogue →

Ainda com dúvidas?

O suporte está incluído em todos os planos, o apoio está disponível 24 horas por dia e pode escrever-nos em qualquer um dos nossos 59 idiomas — respondemos-lhe no seu.

Contactar o suporte Todos os artigos