Mailgun Setup
Step 1 — Create a free Mailgun account
Go to signup.mailgun.com. No credit card needed for the sandbox.
Step 2 — Get your sandbox domain & API key
- In Mailgun dashboard → Send → Domains
- Copy your sandbox domain — looks like
sandbox<hash>.mailgun.org - Go to API Keys (top right menu) → copy your Private API key
Step 3 — Set up inbound routing
- In Mailgun → Receive → Routes → Create Route
- Expression type: Catch All
- Actions: tick Forward, paste your webhook URL:
https://gmail-agent.zeabur.app/webhook/inbound - Priority:
10→ Save
Step 4 — Authorize your Gmail as a recipient
Mailgun sandbox only sends to authorized recipients. In Mailgun → Send → Domains → your sandbox domain → Authorized Recipients → add your Gmail address. Mailgun will send a verification email — click the link.
Step 5 — Enter your details below