Skip to content

Connections

Mailgun

Support email in Slack with Mailgun routes. Emails become conversations, replies go back through Mailgun, and permanent failures and complaints become alerts.

On this page

With Mailgun, emails forwarded by a route become Slack conversations, thread replies are sent through Mailgun, and permanent failures and spam complaints become alerts.

Setup

About three minutes in Mailgun. Inbound emails become conversations. In Channlize, Connections → New connection → Mailgun. The setup screen shows the connection URL (the Forward URL) above these steps, with the secret fields and buttons at the step that needs them.

  1. Paste the HTTP webhook signing key into Channlize: Settings → API Security → HTTP webhook signing key. Not an API key: Mailgun signs every route post and webhook with it.
  2. Create a route that forwards here: Send → Receiving → Create route. Expression type: Match Recipient with your support address (e.g. support@mg.your-domain.com), or Catch All. Under Actions, check Forward and paste the URL. Click Create route. The domain needs Mailgun's MX records.

Optional:

  • Failure and complaint alerts: Send → Sending → Webhooks → Add webhook. Pick your domain, choose Permanent Failure and paste the same URL. Repeat for Spam Complaints (optionally Temporary Failure, Delivered, Unsubscribes).
  • Reply by email: Settings → API Security → API Keys. Paste a Mailgun API key, then turn on Reply by email and pick the region and sending domain under Settings.

First event: the screen shows Waiting for the first event… until one arrives. Email an address your route matches. Then click Done to keep the connection. Cancel deletes the draft and its URL.

Signature

Mailgun signs with the hex HMAC-SHA256 of timestamp + token, keyed with the webhook signing key: as form fields on route posts, and as a signature object in webhook JSON. Timestamps older than 12 hours are rejected.

Default mappings

EventAction
inboundConversation
failed, complainedAlert
failed.temporary, delivered, unsubscribedLog

Inbound emails can be up to 5 MB.

Two-way replies

Turn on replies, set a from address and your sending domain. Replies are sent through Mailgun's messages API (US or EU region), threaded with the customer's email.