{"id":50990135,"url":"https://github.com/stalwartlabs/proxy","last_synced_at":"2026-06-20T01:30:21.437Z","repository":{"id":365019837,"uuid":"1256056135","full_name":"stalwartlabs/proxy","owner":"stalwartlabs","description":"Multi-protocol e-mail migration proxy","archived":false,"fork":false,"pushed_at":"2026-06-15T13:14:50.000Z","size":220,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-15T15:12:24.050Z","etag":null,"topics":["email","imap","jmap","proxy","smtp"],"latest_commit_sha":null,"homepage":"https://stalw.art/docs/migration/proxy","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stalwartlabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSES/AGPL-3.0-only.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"open_collective":"stalwart","github":"stalwartlabs","ko_fi":null,"patreon":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2026-06-01T12:23:17.000Z","updated_at":"2026-06-15T13:15:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/stalwartlabs/proxy","commit_stats":null,"previous_names":["stalwartlabs/proxy"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/stalwartlabs/proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stalwartlabs%2Fproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stalwartlabs%2Fproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stalwartlabs%2Fproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stalwartlabs%2Fproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stalwartlabs","download_url":"https://codeload.github.com/stalwartlabs/proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stalwartlabs%2Fproxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34514282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["email","imap","jmap","proxy","smtp"],"created_at":"2026-06-20T01:30:20.670Z","updated_at":"2026-06-20T01:30:21.430Z","avatar_url":"https://github.com/stalwartlabs.png","language":"Rust","funding_links":["https://opencollective.com/stalwart","https://github.com/sponsors/stalwartlabs"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://stalw.art\"\u003e\n    \u003cimg src=\"./img/logo-red.svg\" height=\"150\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003e\n  Multi-protocol e-mail migration proxy for Stalwart\n\u003c/h3\u003e\n\n\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/stalwartlabs/proxy/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/stalwartlabs/proxy/ci.yml?style=flat-square\" alt=\"continuous integration\"\u003e\u003c/a\u003e\n  \u0026nbsp;\n  \u003ca href=\"https://www.gnu.org/licenses/agpl-3.0\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-AGPL_v3-blue.svg?label=license\u0026style=flat-square\" alt=\"License: AGPL v3\"\u003e\u003c/a\u003e\n  \u0026nbsp;\n  \u003ca href=\"https://stalw.art/docs/install/get-started\"\u003e\u003cimg src=\"https://img.shields.io/badge/read_the-docs-red?style=flat-square\" alt=\"Documentation\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://mastodon.social/@stalwartlabs\"\u003e\u003cimg src=\"https://img.shields.io/mastodon/follow/109929667531941122?style=flat-square\u0026logo=mastodon\u0026color=%236364ff\u0026label=Follow%20on%20Mastodon\" alt=\"Mastodon\"\u003e\u003c/a\u003e\n  \u0026nbsp;\n  \u003ca href=\"https://twitter.com/stalwartlabs\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/stalwartlabs?style=flat-square\u0026logo=x\u0026label=Follow%20on%20Twitter\" alt=\"Twitter\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://discord.com/servers/stalwart-923615863037390889\"\u003e\u003cimg src=\"https://img.shields.io/discord/923615863037390889?label=Join%20Discord\u0026logo=discord\u0026style=flat-square\" alt=\"Discord\"\u003e\u003c/a\u003e\n  \u0026nbsp;\n  \u003ca href=\"https://www.reddit.com/r/stalwartlabs/\"\u003e\u003cimg src=\"https://img.shields.io/reddit/subreddit-subscribers/stalwartlabs?label=Join%20%2Fr%2Fstalwartlabs\u0026logo=reddit\u0026style=flat-square\" alt=\"Reddit\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Features\n\nThe migration proxy sits in front of one or more mail backends and decides, on a per-account basis, which backend a given connection belongs to. It terminates IMAP, POP3, ManageSieve, SMTP submission, SMTP/LMTP and HTTP (JMAP) sessions, identifies the account behind each connection from the credentials the client already presents, looks up the destination that account is assigned to, replays the authentication to that backend, and bridges the session. Because the routing decision is made from the existing credentials, no client reconfiguration is required: users keep the same server name, ports and passwords while the proxy routes them to the correct system.\n\nIt is built for three scenarios: migrating from legacy servers (Dovecot, Cyrus and other IMAP/POP3/SMTP servers) onto Stalwart one mailbox at a time, migrating between Stalwart versions by running an old and a new deployment side by side, and acting as a cache-locality router in front of a Stalwart cluster so each account is consistently pinned to the same node.\n\n- **Multi-protocol.** Proxies IMAP, POP3, ManageSieve, SMTP submission, SMTP/LMTP pass-through and HTTP/JMAP, including JMAP-over-WebSocket.\n- **Per-account routing.** Resolves each account to a backend through a mapping store backed by a flat file, Redis or a SQL database (PostgreSQL, MySQL or SQLite), with an in-memory cache and a configurable default destination for unmapped accounts.\n- **Credential-aware.** Extracts the routing identifier from SASL `PLAIN`, `OAUTHBEARER` and `XOAUTH2` exchanges, from HTTP Basic and Bearer authentication, and from JWT and Stalwart access-token claims, then replays authentication to the backend without ever persisting passwords.\n- **Backend-friendly forwarding.** Conveys the real client identity using the PROXY protocol for modern backends, or the `XCLIENT` and IMAP `ID` extensions for Dovecot and Postfix, with `Forwarded` and `X-Forwarded-For` headers for HTTP.\n- **Flexible TLS.** Terminates inbound TLS with SNI-based certificate selection, and reaches backends over implicit TLS, STARTTLS or plaintext, with platform, pinned-certificate or mutual-TLS verification on the backend leg.\n- **Resilient.** Per-destination health gating with a circuit breaker, connection retries, idle timeouts and graceful draining on shutdown.\n- **Operable at runtime.** An authenticated HTTP management API exposes statistics, mapping management, cache invalidation, connection control and configuration reload without a restart.\n\n## Installing\n\nThe proxy is distributed as a single self-contained binary and as a multi-architecture container image (`amd64`, `arm64`, `armv7` and `armv6`), in both glibc and Alpine/musl variants.\n\nThe container image is published to the GitHub Container Registry and Docker Hub. Mount a configuration directory at `/etc/proxy` and run:\n\n```bash\ndocker run -d --name proxy \\\n  -v /srv/proxy:/etc/proxy \\\n  -p 993:993 -p 143:143 -p 995:995 \\\n  -p 587:587 -p 465:465 -p 4190:4190 -p 443:443 \\\n  ghcr.io/stalwartlabs/proxy:latest\n```\n\nTo install directly on a host, the install script provisions the binary, a service account, a service unit and sample configuration files:\n\n```bash\ncurl --proto '=https' --tlsv1.2 -sSf \\\n  https://raw.githubusercontent.com/stalwartlabs/proxy/main/install.sh | sudo sh\n```\n\nThe service is installed but not started, because the sample configuration must first be edited for the local destinations, listeners and TLS certificates. Full instructions are in the [documentation](https://stalw.art/docs/migration/proxy).\n\n## Documentation\n\nAll documentation is available at [stalw.art/docs/migration/proxy](https://stalw.art/docs/migration/proxy).\n\n## Support\n\nIf you are having problems running Stalwart, found a bug, or just have a question, please head to the [Stalwart Support Portal](https://support.stalw.art) at [support.stalw.art](https://support.stalw.art). \nAdditionally, you may purchase an [Enterprise License](https://stalw.art/enterprise) to obtain priority support from Stalwart Labs LLC, including response-time commitments and a private Priority Support area on the portal.\n\n## License\n\nThis project is dual-licensed under the **GNU Affero General Public License v3.0** (AGPL-3.0; as published by the Free Software Foundation) and the **Stalwart Enterprise License v2 (SELv2)**:\n\n- The [GNU Affero General Public License v3.0](./LICENSES/AGPL-3.0-only.txt) is a free software license that ensures your freedom to use, modify, and distribute the software, with the condition that any modified versions of the software must also be distributed under the same license. \n- The [Stalwart Enterprise License v2 (SELv2)](./LICENSES/LicenseRef-SEL.txt) is a proprietary license designed for commercial use. It offers additional features and greater flexibility for businesses that do not wish to comply with the AGPL-3.0 license requirements. \n\nEach file in this project contains a license notice at the top, indicating the applicable license(s). The license notice follows the [REUSE guidelines](https://reuse.software/) to ensure clarity and consistency. The full text of each license is available in the [LICENSES](./LICENSES/) directory.\n\n## Copyright\n\nCopyright (C) 2020, Stalwart Labs LLC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstalwartlabs%2Fproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstalwartlabs%2Fproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstalwartlabs%2Fproxy/lists"}