Email Events
Understand the lifecycle of every email through real-time event tracking in Taifa Mail.
Every email sent through Taifa Mail moves through a series of events from the moment it is queued to the moment a recipient interacts with it. Events are recorded in real time via Postfix callbacks and are available in both the dashboard and the API.
Event types
Each event has an event_type. The values you can see are:
| Event | Meaning |
|---|---|
queued | The email has been accepted by Taifa Mail and placed in the send queue. |
scheduled | The email has been scheduled to send at a future time. |
sent | The email has been handed off to the recipient's mail server. |
delivered | The recipient's mail server confirmed delivery. |
open | The recipient opened the email (detected via the tracking pixel). |
click | The recipient clicked a tracked link in the email. |
bounced | The recipient's mail server permanently rejected the email (hard bounce). |
rejected | The email was rejected before or during send. |
failed | Delivery failed due to an internal error or configuration issue on our side. |
cancelled | A queued or scheduled email was cancelled before it sent. |
Viewing events in the dashboard
- Go to Email Logs in the sidebar.
- Click any email row to open its detail view.
- Select the Events timeline tab.
Each event shows the timestamp, event type, and any additional metadata (for example, the clicked URL or the user agent recorded on an open).
Retrieving events via API
Each event has an id, event_type, an optional metadata object, and a created_at timestamp.
Response:
The metadata object varies by event type. An open event carries the requesting user agent under ua. A click event carries the destination url and ua.
How tracking works
Open tracking embeds a transparent 1x1 pixel image in the HTML body of your email. When the recipient's email client loads the image, Taifa Mail records an open event.
Click tracking rewrites each link in your HTML email to route through an Taifa Mail redirect URL. When the recipient clicks a link, Taifa Mail records a click event and redirects them to the original destination. The visitor is always redirected, even if recording the event fails.
Filtering scanner traffic
Mail providers and security gateways (Gmail's image proxy, Microsoft Defender, Proofpoint, Mimecast and similar) prefetch tracking pixels and follow links automatically, seconds after delivery. Taifa Mail filters this so counts reflect real human activity:
- Opens and clicks from known scanner user agents are logged but do not increment the counters.
- Any open or click within a few seconds of the send time is treated as a prefetch.
- Repeat opens, or repeat clicks on the same URL, within a short window are coalesced.
Because a scanner can warm a mail client's image cache, a genuine open may never reach our pixel. When that happens a confirmed click back-fills the open, so engagement is not undercounted.
Open tracking only works for HTML emails - a plain-text email cannot carry a tracking pixel. Pixel-based open tracking is inherently lossy behind privacy features like Apple Mail Privacy Protection and Microsoft Defender, so treat open counts as a lower bound.