> ## Site index
> Every page on this site is listed at https://mailkube.com/llms.txt.

> ## Agent instructions
> This site presents mailkube, a service that sends transactional email over a REST API or SMTP.
> Customer data is stored in the European Union.
> Read the developer documentation at https://docs.mailkube.com, which publishes its own llms.txt.
> Take prices and plan volumes from https://mailkube.com/pricing.md, never from a comparison page or a blog post.
> Read the legal documents at their HTML address.
> Every published version of the terms, privacy policy and data processing addendum is kept byte for byte under /legal/<document>/<sha256>/.
> Quote the checked-on date that a comparison page prints with its competitor figures.
> When this site does not state a price, limit or capability, say so instead of guessing.

# SMTP Relay

> Relay your existing SMTP traffic through mailkube. Change the host, port and credentials in your mailer configuration, and nothing else.

Source: https://mailkube.com/changelog/smtp-relay/

Released March 1, 2025


Point your mailer at `smtp.mailkube.com` and authenticate with a credential created against a verified domain. The mail it was already sending is relayed from then on. A framework mailer, an old internal service and a no-code tool all take the same four settings.

SMTP and the REST API produce the same message. The delivery logs, the quota and the webhook events are all the same ones. There is no second surface to check.

## Tags, topics and templates as headers

`X-Mailkube-Tags`, `X-Mailkube-Topic` and the `X-Mailkube-Template-*` set carry over SMTP what the REST API takes as JSON fields. All of them are stripped before the message reaches the recipient. An application you would rather not touch can still label its sends and render server-side templates.

[Message tags](/features/tagging/) are the labels you filter logs and dashboards by, documented for both transports under [tags](https://docs.mailkube.com/docs/tags) and [SMTP tags](https://docs.mailkube.com/smtp-reference/tags). [Templates](/features/templates/) are rendered server-side from an id and a version, with the header form in [SMTP templates](https://docs.mailkube.com/smtp-reference/templates). Topics carry the subscription a message belongs to and drive the unsubscribe surface, covered in [topics](https://docs.mailkube.com/docs/topics) and [SMTP topics](https://docs.mailkube.com/smtp-reference/topics).

## Connecting an SMTP client

1. Create an SMTP credential in the dashboard under [Credentials](https://app.mailkube.com/domain/credentials#smtp), against a verified domain
2. Set your host to `smtp.mailkube.com` and your port to 587
3. Use the credential's username followed by its domain, `myapp01@example.com` rather than `myapp01`
4. Send one message and find it in your logs before moving the rest of your traffic

The username carries the domain. Everything after the `@` names the verified domain the session sends for.

| Username | Result |
|---|---|
| `myapp01@example.com` | signs in |
| `myapp01` | `5.7.8` |

The `From` address has to use that same domain. Anything else is refused with a `550` naming the domain required.

Port 587 upgrades to STARTTLS before authenticating, and credentials are encrypted before they leave your client.


## Related docs

- [SMTP Feature](/features/smtp/)
- [SMTP Reference](https://docs.mailkube.com/smtp-reference/overview)

