PolpoMail
Use cases

Turn support@ emails into tickets automatically

Send every email to support@ to your helpdesk or your own ticket system as JSON the moment it arrives, with sender, subject, body and attachments.

Why automate it

Customers write to support@yourcompany.com, and someone copies each message into the ticket system by hand. A webhook on that address does it for you: each new email becomes a ticket within seconds, and the mailbox stays as the archive.

How it works

Set it up in three steps

  1. 1

    Filter on the address

    Create a webhook with To or Cc matches set to support@*. Mail to other addresses isn't sent.

  2. 2

    Receive the message as JSON

    Your endpoint gets the sender, subject, plain-text and HTML body, and the attachment list, plus a queue field you add as extra JSON.

  3. 3

    Create the ticket

    Store it in your helpdesk or database. The message id lets you fetch attachments or move the email to a Done folder later with the REST API.

Settings

The webhook to create

In Settings › Developer, after you sign in.

FormatJSON
From matchesempty (any sender)
To or Cc matchessupport@*
Request headersnone needed
Extra JSON{"queue": "support", "priority": "normal"}
  • No forwarding rules or shared passwords: the mailbox stays yours.
  • Retries if your helpdesk is briefly down, after 30 seconds and again after 5 minutes.
  • Patterns such as ^(support|help)@ cover several addresses with one webhook.
Example

Python (Flask): create a ticket for each email

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

@app.post("/hooks/support")
def new_ticket():
    if not hmac.compare_digest(request.headers.get("X-Polpo-Webhook-Token", ""), TOKEN):
        abort(401)
    p = request.json
    m = p["message"]
    db.tickets.insert(
        queue=p["queue"],                 # from your extra JSON
        customer=m["from"]["address"],
        subject=m["subject"],
        body=m["text"] or m["html"],
        mail_id=m["id"],                  # for the REST API later
        attachments=[a["filename"] for a in m["attachments"]],
    )
    return "", 204
FAQ

Common questions

Does the email still arrive in the mailbox?

Yes. The webhook is sent after the message is stored, so the mailbox keeps a full copy and your team can still reply from webmail or any mail app.

Can I send support mail and sales mail to different systems?

Yes. Each account can have up to five webhooks, each with its own address filter, URL, format and headers.

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