Skip to main content
mailers.io

Providers

Connecting SparkPost to mailers.io: region, key and DKIM

By mailers.io team Published 5 min read

SparkPost is one of the eleven sending providers you can connect to mailers.io. Like the others, it stays your account: you pay SparkPost directly, your domain and your reputation are yours, and mailers.io sits on top as the layer that holds lists, campaigns, sequences and routing. This guide goes through the connection and points out the places where SparkPost behaves differently.

Before you start

You need:

  • a SparkPost account that is allowed to send;
  • an API key created in the region your account lives in;
  • a domain you can edit DNS for, ideally a subdomain used for sending (see the subdomain strategy);
  • room for the domain in your plan. Sending domains are limited per plan; see pricing.

The condensed version of this page is the SparkPost integration.

Step 1: pick the region

SparkPost’s US and EU services are separate accounts with separate hosts. An account created in one cannot be used from the other. mailers.io asks for the region when you add the server and uses the matching host, so choose the region your SparkPost account was created in.

If you have an account in each, connect each as its own server and name them so you can tell them apart in the logs. Limits are set per server, which suits this arrangement: the US account and the EU account can have different speeds and caps.

Step 2: create the API key

In SparkPost, create an API key for mailers.io. Give it the rights to send, to manage sending domains and to manage webhooks, because mailers.io does all three through the API. A key reserved for this purpose can be rotated without touching anything else.

Copy the key when SparkPost shows it. You will paste it into mailers.io in the next step.

Step 3: connect the server

Open Sending, then Servers, and add a server. Choose SparkPost and fill in:

  • A name you will recognise in logs and reports.
  • Region, US or EU.
  • API key.
  • Speed limit (optional). See step 6.

Run Test connection. A failed test usually means a key from the other region, a key with a stray space or a revoked key. The key is sealed before it is stored and it is write-only, so you can replace it but not read it back.

How mailers.io sends is worth knowing. It builds the complete message, headers and all, and gives SparkPost that exact raw MIME. SparkPost’s own tracking and its unsubscribe-footer injection are switched off on these messages. What you preview in mailers.io is therefore what the recipient receives, and opens and clicks in your reports come from mailers.io tracking.

Step 4: authenticate your domain

Open Sending domains, add your domain and choose the SparkPost server. mailers.io creates the DKIM key through the SparkPost API and shows you the DNS record. Publish it at your DNS host and use the verify button.

SparkPost signs with that key, and mailers.io does not sign the message again. DNS can take time to spread, so a record you published a minute ago may not yet be seen. For the background on how SPF, DKIM and DMARC work together, read SPF, DKIM and DMARC explained.

Step 5: events and the secret URL

Bounces and complaints must come back so bad addresses stop receiving mail. For SparkPost, mailers.io registers a webhook in your account when you save the server.

Here SparkPost differs from SendGrid or Mailgun. It does not sign webhook calls in this setup, so a signature check is not possible. mailers.io protects the webhook the other way: the callback URL carries a secret token that the platform creates, and a call without it is rejected. One consequence follows:

  • Treat the webhook URL as a secret. Do not paste it into a ticket or a chat.

Delivery, bounce and complaint events then arrive by themselves. A hard bounce or a complaint puts the address on your suppression list, and it is not mailed again. A soft bounce counts toward the soft-bounce limit. Suppressed recipients are never charged a credit.

Step 6: pace the server under your SparkPost allowance

Your SparkPost plan has its own sending allowance. Put a speed limit on the server that sits a little under it, per minute, per hour or per day. mailers.io then paces itself and SparkPost has less reason to refuse.

If SparkPost does answer with a rate-limit error, mailers.io treats the server as busy and steps aside for the time asked. The message goes to another server or waits. Routing by provider quota and speed limits explains the order in which servers are tried. Every plan has failover and rotation across your own servers, by default round robin with 3 attempts.

Step 7: send a test

Send a message to an address you own and open the log. You should see one attempt on the SparkPost server and a delivery event when SparkPost reports it. If the attempt failed, the error class tells you where to look: authentication points at the key or the region, a refusal about the sender points at the domain, and a rate limit points at the allowance.

For a new domain, ramp volume on a schedule with warm-up and watch the bounce and complaint rates while you do. Warm-up pauses on its own when they cross its thresholds, and it does not guarantee a reputation.

What mailers.io does not do for SparkPost

It does not raise your SparkPost limits or lift a restriction on the account. It does not use SparkPost templates, recipient lists or its own tracking. It does not move a domain between the US and EU services. And it does not give you a shared IP pool: the mail goes out through your own account.

If SparkPost is your only server, remember that one provider is one point of failure.

SparkPost checklist before the first campaign

  1. The region matches the SparkPost account the key came from.
  2. The connection test passes and the key is stored.
  3. The DKIM record is published and the domain shows as verified.
  4. A test message to your own address shows a delivery event in the log.
  5. A speed limit is set under your SparkPost allowance.
  6. The webhook URL is kept private.

With those six done, the server can carry campaigns, automations, sequences and API mail.

Questions and answers

Which SparkPost regions are supported?

US and EU. They are separate SparkPost accounts, so add one server per account.

Is the SparkPost webhook signed?

No. SparkPost provides no signature in this setup, so the webhook uses a secret token in its URL. Treat that URL as a secret.

Can I use SparkPost for sequences?

Yes. Read SparkPost's acceptable use terms first, because what you send is your responsibility.

Does mailers.io rewrite my message for SparkPost?

No. The complete message is carried through unchanged as raw MIME.

Written by the mailers.io team. Published .

Keep reading

Related posts

Send cold e-mail from your own servers.

Connect your servers, import a list and write the steps. Replies stop the sequence.

  • 7-day money-back guarantee
  • Bring your own providers
  • Cancel anytime