Connect your data to Claude in 1 minute. No code needed Try it now

Connect Mailgun to PostgreSQL

Send Mailgun domains and events to PostgreSQL on a schedule. Filter by date. Refresh as often as every 15 minutes.

capterra
star star star star star

4.9/5

PostgreSQL schema mailgun
  • domains
  • events
Each Mailgun data type lands in its own table. You pick the schema and table names.
Trusted by 200K+ users worldwide
Tradezella
Stanford
Webtoon
Getir
Stellar
Anker
ParentSquare
Bac 50
Benzinga
Matterport

How to connect Mailgun and PostgreSQL

5 steps. You can preview the Mailgun data in Coupler.io before anything reaches PostgreSQL.

Step 1 of 5

Connect Mailgun

Enter your Mailgun private API key and domain region code. You only do this once per account.

Private API key••••••••••••
Domain region code••••••••••••

Step 2 of 5

Choose what to export

Pick the Mailgun data you want in PostgreSQL.

Step 3 of 5

Fine-tune the export

Optional settings for this Mailgun export.

Start dateAny dateSpecify the earliest date to export data from. Any data before this date will not be exported.

Step 4 of 5

Connect PostgreSQL

Enter your PostgreSQL connection details, then the schema and table for the Mailgun data.

Hostdb.example.comHostname, IPv4, or IPv6 address of the server
Port5432Default is 5432
DatabaseanalyticsThe target database name
TabledomainsCreated automatically on the first run
Show 3 more fields Show fewer fields
UsercouplerUser with CREATE and INSERT privileges
Password••••••••••••The database user's password
SchemamailgunCreated automatically if it doesn't exist

Step 5 of 5

Choose a write mode and schedule

Every run either replaces or appends the data in PostgreSQL. Run it as often as every 15 minutes.

Write mode

Each run deletes the existing rows in domains and loads fresh Mailgun data.

Get the most of Mailgun to PostgreSQL integration

Gather data icon

Gather data

Export data from numerous apps and sources into a single destination. Blend data from different apps to get a single source of truth.
Understand data icon

Understand data

Preview, transform, sort, and filter data for better clarity in just a few clicks in the Coupler.io interface. Take your data analytics to the next level.
Automate data icon

Automate data

Access data that is always up to date by enabling the automatic data refresh on a schedule as often as every 15 minutes and using triggered automation.
Act on data icon

Act on data

Visualize your data by quickly connecting to data visualization and BI tools. Build insightful dashboards in a breeze and make better decisions.
Mailgun to PostgreSQL questions

2 data types, including Domains and Events.

With your Mailgun private API key and domain region code, entered once when you add the connection.

Yes. Set the start date to cover the period you need.

Yes, if the database user has CREATE privileges. Coupler.io creates the mailgun schema and the domains table on the first run.

Yes. Append adds new rows to domains on each run, while Replace swaps in a fresh copy. With Append, add new Mailgun columns to the table yourself before the next run.

On a schedule you choose, from monthly down to every 15 minutes, depending on your Coupler.io plan.

Yes. Add more sources to the same data flow, for example Calendly or Klaviyo, and join or append them before the data reaches PostgreSQL.

High five for scrolling till the very end!
See you in the app!