# SMTP relay

> Send from any app or tool that speaks SMTP, with the same domains, templates and events.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://mail.docs.sypnia.com/sending/smtp-relay/

For agents: Mail SMTP relay: smtp.mail.sypnia.com (or engine host), 587 STARTTLS or 465 TLS, user sypnia, password = key with smtp scope (mail keys create --scope smtp); same checks as API (verified from, suppression, limits, events); X-Sypnia-Tags header, X-Sypnia-Template + X-Sypnia-Data (JSON); for WordPress, CMS, legacy apps, devices.

| Setting  | Value                                                                    |
| -------- | ------------------------------------------------------------------------ |
| Host     | `smtp.mail.sypnia.com` **\[Cloud]**, or your engine's host **\[Engine]** |
| Port     | `587` with STARTTLS, or `465` with TLS                                   |
| User     | `sypnia`                                                                 |
| Password | a key with the `smtp` scope: `mail keys create wordpress --scope smtp`   |

Mail sent through the relay goes through the same checks as the API: verified `from` domain, suppression list, limits and events. The `X-Sypnia-Tags` header (`kind=newsletter-signup; site=blog`) adds tags, and `X-Sypnia-Template` with `X-Sypnia-Data` (JSON) sends a template.

The relay is useful for WordPress, a CMS, an old app or a device that can only send by SMTP. For new code, the API gives better errors.
