mailgun

command
v1.5.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Mailgun email plugin

Emails each alert through the Mailgun HTTP API, for operators who want API delivery instead of the control plane's SMTP or Resend channels.

Kind notification_channel, ability read, outbound hosts: api.mailgun.net, api.eu.mailgun.net.

Config

Plugin-wide, non-secret, passed at install with --config:

{"domain": "mg.example.com", "region": "us", "from": "Alerts <alerts@mg.example.com>", "to": "ops@example.com"}
Field Required Meaning
domain yes Sending domain verified in Mailgun
from yes From address
to yes Recipient address
region no us (default) or eu

Channel target

The channel's target field holds the Mailgun API key. It is sealed like any channel credential and sent per call. The plugin never stores or logs it.

levelrail-cli plugins install --manifest plugin.yaml --signature plugin.sig --config config.json --approve read
levelrail-cli channels create --name ops-mailgun --kind plugin:mailgun --notify-url key-XXXX

Behaviour

  • 401 and 403 are permanent ("authentication failed").
  • 429 waits out a short Retry-After and retries, otherwise reports retryable.
  • 5xx and network errors retry twice, then report retryable.
  • Other 4xx are permanent and the response excerpt is shown with the credential redacted.

Build and sign locally with scripts/plugins-build.sh all mailgun. Tests: go test ./plugins/mailgun.

Documentation

Overview

Command mailgun emails each alert through the Mailgun HTTP API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL