📬 Mailgun Code Agent

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

  1. In Mailgun dashboard → SendDomains
  2. Copy your sandbox domain — looks like sandbox<hash>.mailgun.org
  3. Go to API Keys (top right menu) → copy your Private API key

Step 3 — Set up inbound routing

  1. In Mailgun → ReceiveRoutesCreate Route
  2. Expression type: Catch All
  3. Actions: tick Forward, paste your webhook URL:
    https://gmail-agent.zeabur.app/webhook/inbound
  4. Priority: 10 → Save

Step 4 — Authorize your Gmail as a recipient

Mailgun sandbox only sends to authorized recipients. In Mailgun → SendDomains → your sandbox domain → Authorized Recipients → add your Gmail address. Mailgun will send a verification email — click the link.

Step 5 — Enter your details below

Pick EU if you signed up at eu.mailgun.com