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

ALT Bar chart: what senders changed for Gmail and Yahoo's 2024 rules, as a share of senders who made changes, several answers allowed. Updated email authentication 79%. Started monitoring spam complaint rate 37%. Increased list hygiene 35.8%. Added one-click unsubscribe (RFC 8058) 33.1%. Started using Google Postmaster Tools 19.2%. Adjusted sending frequency 18.6%. Changed the opt-in process 12.5%. Source: Sinch Mailgun, State of email deliverability 2025, chapter 2, global survey of 1,100 senders, July 2024.

ALT Diagram: a relay in front of your apps. Inside your cluster, an app, a worker and a legacy SMTP-only app send plain SMTP to the smtp-relay container. Inside it, smtpd on port 25 answers 250 in milliseconds and puts the message in a durable spool queue; a client with TLS and AUTH sends it to smtp.mailkube.com on port 587 with STARTTLS over one authenticated, reused connection. A dashed arrow from the client back to the spool reads: 4xx, defer, back off, retry. Footer: ghcr.io/mailkube/smtp-relay, Docker Compose, Kubernetes, OpenShift.

ALT Records Auto Setup writes on Cloudflare for notify.example.com, domain status Onboarding. TXT kube1._domainkey.notify: DKIM public key, mailkube keeps the private half. TXT _dmarc.notify: DMARC at p=none, failures reported, nothing rejected. MX mkube-send.notify: return path, bounces come back here. TXT mkube-send.notify: SPF, checked on the return path. Footer: your apex SPF record is not touched; the authorization adds records and removes none.

ALT Terminal running: mailkube emails send --dry-run --from "Acme <[email protected]>" --to [email protected] --subject "Hello from the CLI" --text "It works." The output is JSON: method POST, url https://api.mailkube.com/mta/v1/emails, a body with the from, to, subject and text fields, and dryRun: true.

ALT A Node.js AWS Lambda handler using @mailkube/mailkube-node. The client is created once at module scope. The handler calls client.emails.send with from [email protected], a subject, HTML and idempotencyKey set to event.requestId, and returns 202 with the email id. In the catch block, a RateLimitError returns statusCode 429 with a retry-after header taken from error.retryAfter, falling back to 60, with the comment: don't sleep here, you pay for the wait.


