Troubleshooting

Switched provider and it does not work: what to check

Short answer

Most failed switches come down to five things: the SDK still points at the old base URL, the old provider's key is still loaded, the domain is not yet verified on Mailcandor, the code sends a stored template (not supported from SendGrid or Postmark), or the webhook handler still expects the old provider's events. Fix each in turn; the error message says which one you hit.

Last checked 16 November 2026

Mailcandor accepts sends in Resend’s, SendGrid’s and Postmark’s shapes, so the switch is usually a base URL and a key. When it does not work, check these in order.

1. Point the SDK at Mailcandor

Coming from Change Node example
Resend Base URL to https://api.mailcandor.com/v1 RESEND_BASE_URL=https://api.mailcandor.com/v1
SendGrid Base URL to https://api.mailcandor.com sgMail.client.setDefaultRequest('baseUrl', 'https://api.mailcandor.com')
Postmark Host to api.mailcandor.com new postmark.ServerClient(key, { requestHost: 'api.mailcandor.com' })
SMTP Host smtp.mailcandor.com, user mailcandor, password a Mailcandor key See SMTP connection failed

The endpoints are POST /v1/emails (Resend shape), POST /v3/mail/send (SendGrid) and POST /email and /email/batch (Postmark, with the X-Postmark-Server-Token header).

2. Use a Mailcandor key

In every case the key is a Mailcandor API key starting with mc_live_. An old re_, SG. or Postmark server token gives 401 invalid_api_key. Check what is loaded:

curl https://api.mailcandor.com/v1/whoami -H "Authorization: Bearer $KEY"

See 401 invalid API key.

3. Verify your domain on Mailcandor

Being verified at your old provider does not count. Add the domain under Domains, publish its records and press Check DNS now. Until then:

  • 403 domain_not_found: the domain is not added on Mailcandor.
  • 403 domain_not_verified: added but not verified yet.

The old provider’s records can stay while you switch. See 403 errors.

4. Templates are not carried over

  • SendGrid: a template_id is refused: “SendGrid dynamic templates are not supported. Send the rendered html in content, or use a Mailcandor template.”
  • Postmark: TemplateId is refused: “Postmark templates are not supported. Send HtmlBody, or use a Mailcandor template.”

Render the HTML in your app, or create a Mailcandor template and send it with template: { id, variables } on POST /v1/emails.

5. Read errors in the shape you expect

  • SendGrid endpoint: errors look like SendGrid’s: {"errors": [{"message", "field"}]}, with validation errors as 400.
  • Postmark endpoint: each message answers in Postmark’s shape. A refused message comes back with ErrorCode: 300 and the reason in Message, and the HTTP status can still be 200. Check ErrorCode on every result, not only the status code. Authentication errors use Mailcandor’s own 401 shape.
  • Resend shape: Mailcandor’s own error shape, {"error": {"type", "message", "field"}}.

6. Update your webhooks

Events, webhooks and the log are Mailcandor’s own. Add an endpoint under Webhooks and map the events you used:

You used Mailcandor event
delivered email.delivered
bounce / hard bounce email.bounced (check bounce.type)
spam report email.complained
open, click email.opened, email.clicked
inbound parse email.received

Coming from Resend, the event names already match and Svix-style verification works with the secret’s mcws_ prefix swapped for whsec_. From SendGrid or Postmark, rewrite the handler; see Verify webhook signatures and the events reference.

7. Mind the new limits

  • Rate limits are per team: 5, 10 or 50 requests a second by plan.
  • Starter allows 100 emails a day and 3,000 a month.
  • 50 recipients per email, 100 emails per batch, 40 MB of attachments.

A new sending path also deserves a gentle start: follow the warm-up pace for the first days.

If it does not work

  • 404 Not Found. The base URL is wrong: Resend needs /v1 on the end, SendGrid and Postmark do not.
  • Some emails send, some do not. Check per-message results in batches, especially Postmark’s ErrorCode.
  • Suppressions from the old provider. They do not move over. Add them under Suppressions (up to 1,000 at a time) so you do not mail bounced addresses again.

See Switch from Resend, from SendGrid, from Postmark and the API reference.

Questions

Do I need to change my code?

For sending, usually only the base URL and the key. Webhooks are Mailcandor's own events, so the handler needs updating unless you came from Resend.

Do SendGrid dynamic templates or Postmark templates work?

No. Send the rendered HTML instead, or move the template into a Mailcandor template and send it with POST /v1/emails.

Can I keep my old provider's DNS records during the switch?

Yes. Mailcandor's DKIM records have their own names, and its SPF and bounce MX records live on a bounce subdomain, so both can run side by side.

Does my Resend webhook verification code still work?

Yes. Mailcandor also sends svix-id, svix-timestamp and svix-signature. Use your Mailcandor secret with mcws_ replaced by whsec_.

Related

Send with someone on your side.

Unlimited domains on every plan, a person before any block, and 3,000 emails a month free. Tell us what you send and we set you up within one business day.