How it works

From your domain to the recipient’s inbox

What you set up, what we check, and what happens to each message. The examples use example.com; the portal shows the exact values for your domain.

Two domains, on purpose

securemx.io is our brand: this site and the portal. Every hostname that appears in mail we relay (the server name, DKIM key records and return-path targets) lives under a separate domain, smxrelay.net. If someone ever got that domain onto a blocklist, the portal and your account wouldn’t be affected, and we could replace it.

1. Add your domain

In the portal, add the domain you want to send from. We generate a DKIM key pair for it, encrypt the private key for storage and publish the public key under smxrelay.net. We also assign the domain a short, opaque reference (k3x9q2 below) that ties those records to it. We look up your nameservers so we can name your DNS host in the instructions.

2. Publish the DNS records

Most of the records are CNAMEs that point to names we manage. That’s deliberate: when a key needs rotating we change our side, and you never have to edit DNS again.

DNS records for example.com
NameTypeValue
_securemx-verifyTXTsmx-verify=<token>Required
sm1._domainkeyCNAMEsm1.k3x9q2.dkim.smxrelay.netRequired
sm2._domainkeyCNAMEsm2.k3x9q2.dkim.smxrelay.netRequired
smx-bounceCNAMErp.smxrelay.netRequired
_dmarcTXTv=DMARC1; p=none; rua=mailto:dmarc@example.comRecommended
@ (apex)TXTinclude:spf.smxrelay.netOptional

The same records in zone-file form:

; example.com: records for securemx (example values)
_securemx-verify.example.com.  TXT    "smx-verify=<token>"
sm1._domainkey.example.com.    CNAME  sm1.k3x9q2.dkim.smxrelay.net.
sm2._domainkey.example.com.    CNAME  sm2.k3x9q2.dkim.smxrelay.net.
smx-bounce.example.com.        CNAME  rp.smxrelay.net.

; recommended, if you don't have a DMARC record yet
_dmarc.example.com.            TXT    "v=DMARC1; p=none; rua=mailto:dmarc@example.com"

; optional: merge into your existing SPF record (only one per domain)
example.com.                   TXT    "v=spf1 include:_spf.google.com include:spf.smxrelay.net ~all"

Why each one exists

_securemx-verify TXT
Proves you control the domain. Nobody else can add example.com to their account and send as you.
sm1._domainkey CNAME
Points to the public half of your DKIM key, which we publish. Receivers use it to check that mail signed for example.com really came from us and wasn’t altered.
sm2._domainkey CNAME
A second selector, published in advance, so keys can be rotated with no DNS change on your side.
smx-bounce CNAME
Your return path. Bounces come back to smx-bounce.example.com, which is how we suppress bad addresses, and SPF is checked against this name, so it aligns with your domain for DMARC.
_dmarc TXT
Tells receivers what to do when authentication fails and where to send reports. Large mailbox providers increasingly require one. Start with p=none, then tighten it once reports look clean. Skip this if you already have one.
@ (apex) TXT
Not needed for alignment, because the return path handles SPF. Add it only if you want your apex SPF record to list us too, and merge it into your existing record: a domain must have exactly one SPF record.

3. We check the records for you

Press Check now and smxd queries your domain’s authoritative nameservers directly, so you see what’s really published rather than a stale cached answer. Each record shows as ok, missing or wrong, with an explanation of what to fix. The mistakes we spot include:

  • A name entered in full, so your DNS host appends the domain again: sm1._domainkey.example.com.example.com.
  • A CNAME that answers with an IP address because the provider proxies or flattens it (Cloudflare’s orange cloud).
  • A CNAME pointing at the wrong target, or a TXT record where a CNAME should be.
  • Two SPF records, which makes SPF fail entirely; two DMARC records, which receivers ignore.

Once the required records are in place, the domain is verified and you can send from it. We keep checking verified domains daily. If a required record disappears, the domain is marked degraded, and we stop signing and sending for it before receivers start rejecting your mail.

4. Send

SMTP (mail clients and most apps)

SMTP settings
Servermx1.smxrelay.net
Port587 with STARTTLS, or 465 with TLS from the first byte
AuthenticationAUTH PLAIN, offered only after TLS is up
Username / passwordFrom an app password you create in the portal (shown once)

AUTH LOGIN isn’t supported; every current mail client and library supports PLAIN. Use one app password per device or app, so you can revoke one without touching the rest.

HTTP API (applications)

Create an API key in the portal and send JSON to POST /api/v1/messages. You can send plain text, HTML or both, with To, Cc, Bcc and Reply-To.

curl https://app.securemx.io/api/v1/messages \
  -H "Authorization: Bearer smx_…" \
  -H "Content-Type: application/json" \
  -d '{
    "from":    {"email": "hello@example.com", "name": "Example"},
    "to":      [{"email": "someone@example.net"}],
    "subject": "Your sign-in link",
    "text":    "Here it is: https://example.com/login/…"
  }'

What happens to each message

  1. Your credential is checked, along with its hourly limit and your account’s limits.
  2. The From address must be on one of your verified domains; anything else is refused.
  3. Recipients on your suppression list are skipped.
  4. The message is scanned for spam (rspamd), then DKIM-signed as example.com. No Received header with your IP address is added.
  5. We deliver it over TLS whenever the receiving server supports it, and require TLS for domains that publish MTA-STS or DANE policies.
  6. Hard bounces come back to smx-bounce.example.com and the address is suppressed automatically.

Questions about a setup? Write to postmaster@securemx.io. Not in the beta yet? Request an invite.