Hi all,
I maintain SeyLock (GitHub - Arkhanhel/seylock: Reach your own servers from networks that block them. Signed lists of ways in, paths that race at connect time, a local reverse proxy and a C ABI for any app. Rust, MPL-2.0. · GitHub), an MPL-2.0 Rust library that helps an app reach its own servers when they are blocked. Before building anything for Delta Chat, I would like to ask whether it would be useful.
This is not a request for proxy support: that exists (Socks4/5 and HTTP proxy support, Add proxy settings to mobile apps). It is about the step after it. Two recent threads made me write:
- In “Chinese local relays?” (Chinese local relays?), a user reports that chatmail relays are blocked by the GFW.
- In the thread about chat.deltachatkg.xyz (Attn chat.deltachatkg.xyz sysop [is blocking SMTP/IMAP ports]), providers block the SMTP and IMAP ports.
Expected behavior
When a user’s network blocks their relay (by address, by name or by port), Delta Chat keeps reaching it without the user finding and pasting a proxy:
- Signed paths. The relay operator publishes a signed list of ways to reach the relay: other addresses, other names, names behind a CDN, TLS through volunteer proxies, Tor.
- The app tries them in parallel at the connection stage and uses the first that connects.
- It remembers per network which one worked, so the next connection on a blocked network is fast.
- A newer signed list can arrive over any channel, and an older one is refused.
- Shared links still work. Proxy links that users already share (socks5://, http, ss://) become one more path in the same race.
- No single copy reveals everything. Different users get different parts of the list, so a censor cannot block every path from one copy of the app.
Actual behavior
The app connects directly unless the user has configured a proxy. On a blocked network the relay is unreachable until the user finds a working proxy, often a QR code shared in a chat, and adds it by hand. That works for people who manage the step. Many never do, and every shared proxy is visible to the censor too.
What exists, and what I would build
- Exists. SeyLock 0.2.0 does point 1 for HTTP: it is on crates.io, with Swift and Android packages and a C ABI. In our lab (real TLS, iptables, tc netem; RACE_LAB.md), the first request takes 0.8 s instead of 12.3 s when the direct path is silently dropped.
- Does not exist yet. A stream mode for IMAP and SMTP, and points 2 and 3. I would build those.
I am applying to the Open Technology Fund to fund this work. If you think it is worth trying, I would do the first pilot as a branch of chatmail/core for you to evaluate, with no commitment on your side.
My questions:
- Would this be useful, or does it overlap with something you already plan?
- What would rule it out: binary size, dependencies, how relays are configured today?
- Who in the core team would be the right person to talk to?
A “no” now is just as helpful as a “yes”. Thank you.
Yurii Arkhanhelskyi