E-Mail & Benachrichtigungen / Eingehende E-Mails
Erste Schritte
Tickets & Konversationen
Automatisierung & Workflows
E-Mail & Benachrichtigungen
Erweiterung
Inbound Email
Create and reply to tickets directly from incoming emails. Escalated supports Postmark and Mailgun webhooks out of the box, with an open parser interface for plugging in additional providers.
How It Works
- Your email provider receives a message at your support address (e.g.,
support@yourapp.com). - The provider forwards it to your app via webhook.
- When an inbound secret is configured, only a valid signed
Reply-Toaddress can identify a ticket. Without a secret, the compatibility chain also considers canonicalIn-Reply-ToandReferencesheaders, subject references, and historical inbound message IDs. A match becomes a reply only if the sender is the ticket requester; it is posted as that requester. Other senders, including agents replying by email, create a new ticket. - Matched emails add a reply; unmatched emails create a new ticket (or are skipped if they're noise — SNS subscription confirmations, empty body+subject).
Webhook model
All greenfield framework ports (.NET, Spring, Go, Phoenix, Symfony) expose a single unified webhook endpoint and select the parser via the adapter query parameter or X-Escalated-Adapter header. Per-framework routes:
| Framework | Webhook URL |
|---|---|
| .NET | POST /support/webhook/email/inbound?adapter=<postmark|mailgun> |
| Spring Boot | POST /escalated/webhook/email/inbound?adapter=<postmark|mailgun> |
| Go | POST /escalated/webhook/email/inbound?adapter=<postmark|mailgun> |
| Phoenix | POST /support/webhook/email/inbound?adapter=<postmark|mailgun> |
| Symfony | POST /escalated/webhook/email/inbound?adapter=<postmark|mailgun> |
The legacy host-app integrations (Laravel, Rails, Django, Adonis, Filament, WordPress) expose provider-specific endpoints — see the respective framework page for the exact URL.
Authentication
Webhooks are guarded by a shared secret. Your provider forwards it as X-Escalated-Inbound-Secret; the framework verifies it with a timing-safe comparison. The same secret is used to sign outbound Reply-To addresses (reply+{id}.{hmac8}@{domain}), so the receiver can distinguish an authorized webhook request from an unauthenticated request. The signed reply address identifies a thread; it does not authenticate the sender. Configure SPF, DKIM, and DMARC enforcement at your inbound provider.
Features
- Thread detection uses signed
Reply-Toaddresses when an inbound secret is set. Header and subject matching are compatibility fallbacks only when no secret is configured. - Signed Reply-To addresses — outbound email embeds an HMAC so replies that strip threading headers still find the right ticket, and forged addresses are rejected.
- Guest tickets for unknown senders with auto-derived display names.
- Noise filtering — SNS subscription confirmations and empty body+subject messages are skipped rather than creating a ticket.
- Attachment passthrough — provider-hosted attachments (Mailgun's larger files) surface as
pending_attachment_downloadsfor a background worker to fetch and persist out-of-band. - Audit logging — every inbound email is recorded for debugging and compliance.
Konfiguration
# .env
ESCALATED_INBOUND_EMAIL=true
ESCALATED_INBOUND_ADDRESS=support@yourapp.com
# Mailgun
ESCALATED_INBOUND_ADAPTER=mailgun
ESCALATED_MAILGUN_SIGNING_KEY=your-signing-key
# Postmark
ESCALATED_INBOUND_ADAPTER=postmark
ESCALATED_POSTMARK_INBOUND_TOKEN=your-token
# AWS SES
ESCALATED_INBOUND_ADAPTER=ses
ESCALATED_SES_TOPIC_ARN=arn:aws:sns:us-east-1:...
# IMAP
ESCALATED_INBOUND_ADAPTER=imap
ESCALATED_IMAP_HOST=imap.gmail.com
ESCALATED_IMAP_USERNAME=support@yourapp.com
ESCALATED_IMAP_PASSWORD=your-app-password
IMAP-Polling
// routes/console.php
Schedule::command('escalated:poll-imap')->everyMinute();