Fourat (@fourat) profile picture

Building @mailkube (EU-hosted email API) · Created Jasmin, the open-source SMS gateway · 20+ years architecting messaging infrastructure.

/dev/null
Joined April 2008
A send() inside a request handler costs a TLS handshake, an AUTH and a delivery, on your user's latency budget. mailkube's relay container answers 250 from a local queue in milliseconds and retries upstream 4xx in the background. github.com/mailkube/mailkube…
8
I sent a first email from a domain mailkube had never seen, without opening the DNS panel once. Cloudflare Auto Setup writes the records. Then it's one curl.
1
28
Create an API key for the domain, then send. A 200 means queued. id is what webhook events carry. message_id is the Message-ID on the recipient's copy.
1
8
before blaming your email provider, send one test to mail-tester.com. you get a score out of 10, SPF/DKIM/DMARC results, blocklist checks and what SpamAssassin thinks of your content. a few free tests a day. 30 seconds, catches most setup mistakes.
1
76
Moving a Node app from SendGrid to mailkube is a small diff. One import, one constructor, and a send call that takes the same fields. The webhook handler is where the design difference shows.
1
19
Webhooks. SendGrid's helper wants a PEM key converted to ECDSA and two headers read by hand. mailkube's verify() takes the raw bytes, the headers and the secret, rejects stale timestamps, and returns a typed event you can switch on.
1
6
The rest of the move: verify your domain in mailkube. Its SPF and bounce MX go on a dedicated mkube-send subdomain, so the SPF record on your main domain stays as it is. Swap the env var, then point a webhook endpoint at the new handler. docs.mailkube.com/sdks/node
5
Start DMARC at p=none and read the reports for two weeks. Move to p=quarantine, then p=reject, once nothing legitimate fails. Jump straight to reject and you find the forgotten CRM by having its mail rejected in production.
1
33
mailkube's SMTP limits are per source IP, not per credential: 20 concurrent connections, 600 new ones a minute. Behind NAT or a Kubernetes cluster, every pod draws on the same egress IP's budget. Over it, the connection closes before the greeting, with no reply.
19
mailkube emails send --dry-run prints the exact request it would make and sends nothing. There's no sandbox and no test key, so rehearse new sends this way. github.com/mailkube/mailkube…
13
A webhook receiver gets 10 seconds. mailkube reads only your status code, ignores the body, doesn't follow redirects, and retries anything non-2xx with backoff. So acknowledge first and queue the work. Inline database writes are the usual cause of a retry storm.
2
21
email.bounced fires only when the address is dead. A deferral, or a message that ran out of retries, arrives as email.delivery_delayed, and a later attempt may still deliver. Suppress on the first one, not the second.
1
6
To test before anything is deployed, the CLI posts a synthetic event straight at your handler: mailkube webhooks simulate --event email.bounced --url http://localhost:3000/webhooks The receiver rules in full: docs.mailkube.com/docs/webho…
2