Article

Content

Brevo SMTP Setup: Settings, Steps and Error Fixes (2026)

Brevo SMTP Setup: Settings, Steps and Error Fixes (2026)

Brevo SMTP Setup: Settings, Steps and Error Fixes (2026)

Summarize with
Book more meetings with pre-warmed mailboxesReady-to-send Google & Microsoft inboxes in 5 minutes. US/EU IPs. No warmup wait.Get pre-warmed inboxes
4.8on G2
4.5on Trustpilot
Add as a preferred source on Google
Table Of Contents

Scanning page for headings…

Most failed Brevo SMTP connections come down to one wrong field. This walkthrough gives you the exact settings, a step-by-step Brevo SMTP setup with code for WordPress, Python and Node.js, a fix table for the common errors, and a clear note on what Brevo's relay is and isn't built to send.

Stop Losing Emails to Spam — Get Pre-Warmed Inboxes
Ready to send from day 1. No warm-up wait. No extra tools needed.
Find Your Sending Domains →
100,000+ mailboxes · US & EU IPs · From $4.99/inbox

💡 TL;DR

For Brevo SMTP setup, use host smtp-relay.brevo.com, port 587 (STARTTLS) or 465 (SSL/TLS), your SMTP login from Settings → SMTP & API as the username, and an SMTP key — not an API key — as the password. Authenticate your sending domain first. The most common cause of a 535 error is putting smtp-relay.brevo.com in the username field. Brevo's free plan allows 300 emails a day, and its anti-spam policy prohibits purchased or scraped lists, so it isn't a cold outreach tool.

By LiteMail · Prices/data checked on November 25, 2026

Stop Losing Emails to Spam — Get Pre-Warmed Inboxes
Ready to send from day 1. No warm-up wait. No extra tools needed.
Find Your Sending Domains →
100,000+ mailboxes · US & EU IPs · From $4.99/inbox

Table of Contents

  1. The 60-Second Answer

  2. Brevo SMTP Settings Compared to Other Relays

  3. How We Put This Guide Together

  4. Before You Start: Authenticate Your Sending Domain

  5. Step-by-Step: Generate Your SMTP Key

  6. Port 587, 465 or 2525: Which to Use

  7. Setup Examples: WordPress, Python and Node.js

  8. Test the Connection Before Your App Does

  9. Troubleshooting: Fixes for Common Brevo SMTP Errors

  10. Free Plan Limits and Batch Sending

  11. What Brevo SMTP Isn't Built For

  12. Worked Example: A SaaS App's Password Resets

  13. What Users Report

  14. Final Verdict: Simple Setup, Clear Boundaries

  15. Frequently Asked Questions

Need pre-warmed inboxes ready today? Litemail delivers Google Workspace & Microsoft 365 mailboxes with weeks of warm-up history built in.Check Available Domains →

The 60-Second Answer

If you just need the values, here they are. Everything else in this guide explains why each one matters and what to do when it fails.

  • SMTP server: smtp-relay.brevo.com

  • Port: 587 with STARTTLS (recommended), 465 with SSL/TLS, or 2525

  • Username: your SMTP login from Settings → SMTP & API

  • Password: an SMTP key you generate on that page

  • From address: a verified sender on an authenticated domain

By the end of this guide, you'll have a working connection, a tested From address, and a fix for every error Brevo's own help center lists as common.

Litemail's pre-warmed Google Workspace & Microsoft 365 inboxes come with US/EU IPs, automated DNS, full admin access, and 4–12 weeks of warm-up history — all from $4.99/inbox. No separate warm-up tool needed.

Brevo SMTP Settings Compared to Other Relays

Here's how the Brevo values compare with other common relays, so you can spot a copy-paste mistake from a previous provider.


Setting

Brevo

Mailgun

SendGrid

Host

smtp-relay.brevo.com

smtp.mailgun.org

smtp.sendgrid.net

Recommended port

587 (STARTTLS)

587

587

Other ports

465 (SSL/TLS), 2525

Varies by plan

Varies

Username

SMTP login (email or ID@smtp-brevo.com)

SMTP login

Provider-specific

Password

SMTP key (not API key)

SMTP password

API key


💡 Migrating from Sendinblue?

Brevo was formerly Sendinblue. Brevo's own docs say to update the hostname from smtp.sendinblue.com to smtp-relay.brevo.com.

How We Put This Guide Together

Every setting here comes from Brevo's developer documentation and help center, checked on November 25, 2026. The code examples follow the patterns Brevo publishes for Python and Node.js. We didn't open a new Brevo account to send test traffic for this article; where behavior depends on your account age or plan, we say so.

Start Sending Cold Email Today — Not in 6 Weeks
Pre-warmed Google Workspace & Microsoft 365 inboxes. Automated DNS. US & EU IPs. From $4.99/inbox.
See Domains Ready to Send →
No credit card required · Setup in 5 minutes · Cancel anytime
Start Sending Cold Email — Pre-warmed inboxes from $4
Get Inboxes

Before You Start: Authenticate Your Sending Domain

Skip this and your Brevo SMTP setup can connect perfectly while mail still lands in spam. Gmail requires SPF or DKIM for all senders, and SPF, DKIM and DMARC for bulk senders.

  1. In Brevo, go to Senders, Domains & Dedicated IPs and add your domain.

  2. Publish the DNS records Brevo shows you, including DKIM and the Brevo code record.

  3. Make sure your domain has a DMARC record. Start with p=none and a reporting address.

  4. Wait for Brevo to show the domain as authenticated, then add your sender address.

Already running other mail on this domain? Your SPF record should include every service that sends for you. Our SPF, DKIM and DMARC guide explains how to merge records without breaking the 10-lookup limit.

Get Fresh Email Inboxes — Set Up in 30 Minutes
Real Google Workspace and Microsoft 365 accounts on your domains. Automated DNS, SPF, DKIM and DMARC included.
Find Your Sending Domains →
Starts at $2.50/inbox · Automated DNS · No manual setup

Step-by-Step: Generate Your SMTP Key

In any Brevo SMTP setup, this is the step people get wrong most often, because Brevo has two kinds of keys.

  1. Log in to Brevo and open Settings → SMTP & API.

  2. Select the SMTP tab, not the API Keys tab.

  3. Copy the value in the Login field. That's your username.

  4. Click Generate a new SMTP key, name it after the app that will use it, and copy it once.

  5. Store the key in a password manager or secret store. Don't paste it into code you commit.

🚩 Login is not the host

Depending on when your account was created, your SMTP login is either your account email or an address like 12345@smtp-brevo.com. It is never smtp-relay.brevo.com. Brevo's help center calls that mix-up one of the most common causes of the 535 error.

Port 587, 465 or 2525: Which to Use

All three work for a Brevo SMTP setup. The difference is how encryption starts and what your network allows.


Port

Encryption

Use when

587

STARTTLS (connection upgrades to TLS)

Default choice for apps and plugins

465

SSL/TLS from the first byte

Your library expects implicit TLS (secure: true)

2525

STARTTLS

Your host blocks 587 and 465


A common mistake: setting port 465 with encryption off, or port 587 with "SSL" forced on. Match the library setting to the port. In Nodemailer, for example, secure is true only for 465.

Stop Losing Emails to Spam — Get Pre-Warmed Inboxes
Ready to send from day 1. No warm-up wait. No extra tools needed.
Find Your Sending Domains →
100,000+ mailboxes · US & EU IPs · From $4.99/inbox

Setup Examples: WordPress, Python and Node.js

Same Brevo SMTP setup values, three environments. Swap in your own login and key.

WordPress (any SMTP plugin)

  • Mailer: Other SMTP or Brevo

  • SMTP host: smtp-relay.brevo.com

  • Encryption: TLS, port 587

  • Username: your SMTP login; Password: your SMTP key

  • From email: a verified sender on your authenticated domain

Python (smtplib)

import smtplib
from email.message import EmailMessage

msg = EmailMessage()
msg["Subject"] = "Test from Brevo"
msg["From"] = "hello@yourdomain.com"   # verified sender
msg["To"] = "you@example.com"
msg.set_content("It works.")

with smtplib.SMTP("smtp-relay.brevo.com", 587) as s:
s.starttls()
s.login("YOUR_SMTP_LOGIN", "YOUR_SMTP_KEY")
s.send_message(msg)
import smtplib
from email.message import EmailMessage

msg = EmailMessage()
msg["Subject"] = "Test from Brevo"
msg["From"] = "hello@yourdomain.com"   # verified sender
msg["To"] = "you@example.com"
msg.set_content("It works.")

with smtplib.SMTP("smtp-relay.brevo.com", 587) as s:
s.starttls()
s.login("YOUR_SMTP_LOGIN", "YOUR_SMTP_KEY")
s.send_message(msg)
import smtplib
from email.message import EmailMessage

msg = EmailMessage()
msg["Subject"] = "Test from Brevo"
msg["From"] = "hello@yourdomain.com"   # verified sender
msg["To"] = "you@example.com"
msg.set_content("It works.")

with smtplib.SMTP("smtp-relay.brevo.com", 587) as s:
s.starttls()
s.login("YOUR_SMTP_LOGIN", "YOUR_SMTP_KEY")
s.send_message(msg)

Node.js (Nodemailer)

const t = nodemailer.createTransport({
host: "smtp-relay.brevo.com",
port: 587,
secure: false, // true only for 465
auth: { user: "YOUR_SMTP_LOGIN", pass: "YOUR_SMTP_KEY" }
});
const t = nodemailer.createTransport({
host: "smtp-relay.brevo.com",
port: 587,
secure: false, // true only for 465
auth: { user: "YOUR_SMTP_LOGIN", pass: "YOUR_SMTP_KEY" }
});
const t = nodemailer.createTransport({
host: "smtp-relay.brevo.com",
port: 587,
secure: false, // true only for 465
auth: { user: "YOUR_SMTP_LOGIN", pass: "YOUR_SMTP_KEY" }
});

Test the Connection Before Your App Does

Don't debug SMTP through your app's error logs. Test the connection directly first, so you know whether the problem is credentials or code.

  1. Check the port is open from your server: nc -vz smtp-relay.brevo.com 587.

  2. Send a one-line test with the Python snippet above, from the same server your app runs on.

  3. Open the test email in Gmail and choose Show Original.

  4. Confirm SPF, DKIM and DMARC all say PASS for your domain.

  5. Only then connect your app or plugin.

If step 4 shows DMARC failing, your domain authentication isn't finished, even though sending worked. Fix that before going live.

Troubleshooting: Fixes for Common Brevo SMTP Errors

Most Brevo SMTP setup failures map to a short list of causes. Brevo's troubleshooting article covers these; here they are in one table.


Error or symptom

Likely cause

Fix

535 authentication failed

Relay host used as username, or API key used as password

Use the SMTP login and an SMTP key

535 after it used to work

SMTP key invalidated or regenerated

Generate a new key and update the app

Sender is invalid

SMTP login used as the From address

Use a verified sender on your domain

Connection timeout

Port blocked by host or firewall

Try 2525, or ask your host to open 587

Delivered but in spam

Domain not authenticated or DMARC failing

Finish domain authentication; check alignment

Stops after 300 emails

Free plan daily cap

Upgrade or spread sends across days


Still stuck after all of that? Check Brevo's status page for an incident before you change anything else.

Free Plan Limits and Batch Sending

Brevo's free plan allows 300 emails a day. That's fine for a side project's password resets. It isn't fine for a product with real signups, where a busy day can hit the cap before lunch.

Brevo's developer docs also note the SMTP relay doesn't support batch sending and is designed for transactional email. For bulk sends, Brevo points to its batch sending API instead.

  • Under 300 transactional emails a day: free plan works.

  • Steady growth: move to a paid plan before you hit the cap, not after.

  • Bulk newsletters: use Brevo's campaign tools or API, not the SMTP relay.

What Brevo SMTP Isn't Built For

You might be wondering whether you can point a cold outreach tool at Brevo's relay. Don't. Brevo's anti-spam policy prohibits lists that were scraped, acquired or purchased, and says it applies to both transactional and marketing messages. Accounts that break the policy risk suspension.

Cold B2B outreach runs on a different model: real mailboxes on separate sending domains, low volume per inbox, and replies handled like normal email. That's what pre-warmed Google Workspace and Microsoft 365 inboxes are for. Keep Brevo for the mail your users asked for, and use outreach infrastructure for outreach. Our cold email infrastructure overview shows how the pieces fit.

Worked Example: A SaaS App's Password Resets

A 3-person SaaS team needs password resets and signup confirmations, around 150 a day, from their Laravel app on a VPS. This is an illustrative setup to show the steps, not a client case study.


Step

What they did

Time

1

Authenticated mail.theirapp.com in Brevo

15 min + DNS wait

2

Generated an SMTP key named "laravel-prod"

2 min

3

Set host, port 587, TLS, login and key in .env

5 min

4

Tested with a one-line script from the VPS

5 min

5

Checked Show Original in Gmail: all PASS

2 min


This is a hypothetical but typical setup. At 150 a day they sit comfortably under the free plan's 300 cap. When signups double, they'll need a paid plan. Their sales team, meanwhile, sends outreach from separate cold email inboxes for SaaS teams, so a bad prospect list never touches the domain their password resets depend on.

Book more meetings with pre-warmed mailboxesReady-to-send Google & Microsoft inboxes in 5 minutes. US/EU IPs. No warmup wait.Get pre-warmed inboxes
4.8on G2
4.5on Trustpilot
Add as a preferred source on Google

Share

Share LiteMail automated email setup on Twitter (X)
Share LiteMail email marketing growth strategies on Facebook
Share LiteMail inbox placement and outreach analytics on LinkedIn
Share LiteMail cold email infrastructure on Reddit
Share LiteMail affordable business email plans on Pinterest
Share LiteMail deliverability optimization services on Telegram
Share LiteMail cold email outreach tools on WhatsApp
Share Litemail on whatsapp
FREESearch pre-warmed domains for freeReady-to-send inboxes that land in the inbox, not spam.Search now
FREESearch pre-warmed domains for freeReady-to-send inboxes that land in the inbox, not spam.Search now
FREESearch pre-warmed domains for freeReady-to-send inboxes that land in the inbox, not spam.Search now