Mailgun
email.mailgun
Protects against destructive Mailgun API operations like domain deletion, route deletion, and mailing list removal.
- 8blocking rules
- 0safe patterns
- 1Critical
- 4High
- 2Medium
- 1Low
[packs]
enabled = ["email.mailgun"]Evaluated when a command contains mailgun, api.mailgun.net.
Blocking rules
Each rule ID is email.mailgun:<name>. Use it in allowlists and [policy.rules].
Criticalmailgun-delete-domainDELETE to Mailgun /v3/domains removes a domain configuration.
Explanation
Deleting a domain removes all DNS settings, DKIM keys, tracking configuration, and sending capability. All applications using this domain will fail to send emails. Re-adding requires DNS verification. Safer alternatives: - Export domain settings and DNS records - Disable domain instead of deleting - Verify no production systems use this domain
Highmailgun-delete-credentialDELETE to Mailgun credentials endpoint removes SMTP credentials.
Explanation
Deleting SMTP credentials immediately revokes access. Applications using these credentials for SMTP authentication will fail to send. The credential cannot be recovered. Safer alternatives: - Create new credentials before deleting old ones - Update application configurations first - Use API keys where possible for better management
Highmailgun-delete-listDELETE to Mailgun /v3/lists removes a mailing list.
Explanation
Deleting a mailing list removes all members and subscription data permanently. Applications sending to this list will receive errors. Member preferences and history are lost. Safer alternatives: - Export list members before deletion - Archive list rather than deleting - Check for scheduled campaigns to this list
Highmailgun-delete-routeDELETE to Mailgun /v3/routes removes an email route.
Explanation
Deleting a route stops email forwarding, storage, or webhook delivery for matching messages. Incoming emails matching this route will not be processed as expected. Safer alternatives: - Document route expression and actions - Disable route before deleting - Test with lower priority route first
Highmailgun-delete-suppressionDELETE to Mailgun suppression endpoints removes suppression entries.
Explanation
Removing suppression entries allows emails to addresses that previously bounced, complained, or unsubscribed. This damages sender reputation and may violate anti-spam regulations. Safer alternatives: - Verify address validity before removing bounce - Never remove complaint or unsubscribe entries - Use email verification services for bounced addresses
Mediummailgun-delete-templateDELETE to Mailgun templates endpoint removes an email template.
Explanation
Deleting a template breaks email sends that reference it. Applications will receive errors when attempting to use the deleted template. All versions are removed. Safer alternatives: - GET template to export content first - Create new version instead of deleting - Search codebase for template name references
Mediummailgun-delete-webhookDELETE to Mailgun webhooks endpoint removes a webhook.
Explanation
Deleting a webhook stops event delivery to your application. Bounce, complaint, delivery, open, and click notifications will not be received. This affects analytics and automation. Safer alternatives: - Document webhook URL and events - Configure new webhook before removing old - Verify no critical processes depend on events
Lowmailgun-delete-tagDELETE to Mailgun tags endpoint removes a tag.
Explanation
Deleting a tag removes the grouping but does not affect sent emails. Statistics associated with this tag will no longer be queryable. This is relatively safe but can affect reporting. Safer alternatives: - Export tag statistics before deletion - Rename tag instead of deleting - Use new tags for new campaigns