Web Form to CRM in Two Seconds: Wiring Wix, n8n, Mailgun and Odoo 18 (and a Bug That Hid for Seven Weeks)
I am a one-person consultancy. One of my clients is a sign shop whose quotes, leads and invoices live in a single self-hosted Odoo 18 instance on a small VPS, which is the source of truth for both my company and theirs as two companies in one database. The automation glue is n8n (2.x, Postgres 17, pinned images) in Docker on the homelab AI box .62, reachable from the internet only through a Cloudflare Tunnel on a dedicated webhooks hostname. Outgoing mail goes through Mailgun; pushes land on my phone through ntfy.
This post is not a tutorial on any one product. It is the plumbing between them, and it is three bugs that each took a real lead or a real week to surface: a DMARC policy that bounced the very first email about a new lead, an inbound-mail route that would have silently eaten every reply, and an n8n trap I want to tattoo somewhere, where a scheduled job failed every morning for seven weeks while the identical workflow passed every time I ran it by hand.
Everything here is exported into an infra-as-code repo, in the spirit of my earlier write-up on backing up a homelab as code, so none of this is a story about remembering how it was set up. It is the story of what the plumbing does, and the three places it quietly broke.