Providers
Connecting SendGrid to mailers.io: key, region and events
By mailers.io team Published 5 min read
public/media/blog-sendgrid-setup-cover.webp SendGrid is one of the eleven sending providers you can connect to mailers.io. The platform does not send mail from its own pool. It sends through your SendGrid account, so your domains, your limits and your reputation stay with you, and SendGrid bills you directly. This guide follows the connection in the order that avoids the usual snags.
Before you start
You need:
- a SendGrid account that is already approved to send;
- permission to create an API key in it;
- a domain you can edit DNS for, ideally a subdomain used only for sending (see the subdomain strategy);
- room for the domain in your plan. Sending domains are limited per plan, so check pricing first.
Two things stay on the SendGrid side and are not changed by mailers.io: your SendGrid plan with its sending limits, and the rules about what you may send. The short integration summary is on the SendGrid integration page. This post goes deeper.
Step 1: create the API key
In SendGrid, create an API key for mailers.io alone. Do not reuse the key your app already uses. A separate key lets you rotate or revoke it without touching anything else, and it makes SendGrid’s activity easier to read.
The key starts with SG. and has the form SG.x.y. Copy it when SendGrid shows it, because SendGrid will not show it again. Give it the permissions needed to send mail and to manage domain authentication and webhooks, since mailers.io performs both through the API. If you give it narrower rights, the domain or event steps below will fail.
Step 2: connect the server
Open Sending, then Servers, and add a server. Choose SendGrid and fill in:
- A name you will recognise in logs and reports.
- Region. Global or EU. SendGrid’s EU option is a separate host, and mailers.io calls the right one for the region you pick. Choose the region your account lives in.
- API key, the value from step 1.
- Speed limit (optional). See step 5.
Run Test connection before you save anything else. A failure here is almost always a pasted key with a stray space, a key from the wrong region, or a key that was revoked.
The key is sealed before it is stored and it is write-only. You can replace it later by editing the server, but nobody, including you, can read it back from the screen.
Step 3: authenticate your domain
SendGrid sends from a domain it has authenticated, and the From address of a message must belong to one. In mailers.io, open Sending domains, add your domain and choose the SendGrid server.
mailers.io creates the domain authentication in your SendGrid account through the API and shows you the DNS records it returned. Publish them at your DNS host and use the verify button. DNS can take a while to spread, so a record you added a minute ago may not be found yet.
The point of this step is that SendGrid signs the mail with the DKIM keys of that authenticated domain. mailers.io does not sign it a second time. If you have never read how the three standards fit together, SPF, DKIM and DMARC explained covers it in plain terms.
Note that SendGrid’s own click and open tracking is switched off on the messages mailers.io sends. Opens and clicks in your reports come from mailers.io tracking, not from SendGrid.
Step 4: events, and the one-webhook limit
A sender needs to learn when mail bounces or is reported as spam, so those addresses stop receiving it. For SendGrid this comes from the Event Webhook.
When you save the server, mailers.io registers its address as the Event Webhook of the account. It reads delivered, bounce, block, drop and spam report events, and it checks the ECDSA signature on every call, so a request that SendGrid did not sign is rejected.
Here is the catch. SendGrid allows only one Event Webhook per account. If the account already posts events somewhere else, connecting the server replaces that setting, and the other system stops receiving them. Before you connect:
- Open the Event Webhook settings in SendGrid and note what is there.
- If another tool depends on it, use a separate SendGrid account or a subuser for mailers.io, and add that key as its own server.
- After connecting, look at the settings again to confirm that the address is the new one.
What happens next is the normal suppression logic. A hard bounce or a spam report puts the address on the 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 5: pace the server under your SendGrid allowance
Your SendGrid plan has its own sending allowance. Put a speed limit on the server that sits a little under it, so mailers.io paces itself and does not run into refusals. The limit can be set per minute, per hour or per day.
If SendGrid answers with a rate-limit error anyway, mailers.io treats the server as busy. It steps aside for the time SendGrid asked for, and the message goes to another server or waits. This works best when you have more than one server. 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 6: send a test
Send a message to an address you own and open the log. You should see one attempt on the SendGrid server, and a delivery event once SendGrid reports it. If the attempt failed, the error class tells you where to look: an authentication error points at the key, a refusal about the sender points at the domain authentication, and a rate limit points at your SendGrid allowance or at a speed limit that is set too high.
A new account has no sending history. Do not send a whole list on the first day. Use the warm-up schedule to ramp volume over days, and keep an eye on bounce and spam report rates while you do.
What mailers.io does not do for SendGrid
It does not raise your SendGrid limits or fix a restriction on the account. It does not use SendGrid’s templates, lists or marketing campaigns: it builds the message itself and sends it through the API. It does not manage subusers. And it does not share an IP pool, since your mail goes out through your own account.
If SendGrid is one of several servers, a single provider is a single point of failure explains why a second one is worth connecting.
Questions and answers
Which SendGrid regions can I choose?
Global and EU. Pick the one your SendGrid account was created in.
Will connecting break my existing webhook?
It replaces it. SendGrid allows one Event Webhook per account, so check before you connect an account that already uses one, or use a separate account or subuser for mailers.io.
Can I connect a SendGrid subuser?
Yes, as its own server with the subuser's own API key. mailers.io does not manage subusers for you.
Can I use SendGrid for sequences?
Yes. Read SendGrid's acceptable use policy first, because cold outreach is your responsibility under their terms.
Written by the mailers.io team. Published .