Skip to content
Groundmail

SMTP relay service for your app's transactional email.

Point your app at smtp.groundmail.dev and keep your code. Password resets, sign-in codes and receipts go out from your own domain, authenticated, on IPs that only carry transactional mail.

SMTP is included on every plan. 3,000 emails a month free.

Point your app at smtp.groundmail.dev.

Verify your sending domain, create an SMTP credential, and paste these into any SMTP client. Not sure about ports or TLS settings? See SMTP ports explained.

  • Port 587 with STARTTLS, or 2525 where 587 is blocked
  • Username is always groundmail
  • Credentials from the dashboard or POST /smtp-credentials
  • From must use a verified domain on your account

Supabase custom SMTP, Clerk, WordPress, PHPMailer and Spring take the same four values. Field-by-field setup for tools like Knock, Courier and Novu is in the SMTP tools guide.

SMTP settings
Host:     smtp.groundmail.dev
Port:     587 (STARTTLS), or 2525 if your host blocks 587
Username: groundmail
Password: gmsmtp_…   # an SMTP credential

# From must use a domain you verified in Groundmail
From:     noreply@yourdomain.com
# settings.py
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
EMAIL_HOST = "smtp.groundmail.dev"
EMAIL_PORT = 587
EMAIL_USE_TLS = True  # STARTTLS
EMAIL_HOST_USER = "groundmail"
EMAIL_HOST_PASSWORD = os.environ["GROUNDMAIL_SMTP_PASSWORD"]
DEFAULT_FROM_EMAIL = "noreply@yourdomain.com"

What the relay does with your mail.

Your app hands the message over and gets a reply in the same SMTP session. Everything after that is our job.

  1. 01Checks who is sendingThe connection upgrades to TLS, the credential is checked, and the From address must be on a domain you verified.
  2. 02Applies your account's rulesSuppressed recipients are refused and plan limits apply. A daily ramp-up limit gets a temporary 451 so your client retries later; anything that needs your action gets a permanent 554 with the reason.
  3. 03Signs and deliversThe message is DKIM-signed for your domain and delivered from IPs that only carry transactional mail. Deferrals from Gmail, Outlook or Yahoo are retried for you.
  4. 04Reports backDelivered, bounced and complained events show on the Emails page and arrive as signed webhooks. Hard bounces and complaints go on your suppression list automatically.

Why the shared pool stays clean.

A shared relay is only as good as the other mail on its IPs. Ours is set up so the only other mail beside yours is other apps' password resets, receipts and alerts.

Transactional mail on its own IPs

Every message sent through the relay is treated as transactional and goes out on the transactional pool. Product and newsletter mail run on separate servers and IPs, so a bulk send can't drag down your sign-in codes.

No cold email, no bought lists

Our acceptable use policy bans cold outbound, unsolicited bulk mail and purchased or scraped lists. Accounts that send it are throttled or suspended.

Abuse kept out at the door

Sending to other people needs a card on file, new accounts ramp up gradually, and we watch complaint rates, hard bounces, spam traps and blocklists on every account.

A team you can email

We run our own mail servers and IP space, so when a mailbox provider starts deferring, the people who look into it are the ones who operate the servers. Write to support@groundmail.dev.

Same domains, limits and suppressions as the HTTP API.

SMTP is another way into the same account. Nothing about your safety rules changes.

Drop-in config

Works with Supabase custom SMTP, Clerk, WordPress, nodemailer and anything else that can send SMTP. No SDK and no code changes.

One set of rules

Verified domains, plan limits, suppressions and webhooks behave exactly as they do for the REST API. Bounces from SMTP sends land on the same suppression list.

Send-only credentials

SMTP credentials can send mail and nothing else. Management stays behind API keys. Revoke a credential any time without touching DNS.

API features in headers

Tags, idempotency keys and scheduled sends map from X-Groundmail-* headers, so SMTP clients are not stuck with plain MIME.

Create an SMTP credential
curl -X POST https://api.groundmail.dev/smtp-credentials \
  -H "Authorization: Bearer $GROUNDMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Supabase production"}'
nodemailer over SMTP
import nodemailer from "nodemailer";

const transport = nodemailer.createTransport({
  host: "smtp.groundmail.dev",
  port: 587,
  secure: false, // upgrades with STARTTLS
  auth: {
    user: "groundmail",
    pass: process.env.GROUNDMAIL_SMTP_PASSWORD,
  },
});

await transport.sendMail({
  from: "noreply@yourdomain.com",
  to: "user@example.com",
  subject: "Reset your password",
  html: "<p>Click the link to reset.</p>",
  headers: {
    "X-Groundmail-Tag": "flow=password-reset",
    "X-Groundmail-Idempotency-Key": "reset-4821",
  },
});

Test before you go live. Check the connection first, then the outcomes your app has to handle.

  • Connection and login. The free SMTP tester connects to smtp.groundmail.dev, checks STARTTLS and the certificate, logs in with your credential and shows the full transcript.
  • Bounces and complaints. Send to bounce@simulator.groundmail.dev, complaint@, block@ or delayed@ and get the real status and webhooks, without touching your reputation, stats or bill. Add +anything to tell tests apart.
  • The real thing. Trigger a password reset from your app to your own inbox and check it arrives from your domain with DKIM, SPF and DMARC passing.

SMTP credentials always send live mail. For tests that never deliver, use a test API key; the testing guide covers both.

Simulated bounce with swaks
swaks --server smtp.groundmail.dev:587 --tls \
  --auth PLAIN --auth-user groundmail \
  --auth-password "$GROUNDMAIL_SMTP_PASSWORD" \
  --from noreply@yourdomain.com \
  --to bounce+signup-test@simulator.groundmail.dev

Move to dedicated IPs or a dedicated server without changing your code.

Every account starts on the shared pool. When you need a reputation of your own or fixed IPs to allowlist, your SMTP settings stay exactly the same: we move your verified domains to the new IPs as they warm up.

Pool

Included

Every plan starts here.

  • Shared IPs that only carry transactional mail
  • Warmed and monitored by us
  • Right for most senders

Dedicated IPs

$25/mo per IP

On pay as you go. Your first IP is included once you send 100,000+ emails a month.

  • Reputation that's yours alone
  • Fixed IPs your customers can allowlist
  • Warmed with you before traffic moves over
  • Reverse DNS on your own domain
  • Or give one of your customers (a tenant) its own IP

Dedicated server

$249/mo plus pay-as-you-go sending

For teams that need full isolation.

  • Your own mail server and IPs, no shared queue
  • Built, warmed and managed by us
  • Clear answers for security and procurement reviews

See dedicated IPs and servers for warmup and setup, or the shared vs dedicated IP guide to decide.

Who this relay is not for. Better to know now than after you've changed your config.

Cold email and prospecting

Outreach to people who didn't sign up, bought or scraped lists: banned on every plan, shared or dedicated.

Newsletters and campaigns

Everything sent through the relay goes out as transactional mail. Send opt-in newsletters through the API once we approve your account; marketing campaigns are coming later.

Relaying for domains you don't control

This isn't an open relay. Every From address must be on a domain you verified with DKIM and SPF, so a printer or app that sends as arbitrary addresses won't work.

Hosting on a platform that blocks outbound SMTP? Send the same mail over the HTTP API and SDKs instead: same account, same domains.

Relay pricing: Free, pay as you go or a dedicated server.

SMTP is included on every plan, and SMTP and API sends count toward the same monthly emails.

Free

$0/mo

  • 3,000 emails / month
  • 100 emails / day
  • 3 sending domains

Pay as you go

$15/mo

  • 20,000 emails a month included
  • $0.70 per 1,000 from 20,000 to 100,000
  • $0.50 per 1,000 from 100,000 to 1 million
  • $0.30 per 1,000 above 1 million

Dedicated server

$249/mo

  • Plus pay-as-you-go sending, at the same rates
  • IPs listed for allowlists
  • Scoped with our team

See the bill at your volume on the pricing page.

Questions

What is an SMTP relay service?

A hosted mail server your app logs in to over SMTP. It accepts your messages, signs them for your domain, delivers them to each recipient's mail server, retries when a server defers, and reports bounces. With Groundmail that server is smtp.groundmail.dev, and it carries transactional mail only.

What are the SMTP relay settings?

Host smtp.groundmail.dev, port 587 with STARTTLS (or 2525 with the same STARTTLS and login), username groundmail, and an SMTP credential from the dashboard as the password. Send from an address on a domain you've verified.

My host blocks port 587. What do I use?

Port 2525. It is the same server with the same STARTTLS and login. DigitalOcean and Vultr block 587 on new accounts. Railway and Render block SMTP entirely on their free plans, so send over the HTTP API there instead.

Is the SMTP password my API key?

No. It is a separate SMTP credential that starts with gmsmtp_. It can only send mail, so it is safe to hand to an auth provider or CMS. It is shown once when you create it.

Do SMTP sends get the same treatment as API sends?

Yes. The relay uses the same account, verified domains, plan limits, suppressions and webhooks as POST /emails. SMTP mail leaves from the same pool, dedicated IPs or dedicated server as the rest of your traffic.

Can I use tags, idempotency or scheduling over SMTP?

Yes. Set X-Groundmail-Tag, X-Groundmail-Idempotency-Key or X-Groundmail-Scheduled-At on the message and the relay maps them to the matching API fields.

What happens when I hit a sending limit?

A new account's daily ramp-up limit gets a temporary 451 4.7.1 reply with the reset time, so your mail server keeps the message queued and retries. A message over the Free plan's limit gets a permanent 554 reply that says which limit was reached.

Do I need a credit card?

Not to sign up, and not to send test emails to yourself. To send to other people on Free you need a card on file, and Free never charges it; you're only billed once you turn on pay as you go. Requiring a card to send keeps abuse off our IPs, which protects deliverability for everyone on them.

How do I rotate a credential?

Create a new credential, update your client, then revoke the old one in the dashboard or with DELETE /smtp-credentials/{id}. Your domains stay verified.

Start sending through the relay.

Create an account, verify your domain and create an SMTP credential. Your app is sending from your own domain in a few minutes, free for 3,000 emails a month.