Mailgun has a feature where we can add webhooks (via Mailgun's API) that fire on each email event. This event could be "delivered", "failed", "complaint" (went into spam and reported by user), etc.
Add API endpoints for the purpose of these webhooks. These endpoints should add the information to the database as an "email log", which can later be viewed in the admin page.