Skip to main content
coreydaley.dev
Docs menu

Configuration

All flags can also be set via environment variables (e.g. --smtp → MP_SMTP_BIND_ADDR, --twilio → MP_TWILIO_BIND_ADDR).

FlagEnv varDefaultDescription
--smtpMP_SMTP_BIND_ADDR0.0.0.0:1025SMTP bind address
--sendgridMP_SENDGRID_BIND_ADDR127.0.0.1:8100SendGrid v3 Mail Send API bind address (--sendgrid "" to disable)
--sendgrid-api-keyMP_SENDGRID_API_KEYExpected Bearer token for /v3/mail/send (skipped when empty)
--twilioMP_TWILIO_BIND_ADDR[::]:8200Twilio SMS ingest bind address
--twilio-auth-tokenMP_TWILIO_AUTH_TOKENTwilio auth token: validates Basic Auth on inbound SMS and signs outgoing delivery callbacks
--twilio-webhook-urlMP_TWILIO_WEBHOOK_URLURL to POST SMS status callbacks to (fallback when no per-request StatusCallback)
--twilio-callback-delayMP_TWILIO_CALLBACK_DELAY0sDelay between callbacks in the queued/sent/delivered progression (next release)
--webhookMP_WEBHOOK_BIND_ADDR[::]:8300HTTP webhook capture bind address (--webhook "" to disable)
--listenMP_UI_BIND_ADDR0.0.0.0:8025HTTP UI/API bind address
--dbMP_DATABASE(in-memory)SQLite database file path
--email-webhook-urlMP_EMAIL_WEBHOOK_URLURL to POST email delivery event webhooks to
--email-webhook-signing-keyMP_EMAIL_WEBHOOK_SIGNING_KEYBase64-encoded SEC1 DER ECDSA P-256 private key (auto-generated when empty)
--email-webhook-event-delayMP_EMAIL_WEBHOOK_EVENT_DELAY0sDelay between events in the email delivery lifecycle (next release)

Run messagepit --help for the full list, including the options inherited from Mailpit (web UI authentication, SMTP TLS and authentication, POP3, relay, Prometheus metrics and more). The Mailpit documentation covers those in depth.

API

The REST API is documented by the running server at http://localhost:8025/api/v1. The SMS and webhook capture endpoints are listed on the SMS integration and Webhook capture pages.