The problem
A static website can own its newsletter form without owning the subscriber database or mail-delivery system. It still needs a server-side boundary: provider credentials cannot live in the browser, and incoming submissions need validation before reaching a mailing list.
ZeroSignup addresses developers and self-hosters who want to keep the form, styling and feedback pages on their own websites while delegating subscriber storage and newsletter delivery to EmailOctopus. Several sites can share the same gateway process.
The solution
An HTML form posts an email address, consent and a Cloudflare Turnstile token to /s/{site-slug}. The gateway validates the submission, checks Turnstile and forwards the address to the list configured for that site. EmailOctopus remains the subscriber system of record.
A successful submission returns an HTTP 303 redirect to the website’s configured success page. An already registered address follows the same success path, avoiding a distinct user-facing membership response. Processed failures redirect to a configured error page with a coarse error category; unknown routes, invalid hosts and some other rejected requests receive direct HTTP errors.
Architecture and operation
One Go binary serves the signup routes and a process-liveness endpoint. It loads and validates a TOML configuration at startup. Each site defines its gateway hosts, accepted website origins, redirect destinations, provider list and credentials, Turnstile settings and request limit.
The HTTP handler coordinates two small interfaces: a Turnstile verifier and a subscription provider. The only provider adapter implemented is EmailOctopus. Outbound calls and the overall request have timeouts, so an unavailable dependency does not leave a request waiting indefinitely.
Validation covers the request method and content type, body size, expected fields, email syntax and explicit consent. Gateway host and Origin or Referer are checked against configuration. If both browser headers are absent, submission can continue, but the Turnstile result must still report an allowed website hostname. These signals complement the challenge check; they are not proof that abuse is impossible.
A per-site, per-IP limiter runs in memory. Forwarded client addresses are accepted only from configured trusted proxy IPs. Logs record the site, outcome category and latency without subscriber addresses, tokens or secrets.
Technical choices
A form-first HTTP contract. Standard URL-encoded forms and fixed redirects keep rendering and feedback on the website. Redirect destinations never come from submitted fields. This version provides no JSON submission API or hosted form builder.
No subscriber database. The gateway keeps no persistent subscriber state, while EmailOctopus stores contacts and sends newsletters. The adapter leaves contact status to the provider’s list settings, including double opt-in. This keeps local operations small but makes acceptance dependent on external services; there is no queue to retain failed submissions.
Configuration-driven sites. Adding another site is a configuration change rather than a code change. Strict startup validation rejects unknown keys and invalid settings. Secrets can come from protected TOML values or environment references. Changes require restarting the process.
Current state and limitations
The project remains in development. Multi-site routing, validation, challenge verification, EmailOctopus forwarding and graceful shutdown are implemented. Tests exercise configuration, dependency failures, duplicates, proxy trust, rate limiting and site separation with simulated outbound services.
The documented deployment uses a localhost listener behind Caddy, with systemd managing the binary. HTTPS termination, proxy trust and configuration-file permissions remain operator responsibilities. The health endpoint checks the process, not Turnstile or EmailOctopus availability.
Live validation against an EmailOctopus test list remains pending, including double opt-in, duplicate submissions and outage behavior. Actual-site mobile and keyboard acceptance also remain documented work. The limiter resets on restart and is not shared across instances. There is no dashboard, second provider, automatic configuration reload or multi-node deployment support. This is self-hosted software, with no public hosted service established here.
Resources
No publicly accessible source repository or documentation link could be confirmed. Integration and deployment documentation exists in the local project repository; it is not linked here as a public resource.