Skip to content
Monitoring & Diagnostics

Email Alerts

Get an email when a container fails or a server stops answering. Gmail, Sendhiiv, Outlook and other providers.

Watch on YouTube

Prefer to watch? Part 5 of the video walkthrough (1:39) covers this page.

Email alerts tell you when something breaks, without you watching a screen. Go to Monitoring → Notifications.

What triggers an email

While DeployOS is open it checks every server's containers every two minutes. It emails you when a container is unhealthy, crash-looping or dead, when a server stops answering (optional), and again when things recover. A problem that stays broken is repeated after the interval you choose (60 minutes by default) so you are reminded without being flooded.

These checks run while DeployOS is open on your computer. With server alerts turned on (see below), each server also checks itself every minute and emails you directly, so alerts keep arriving while your computer is off. That installs a small watcher script and a timer on the server, which you can see and remove.

Setting it up

  1. Open Monitoring → Notifications and switch Email alerts on.
  2. Choose your email provider from the tiles. Sendhiiv, Gmail, Outlook / Microsoft 365, Postmark, SendGrid, Mailgun, Resend, Amazon SES, or Custom SMTP for any other server.
  3. Fill in the username and password. The password is stored in your computer's keychain, never in a file.
  4. Enter who should receive alerts (comma-separated).
  5. Press Save, then Send test email. The result stays on screen, so a long error can be read.

You can add more than one provider. The Primary one is tried first; if it fails, the others are tried in order.

Provider notes

ProviderWhat to enter
SendhiivHost smtp.sendhiiv.com, port 587 (STARTTLS; 465 with TLS also works). Create an SMTP credential in the Sendhiiv dashboard under API keys, then SMTP relay, and use its username and password. Use a From address on a domain you have verified in Sendhiiv
GmailNeeds an App Password, not your normal password, see below
Outlook / Microsoft 365Host smtp.office365.com, port 587, your mailbox login
PostmarkUsername and password are both your server token
SendGridUsername is the word apikey; the password is your API key
ResendHost smtp.resend.com, port 465 (TLS); username is resend
Custom SMTPHost, port and security as given by your mail provider

Gmail: use an App Password

Google does not allow normal passwords for apps. To get an App Password:

  1. Turn on 2-Step Verification on your Google account (App Passwords do not exist without it).
  2. Open Google's App passwords page (the Gmail form has a button that opens it), name it "DeployOS" and create it.
  3. Paste the 16-letter code as the password. Spaces are fine; DeployOS removes them.
  4. Use your full Gmail address as the username, port 587 with STARTTLS.

The form warns you if the code you paste is not 16 characters. Google Workspace admins may need to allow App Passwords first.

The From address

Leave it blank to send from the username, if the username is an email address. You can enter a plain address (alerts@yourdomain.com), a named one (DeployOS <alerts@yourdomain.com>), or just a display name (DeployOS server), in which case the username is used as the address. If your username is not an email address (SendGrid's apikey, for example), enter a real From address on a domain you have verified with the provider.

When the test fails

MessageCause and fix
"couldn't read the saved password … from the system keychain"The keychain refused access. Re-enter the password and press Save
"no password is saved"Type the password and press Save before testing
"bad From address" or "isn't a valid From address"Use you@domain.com, Name <you@domain.com>, or a name plus an address-style username
The server "refused the message"Many providers only send from an address you have verified. Check the From address and recipients
Authentication errors on GmailYou used your normal password. Use an App Password

Incident history

With Keep an incident history on, every failure and recovery is recorded under Monitoring → History, which also feeds the Dashboard's needs-attention panel.

Related: Monitoring & Metrics.

Alerts in Slack, Discord, Telegram, Teams, Google Chat or on your phone

Under Also send alerts to chat, choose Add and pick a destination. Every alert then goes there as well as to email. You can use chat without setting up an email account at all.

DestinationWhat to paste
SlackAn incoming webhook URL (Apps, Incoming Webhooks, Add to a channel).
DiscordA webhook URL (channel settings, Integrations, Webhooks).
TelegramThe bot token from @BotFather and your chat ID.
Microsoft TeamsThe address from a "Post to a channel when a webhook request is received" workflow.
Google ChatA webhook URL (the space's menu, Apps and integrations, Webhooks).
ntfyA topic address such as https://ntfy.sh/your-topic, for push notifications on your phone. Pick a topic name nobody would guess.
PushoverYour application token and user key, for push notifications on your phone.
WebhookAny https address. DeployOS posts JSON with source, subject and body. Use it for PagerDuty, ntfy, Zapier, n8n or an SMS service.

Press Send test on each one to check it. The address is kept in your computer's keychain, and on each server in a file only root can read.

Warnings before a server runs out

With server alerts turned on, each server checks itself every minute, so these work while your computer is off.

  • Disk. Warns when a disk reaches 90% full, and tells you once when it is back under.
  • Memory. Warns when memory has been at least 95% full for five minutes in a row. A build or a backup that fills memory for a moment does not count.
  • Certificates. Once a day, warns when a domain's HTTPS certificate has fewer than 14 days left. The proxy renews a certificate a month early, so this means renewal is failing. A certificate that could not be read is skipped, not reported.

Change the numbers under Warn me before a server runs out; enter 0 to turn one off. After changing anything, press Save, then switch server alerts off and on again so your servers get the change.