PolpoMail
Use cases

Post important emails to Slack, Microsoft Teams or Discord

Forward alert, order or VIP emails to a team chat channel: a webhook sends the email to a small function or automation that posts the message.

Why automate it

Some emails need the whole team's attention right away: a server alert, a large order, a message from a key client. A filtered webhook picks out just those emails and gets them into the channel where the team already works.

How it works

Set it up in three steps

  1. 1

    Pick the emails that matter

    Filter on the sender (for example *@monitoring.example) or the recipient (alerts@*). Everything else stays quietly in the mailbox.

  2. 2

    Translate to the chat format

    Chat apps expect their own JSON format, so point the webhook at a small function, or at n8n, Zapier or Make, which reformats the message.

  3. 3

    Post to the channel

    Send a short line with the sender and subject, and a link back to webmail, to the chat app's incoming webhook URL.

Settings

The webhook to create

In Settings › Developer, after you sign in.

FormatJSON
From matchesempty (any sender)
To or Cc matchesalerts@*
Request headersnone needed
Extra JSONnone needed
  • Only the messages that match your filter reach the channel.
  • The same pattern works for Teams, Discord, Mattermost or Google Chat.
  • No mailbox password stored in a third-party bot.
Example

Node.js: relay to a Slack incoming webhook

Every request includes the webhook's token in X-Polpo-Webhook-Token; check it first. See the payload reference.

export default async function handler(req, res) {
  if (req.headers["x-polpo-webhook-token"] !== process.env.POLPO_TOKEN) return res.status(401).end();
  const m = req.body.message;
  await fetch(process.env.SLACK_WEBHOOK_URL, {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({ text: `:email: *${m.subject}* from ${m.from.address}` }),
  });
  res.status(204).end();
}
FAQ

Common questions

Can I point the webhook directly at a Slack or Teams incoming webhook URL?

Not directly: they expect their own message format, which differs from the webhook payload. A few lines of code, or a no-code tool such as n8n, Zapier or Make, translates it.

Will the channel get flooded?

Only messages that match the webhook's patterns are sent. Start with a narrow filter, such as one sender or one address, and use Send test to check the result before going live.

Is this included in the free plan?

Yes. Webhooks, the REST API and access tokens are included free, with up to 5 webhooks per mailbox and up to 10 mailboxes per domain.

More use cases

Start with one webhook.

Free business email on your own domain, with webhooks and a REST API included.

Create your free workspace