
Mailtrap
Let AI connect your sources for you
Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Connect Mailtrap to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.
Enter your Mailtrap API token to pull your email sending data into the PostHog Data warehouse.
You can create an API token under Settings → API Tokens in Mailtrap. The token needs access to the accounts and sending domains you want to sync; email logs are restricted to the domains the token can access.
Configuration
| Option | Type | Required |
|---|---|---|
API token | password | Yes |
Linking Mailtrap to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select Mailtrap
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import
Supported tables
| Table | Description | Sync method | Incremental field | Primary key |
|---|---|---|---|---|
email_logs | A sent email's delivery log entry, covering both the transactional and bulk sending streams. | Incremental, Full refresh | sent_at | — |
suppressions | A suppressed recipient email address that will not receive emails from your account. | Incremental, Full refresh | created_at | — |
email_templates | A reusable email template with dynamic content. | Full refresh | — | — |
contact_lists | A named list used to group marketing contacts. | Full refresh | — | — |
sending_domains | A domain configured for sending emails, with its compliance and DNS verification state. | Full refresh | — | — |
accounts | A Mailtrap account the API token has access to. | Full refresh | — | — |