doc/administration/integration/mailgun.md
{{< details >}}
{{< /details >}}
When you use Mailgun to send emails for your GitLab instance and Mailgun integration is enabled and configured in GitLab, you can receive their webhook for tracking delivery failures. To set up the integration, you must:
After completing the integration, Mailgun temporary_failure and permanent_failure webhooks are sent to your GitLab instance.
{{< history >}}
/-/members/mailgun/permanent_failures URL in GitLab 15.0.{{< /history >}}
Before you can enable Mailgun in GitLab, set up your own Mailgun endpoints to receive the webhooks.
Using the Mailgun webhook guide:
Add a webhook with the Event type set to Permanent Failure.
Enter the URL of your instance and include the /-/mailgun/webhooks path.
For example:
https://myinstance.gitlab.com/-/mailgun/webhooks
Add another webhook with the Event type set to Temporary Failure.
Enter the URL of your instance and use the same /-/mailgun/webhooks path.
After configuring your Mailgun domain for the webhook endpoints, you're ready to enable the Mailgun integration:
https://app.mailgun.com/app/account/security/api_keys) section for your Mailgun account.