All workshops / Outreach email on your own domain, for free
Module 3: Sending mail with Brevo
Adding the domain to Brevo, setting up the DKIM, SPF and DMARC records, then getting an SMTP key.
Free, no enrolment needed3.1 Adding the domain to Brevo
Cloudflare only receives mail; it cannot send. Brevo does the sending. First you have to prove to Brevo that the domain is yours.
Steps
- 1.Sign in to Brevo and, from the account menu at the top right, open Senders, Domains & Dedicated IPs.
- 2.On the Domains tab, click Add a domain and enter your domain.
- 3.Brevo shows several DNS records: a verification TXT record (brevo-code), two CNAME records for DKIM, and a recommended DMARC record.
- 4.Keep this page open; in the next lesson you will add these records in Cloudflare.
Domain added to Brevo, with the list of records to add in hand.
3.2 Adding the verification and DKIM records in Cloudflare
DKIM is a digital signature on your mail. The recipient’s mail server checks it to confirm the message really came from your domain and was not altered on the way.
Steps
- 1.In Cloudflare, open your domain, then DNS > Records.
- 2.Click Add record. Type TXT, Name @ (meaning the root domain), and in Content paste the brevo-code line from Brevo exactly as given. Click Save.
- 3.Click Add record again. Type CNAME, Name brevo1._domainkey, Target the value Brevo gives you. Switch Proxy status off so it shows DNS only (gray cloud). Click Save.
- 4.Add the CNAME for brevo2._domainkey the same way, also DNS only.
- 5.Go back to the Brevo page and click Verify or Authenticate. DNS changes can take a few minutes to propagate; if it fails, try again a little later.
Shape of the DKIM CNAME records (take the values from Brevo)
Type: CNAME Name: brevo1._domainkey Target: <value from Brevo> Proxy: DNS only
Type: CNAME Name: brevo2._domainkey Target: <value from Brevo> Proxy: DNS onlyWhat not to do
- Do not leave Cloudflare’s orange cloud (Proxied) on for the DKIM CNAME records. If you do, DKIM will not verify.
- Do not type Brevo’s values by hand; copy and paste them. One wrong character and verification fails.
Brevo shows the domain as Authenticated.
3.3 SPF: one record, two senders
An SPF record states which servers are allowed to send mail in your domain’s name. A domain can have only one SPF record. If it has two, both are treated as invalid.
Cloudflare Email Routing has already added an SPF record. Now add Brevo to that same record; do not create a new one.
Steps
- 1.In Cloudflare DNS > Records, find the TXT record that starts with v=spf1.
- 2.Click Edit.
- 3.Replace the Content with the line below and click Save.
SPF that includes both Brevo and Cloudflare
v=spf1 include:spf.brevo.com include:_spf.mx.cloudflare.net ~allWhat not to do
- Do not keep a second TXT record that starts with v=spf1.
A single SPF record on the domain, covering both Brevo and Cloudflare.
3.4 DMARC: start by monitoring only
DMARC tells the recipient’s server what to do with a message if SPF or DKIM fails. Gmail and Yahoo now require DMARC from bulk senders.
Start with p=none, which means: send reports only, do not block any mail. Once everything has run cleanly for a few weeks, you can move to quarantine if you want.
Steps
- 1.In Cloudflare DNS > Records, click Add record.
- 2.Type TXT, Name _dmarc.
- 3.In Content, enter the line below. For rua, use an address of your own; DMARC reports will go there.
- 4.Click Save. If a _dmarc record already exists, edit that one instead of creating a new one.
DMARC, monitoring mode
v=DMARC1; p=none; rua=mailto:you@yourdomain.com_dmarc record in place, in monitoring mode.
3.5 Adding a sender and getting an SMTP key
For Gmail to send mail through Brevo, you need three things: the SMTP server, a login and an SMTP key. The key works like a password, so store it carefully.
Steps
- 1.In Brevo, on the Senders tab, click Add a sender. Enter your name under Name and outreach@yourdomain.com under Email. Because the domain is already authenticated, the sender is active right away.
- 2.From the account menu, open SMTP & API, then the SMTP tab.
- 3.This shows the SMTP server, the port and your SMTP login. The login looks like an email address.
- 4.Click Generate a new SMTP key and give it a name (for example gmail-send-as). The key is shown only once, so save it in your password manager straight away.
Brevo SMTP settings
Server: smtp-relay.brevo.com
Port: 587 (TLS)
Login: <login shown on the Brevo SMTP tab>
Password: <your SMTP key>What not to do
- Never share the SMTP key in a chat, document or screenshot, or with anyone. Whoever has it can send mail from your domain.
- If you lose the key, delete the old one and generate a new key.
Sender added, SMTP login and key stored safely.