Skip to main content
OpenSRE can send background RCA completion emails through any existing SMTP relay you already use. You do not need to run your own mail server. Typical providers:
  • Google Workspace / Gmail SMTP
  • Microsoft 365 SMTP
  • AWS SES SMTP
  • SendGrid / Postmark / Mailgun SMTP
  • local dev SMTP sinks like Mailpit or MailHog

What this powers

In v1, the smtp integration is used for:
  • /background RCA completion notifications
Email is one of two completion channels — Telegram is the other, and you can enable both at once. See Background investigations. The email summary includes:
  • Root cause
  • Top analysis
  • What to do next
  • a small internal stats block

Step 1: Configure the integration

Via CLI wizard

You’ll be prompted for:
  • SMTP host
  • SMTP port
  • security mode: starttls, ssl, or none
  • optional username/password
  • sender address
  • optional default recipient

Via environment variables

If authentication is required, set both SMTP_USERNAME and SMTP_PASSWORD.

Step 2: Verify

A passing verification confirms OpenSRE can:
  • connect to the SMTP server
  • negotiate TLS when configured
  • authenticate when credentials are provided
Sample success output:

Step 3: Use it with background investigations

Enable background mode in the interactive shell and select the email channel. Notification channels are empty by default, so /background on on its own sends nothing:
Then start an investigation as usual. When it completes, OpenSRE sends the RCA summary email to the configured default recipient. To send the same summary to Telegram as well:
You can inspect the completed job in the shell with:

Troubleshooting

For local testing, Mailpit is a good fake SMTP target:
Then configure: