Productivity & Utilities · Email & Communication
Hyvor Relay
Self-hosted email API with SMTP delivery and operational visibility
Hyvor Relay is an AGPL-3.0 email API and SMTP system for developers and organizations that want to run delivery infrastructure themselves. HYVOR maintains the project, which supports self-hosting at no software charge, offers an enterprise license from €10,000 per year, and lists a cloud plan estimated at €30 per month. The cloud instance was not open for public signups in the documentation.
Key facts
- License
- AGPL-3.0
- Main language
- PHP, Go, SvelteKit, TypeScript, JavaScript
- Maintainer
- HYVOR
- First released
- 2025
- Latest release
- 0.0.43, April 13, 2026
- GitHub stars
- 918, October 2026
- Hosted option
- Cloud estimated at €30/month for 300,000 emails; enterprise from €10,000/year
What Hyvor Relay is
Hyvor Relay is an open-source email API maintained by HYVOR for developers and organizations that want control over outbound mail infrastructure. The repository was created on May 29, 2025, and its page lists 918 stars, 65 forks, 56 open issues, and contributors led by supun-io, Nadil-K, and Nolab0. HYVOR announced Relay publicly on December 1, 2025, alongside Hyvor Post. The project uses AGPL-3.0 licensing, with an enterprise license for organizations that need different terms. HYVOR also uses Relay for Hyvor Post delivery and reported in July 2026 that dozens of organizations self-host it. Relay is aimed at teams willing to operate servers, IP addresses, DNS, authentication, and delivery reputation.
How it works
A typical Relay deployment begins with an instance, an organization, a project, a sending domain, and an API key. Projects separate transactional mail from distributional mail, and each project can contain domains, suppressions, keys, and webhooks. Applications submit messages through the REST API, while Relay workers deliver them over SMTP using configured queues and IP addresses. The system records delivery logs and SMTP conversations, handles bounces, complaints, suppressions, retries, and feedback loops, and sends event webhooks to application endpoints. Operators can use the console to inspect sends and raw message content. Domain verification requires a DNS record, while the integrated DNS server can manage records for the instance and sending setup.
Architecture and recent releases
Relay combines a Symfony API written in PHP, Go services for email workers, webhook workers, the DNS server, and the incoming SMTP server, and a SvelteKit frontend. PostgreSQL stores application data and queues. The hosting model packages the services in a Docker image and supports Docker Compose for a single server or Docker Swarm for multiple servers and higher availability. The hosting documentation calls for public IPv4 addresses, PostgreSQL, a web domain, and DNS delegation. Relay integrates with Prometheus, Grafana, and Alertmanager for monitoring. Its latest tagged release is 0.0.43, published April 13, 2026. That release included organization work, DKIM changes, SMTP fixes, timeout changes, and OIDC updates.
License and pricing
The self-hosted edition is free under AGPL-3.0, with all features included. AGPLv3 permits running, studying, sharing, and modifying the software, while modifications distributed or made accessible over a network must follow its source-sharing requirements. HYVOR offers an enterprise license with the same features, no AGPL-3.0 obligations, enterprise support, and SLA options. The published enterprise price starts at €10,000 per year. HYVOR lists a cloud Standard plan at an estimated €30 per month for 300,000 emails, plus €1 per additional 10,000 emails, but says the price will be finalized at launch. Documentation says the official cloud instance was not open for public signups.
Limitations and how it compares
Relay's main limitation is its operational scope. Teams must secure OIDC, PostgreSQL, public SMTP and DNS services, servers, IP addresses, backups, and network protection, then maintain these components as requirements change. Deliverability also depends on domain and IP reputation, recipient behavior, message content, and downstream providers, so configuration alone cannot guarantee consistent inbox placement. Postal and Mail-in-a-Box are open-source alternatives for self-hosted mail operations, while Amazon SES and Mailgun reduce server administration through managed delivery. Relay is more API-focused than a general mailbox platform and offers deeper control than a hosted provider. Choose it when ownership of infrastructure, delivery data, and IP reputation matters, and when the team can assign time and responsibility for ongoing mail operations.
Main features
- REST email API. Sends HTML and plain-text messages with attachments, custom headers, multiple recipients, and idempotent request handling.
- SMTP delivery. Delivers mail through operator-controlled servers, queues, IP addresses, and incoming SMTP services.
- Delivery processing. Handles bounces, complaints, suppressions, feedback loops, greylisting, retries, and delivery event webhooks.
- DNS automation. Provides an integrated DNS server for instance records, MX, SPF, DKIM, and related SMTP configuration.
- Project isolation. Separates applications into projects with their own domains, API keys, webhooks, and sending type.
- Delivery observability. Retains send logs and SMTP conversations for 30 days and integrates with Prometheus, Grafana, and Alertmanager.
- Horizontal scaling. Supports additional servers and IP addresses through Docker Swarm for larger volumes and higher availability.
Self-hosting Hyvor Relay
Self-hosting uses Docker Compose for a single server or Docker Swarm for multiple servers. Relay requires public IPv4 addresses, PostgreSQL, a web domain, and DNS delegation. PostgreSQL can be self-managed or provided as a managed service. The application runs on the host network so its SMTP, DNS, and API services can access public addresses directly. OIDC credentials are required because Relay has no built-in login system. The documentation describes a single-server deployment for small and medium volumes and multi-server deployment for scale. No minimum CPU or memory specification is published. Back up PostgreSQL and configuration, protect secrets, monitor queues, and test container upgrades.
Strengths
- Relay combines an API, SMTP service, queues, bounce handling, DNS automation, and monitoring.
- The AGPL edition includes the documented feature set without software usage fees.
- Separate transactional and distributional projects help isolate sending behavior and IP reputation.
- Go workers and Docker Swarm support fit deployments that need horizontal growth.
Drawbacks
- Operators must manage public SMTP, DNS, OIDC, PostgreSQL, IP reputation, and network protection.
- AGPL-3.0 obligations may conflict with some proprietary integration policies.
- The cloud price is estimated and public signups were not open in the documentation.
What teams replace with it
Teams usually evaluate Hyvor Relay when they want to move off Mailgun, SendGrid, Amazon SES.
For side-by-side commercial comparisons, browse our alternatives hub.
Open-source alternatives to Hyvor Relay
- Postal
- Mail-in-a-Box
- Mailu
- Haraka
- OpenSMTPD
Frequently asked questions
Is Hyvor Relay free?
Self-hosting the AGPL-3.0 edition is free from software charges and includes all documented features. Operators still pay for servers, PostgreSQL, public IP addresses, networking, backups, and administration. HYVOR also sells an enterprise license starting at €10,000 per year and lists an estimated cloud plan at €30 per month for 300,000 emails.
Can companies use Hyvor Relay commercially?
Yes, commercial use is possible under AGPL-3.0, subject to its copyleft and network source-sharing requirements. Organizations that need different terms can purchase HYVOR's enterprise license, which keeps the same features and removes AGPL-3.0 obligations. Legal review should cover modifications, distribution, hosted access, and internal deployment practices.
What does self-hosting require?
Relay requires servers with public IPv4 addresses, PostgreSQL, a web domain, DNS delegation, and Docker Compose or Docker Swarm. It runs API, SMTP, DNS, webhook, and worker services. Authentication uses OIDC rather than an internal login system. The documentation describes single-server and multi-server deployments but does not publish minimum CPU or memory requirements.
How does Relay compare with Amazon SES?
Amazon SES is a managed delivery service, while Relay is software that the customer operates. SES removes most server, SMTP, DNS, and IP administration, but places delivery infrastructure under AWS. Relay gives operators control over servers, queues, logs, DNS, and IP addresses, while requiring them to manage security, reputation, scaling, and availability.
Does self-hosting improve email privacy?
Self-hosting keeps Relay's application, database, logs, and delivery configuration under the operator's control, subject to its infrastructure provider and retention practices. Messages still pass through recipient networks and downstream mail providers. Security depends on OIDC, firewall rules, secrets, DNS, PostgreSQL protection, patching, backups, and sensible log retention. No compliance certification is listed.
Similar projects to compare
- AgentMailMIT for Python SDK; hosted service proprietaryAgentMail is a hosted API platform for giving AI agents dedicated email inboxes that can send, receive, search, label, and process messages. It targets developers building autonomous workflows, offers MIT-licensed Python client code, and provides Free, Developer, Startup, and Enterprise hosted plans. No self-hosted backend package is published.
- DoubleZeroAGPL-3.0DoubleZero, also called 00, is an Elixir application that adds an API and dashboard to AWS SES. It targets developers who need delivery, bounce, message, and recipient visibility without building monitoring infrastructure. The repository uses AGPL-3.0, and the project describes a self-hosted model plus a pre-orderable self-hosted Pro version.
- SessyO'Saasy License, with MIT exceptions for specified plugin subdirectoriesSessy is an open-source Ruby application that receives Amazon SES events and presents delivery, bounce, complaint, open, and click activity in a dashboard. It targets teams already sending through SES, uses the O'Saasy License, and supports free self-hosting. A hosted edition is in beta and is free during early access, according to the project site.
- TutaGPL-3.0Tuta is an encrypted email service with calendars, contacts, and Drive for privacy-conscious individuals, organizations, and developers building customized clients. Tutao publishes its client code under GPL-3.0, while the hosted account and server platform remain company-operated. A free hosted plan exists alongside paid personal and business subscriptions.
- Twake MailAGPL-3.0Twake Mail is Linagora's open source email client and server built around JMAP and Apache James. It targets organizations that want mobile, tablet, web, and collaborative mailbox access under AGPL-3.0. Linagora offers hosted Twake plans, including a free tier, while the client and server can also be self-hosted.