Docs · Guides

Sending and deliverability

How campaign email leaves MagpieCRM, what happens when it bounces, and what keeps your domain in good standing. Cloud and self-hosted copies differ in where mail is sent from, so each has its own section.

Checked against magpiecrm@0.9.136 · Updated

On Magpie Cloud: sending domains

On Magpie Cloud, email goes out through our sending servers, signed for your own domain. There's no provider account to set up. You add the domains you send from:

  1. Open Settings, then Sending, and add your domain.
  2. Copy the records shown into your DNS: the DKIM records, an ownership TXT record and, ideally, a DMARC record.
  3. Wait for the domain to show as ready. Mail only goes out from domains that are ready.

If your domain already has a DMARC record, keep yours. Bounces and complaints are recorded for you, and every campaign carries an unsubscribe link. See Start on Magpie Cloud.

Daily sending limits on Magpie Cloud

Gmail and Outlook trust a new sender that starts small and grows, and file one that sends everything at once as spam. So on Magpie Cloud each workspace has a daily sending limit that starts low and steps up each week its email is received well. Email is counted in two kinds, each with its own limit:

  • Cold email: to contacts you found in Prospect Search who haven't signed up or replied since.
  • Opt-in email: to people who signed up through a form, and contacts you imported.
WeekCold email, a dayOpt-in email, a day
130200
260500
31001,000
41502,500
52005,000
6 onwards300No daily limit: your plan's allowance

Why there are limits

  • Mailbox providers judge new senders by behaviour. Gmail and Outlook decide where email lands by how people react to the sender: opened and answered goes to the inbox; ignored, deleted or marked as spam goes to the spam folder. A sender with no history that sends thousands at once looks like a spammer, whatever it sends. Starting small and growing is how trust is earned.
  • Sending servers are shared. On Magpie Cloud every workspace sends through the same servers and IP addresses, so their standing is shared too. One workspace sending too much too soon would push other customers' email towards spam, and theirs would do the same to yours. The limits are what let us keep everyone's email landing.
  • The limit follows results, not a timer. A sender whose email is opened and not bounced or complained about reaches full volume in a few weeks. A limit only stays low while the results say the email isn't wanted.

Cold email is limited more because people who haven't asked to hear from you open less and complain more, and mailbox providers are strictest with it. Starting at 30 a day lets opens and replies build your domain's standing before the volume does.

What moves your limit up fastest:

  • Send only to verified addresses, so little bounces.
  • Write to people likely to care, in short, plain emails, and keep the unsubscribe link easy to find.
  • Send steadily through the week, not all in one day: a week needs at least 30 emails sent to be judged.

How the limit moves, and what happens at it

  • A limit counts the last 24 hours, and is looked at once a week. After a week received well it steps up. If the week's standing is At risk, or too little was sent to judge, it stays where it is. If it's Poor, it steps down.
  • A campaign over the day's limit isn't refused. It sends that day's share and carries on by itself each following day until everyone has it; its page shows how many have gone and how many are left.
  • Sequences wait for room in the limit, then carry on.
  • Settings, then Sending shows both limits, how much of each is used, and when each is next looked at.

A self-hosted copy has no daily limits: its sending is between you and your provider.

How your email is received

On Magpie Cloud, Settings, then Sending also shows a reputation score out of 100% for each sending domain, from the last 7 days, once at least 30 emails have gone out. 80% and over is Good, 50% to 79% is At risk, and under 50% is Poor. The score is set by your weakest signal, because one bad signal is what a mailbox provider acts on; good numbers elsewhere don't make up for it. Each kind of email, cold and opt-in, has its own score beside its daily limit. The signals, and where each one turns the status:

  • Hard bounces: at risk from 2% of emails sent, poor from 5%.
  • Spam complaints: at risk from 0.1%, poor from 0.3%.
  • Unsubscribes: at risk from 2%.
  • Opens, for email sent with open tracking on, counting people and not security scanners. Under 10% opening, overall or among recipients at Google or at Microsoft, usually means the email is landing in spam there, and puts the domain at risk.

Each problem is shown with what to do about it. This is judged from how your email is received, not by reading it. It can't see a recipient's spam folder directly, so treat it as an early warning.

Inbox warmup on Magpie Cloud

A new sender that suddenly emails hundreds of strangers looks like a spammer to Gmail and Outlook. Inbox warmup gives one of your sender addresses a steady stream of ordinary email, exchanged with a pool of real inboxes, which open it and reply to some of it. It's sent through our mail server, the same way as your campaigns, starting with a few a day and rising to about 20 a day over a month. Warmup mail that arrives in your inbox is filed in a folder of its own.

The sender needs:

  • A sending domain that's ready, under Settings, then Sending (see sending domains).
  • Its own inbox connected under Settings, then Mailboxes, over IMAP. Microsoft 365 inboxes can't be connected yet, because Microsoft 365 doesn't allow password logins.
  • SPF and DMARC records on its domain: the SPF record your mail provider gives you, and the DMARC record shown under Settings, then Sending.

Then open Settings, then Warmup, and choose Start warmup beside the sender. Keep warmup running alongside your campaigns. It helps, but it can't promise your email reaches the inbox: what you send, and who to, matters most.

Once a month, the Warmup page can run a sender check. It sends one short, plain email from your warming sender, with no links, images or tracking, to about 20 test inboxes at Gmail, Outlook, Yahoo and other providers, through our mail server like a campaign. An email like that should reach the inbox, so where it lands shows how the sender stands, whatever your campaigns say. If the test inboxes never report back, there is no result and it doesn't count as that month's check: run it again.

Inbox warmup is an add-on for one sender, at £5$7 a month, and counts toward your plan's minimum. Add it on your plan page; see Start on Magpie Cloud.

Self-hosted: choose a provider

A self-hosted copy sends through your own provider. Open Settings, then Sending, pick one of the nine and enter its credentials:

  • Amazon SES: region, access key and secret. Add a configuration set if you want bounce events.
  • Postmark: server token and message stream. Use a broadcast stream for marketing.
  • Resend, SendGrid, Brevo and Mailchimp Transactional (formerly Mandrill): an API key.
  • Mailgun: API key, sending domain and region (US or EU, matching where the domain was created).
  • Cloudflare: account ID, API token and, for bounce collection, a zone ID.
  • Generic SMTP: host, port, username and password. It needs outbound SMTP ports, which many hosts block; the others all send over HTTPS.

On the same page, set the Default sender, used when a message doesn't name its own, and use Send a test email. Add every address you send from under Settings, then Sender addresses. Provider settings can also come from environment variables; see Environment variables.

No provider, no email

Until a provider is set up with all its required fields, email is written to the server log, not sent.

Bounces and complaints

Set WEBHOOK_SECRET first: until it's set, the webhooks refuse every request. Then point your provider's bounce and spam complaint events at:

Webhook address
https://crm.example.com/api/webhooks/email/<provider>?s=<WEBHOOK_SECRET>

# or send the secret as a header instead of ?s=
Authorization: Bearer <WEBHOOK_SECRET>
  • Resend, Postmark, SendGrid, Mailgun, Brevo and Mailchimp Transactional: add both the bounce and the spam complaint events. Use mailchimp as the provider in the address for Mailchimp Transactional.
  • Amazon SES: have your configuration set publish Bounce and Complaint events to an SNS topic with an HTTPS subscription to /api/webhooks/email/ses?s=…. The app confirms the subscription itself.
  • Cloudflare: bounces are collected by polling, so there's no webhook. The API token needs Analytics: Read, and the zone ID must be set.
  • Generic SMTP: SMTP can't report bounces back. The repository includes a Cloudflare Email Worker in cloudflare-worker/ that reads bounce messages and forwards them to /api/webhooks/bounce. Give it BOUNCE_WEBHOOK_URL and the same WEBHOOK_SECRET. Or use a provider with webhooks.

What each event does:

  • A hard bounce (the address doesn't exist, including a "no such user" refusal at send time) marks the contact bounced. A spam complaint marks them unsubscribed. Either way they're left out of every campaign and welcome email, and one-off emails to them are refused.
  • A soft bounce (a full mailbox, a busy server) only counts against that campaign. The next one tries again.

These are also remembered as a keyed hash of the address, so a contact who's deleted and imported again comes back bounced or unsubscribed. Re-subscribing them, or them signing up again, lifts it.

Unsubscribes

Campaign emails carry a personal unsubscribe link, added at the bottom unless your design already includes {{unsubscribe}}. They also carry one-click List-Unsubscribe headers, which Gmail and Yahoo require of bulk senders. The unsubscribe page asks people to confirm, and links back to your website if PUBLIC_SITE_URL is set.

The link is on by default. A self-hosted copy can switch it off per campaign with Include Unsubscribe Link; on Magpie Cloud it's always on.

Open and click tracking

Links are rewritten so clicks are counted, and a tracking pixel counts opens when the campaign has Track opens on (the default; check whether you need consent in the UK and EU). MagpieCRM turns off the provider's own tracking so links aren't wrapped twice.

Business mail is often scanned on arrival, and scanners follow every link. A click or open is treated as automated when it says it's a scanner, comes within seconds of sending, comes just after the email's hidden link (which no person can see) was followed, or (for clicks) arrives in a burst across several links. Once that hidden link has been followed, three or more clicks on one link are taken as the scanner checking it again. The request's user agent isn't stored. Apple Mail loads images as mail arrives, so treat open rates as a guide.

Unconfirmed addresses go out in a first batch

Some prospected addresses can't be confirmed by the company's mail server, at catch-all domains for example. When a campaign includes them, confirmed addresses go out as usual along with a first batch of up to 50 unconfirmed ones. The rest are held for at least an hour while bounces come in. If more than 2% of the first batch hard-bounce, the rest stay held; otherwise they're sent. Held addresses can still be sent with Send anyway.

SPF, DKIM and DMARC when self-hosting

A self-hosted copy has no DNS tooling of its own. Authenticate your sending domain at your provider, following its instructions for SPF and DKIM, and add a DMARC record, before you send a campaign. Each provider authenticates your domain separately, so switching provider means doing it again. Without it, your mail will land in spam.

Something wrong or missing? Email pele@magpiecrm.com or open an issue.