Unix socket support for HTTP/JMAP listener #2981
shukiv
started this conversation in
Community Discussions
Replies: 1 comment 2 replies
-
|
Sorry, this is not planned. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
When running Stalwart alongside other services on the same host (e.g., CrowdSec, monitoring agents), TCP port conflicts can occur on the HTTP/JMAP listener. In my case, CrowdSec's LAPI defaults to port 8080 — the same port Stalwart's HTTP listener uses — preventing Stalwart from binding.
Switching to another port works but is fragile. Any new service that claims the chosen port breaks JMAP silently.
Proposed Solution
Allow
server.listener.<id>.bindto accept a Unix socket path in addition toIP:port, for example:The reverse proxy (nginx, Caddy, etc.) would then use
proxy_pass http://unix:/run/stalwart/http.sockinstead of a TCP port.Benefits
Context
This would only make sense for listeners accessed locally (HTTP/JMAP behind a reverse proxy). SMTP/IMAP listeners that accept remote connections would continue using TCP.
(Originally filed as issue #2961, closed because feature requests belong in Discussions per the issue template — reposting here.)
Beta Was this translation helpful? Give feedback.
All reactions