Skip to content

E-mail alerts ​

PBXsight can send a plain-text e-mail when something needs a look, so nobody has to open the UI every morning to see whether the nightly test passed. E-mail is the only channel (no webhooks, Slack or Teams).

Alerts are off until an admin enters an SMTP server on the Settings page. Without one nothing is sent, and the Settings page, the schedule editor and the Schedules page say so.

First step: as an admin, open Settings → E-mail alerts, enter your SMTP server and press Send test e-mail (Set it up).

Set it up ​

Settings (gear icon, admins) → card E-mail alerts:

E-mail alerts card on the Settings page
Settings → E-mail alerts: SMTP server, sender, recipients, the events and Send test e-mail.
FieldMeaning
SMTP serveryour mail relay's host name or IP. Empty = alerts off
SecuritySTARTTLS (usually port 587), TLS (implicit) (usually 465) or none (plain, usually 25). The port follows the choice while it is one of these defaults
Port1–65535
Username / Passwordoptional SMTP login (AUTH PLAIN or LOGIN). The password is stored encrypted with the app's secret key, like the other secrets, and never shown again: the field says stored — leave empty to keep; tick remove the stored password to delete it. A login is only sent over TLS / STARTTLS, or to a relay on the same machine (localhost)
From addresse.g. PBXsight <pbxsight@example.com> — use an address your relay accepts as a sender
Recipientsone per line or comma-separated, up to 20. Every alert goes to all of them (in To)
App URLoptional: the address people open PBXsight at, e.g. https://pbxsight.example.com. Used for the links in the e-mails; use … fills in the address of your browser tab. Without it the e-mail names the run ID only
Allow an untrusted certificatefor relays with a self-signed certificate or an internal CA. The connection is still encrypted, but the certificate is not checked — prefer installing your CA on the PBXsight host
Send an e-mail whenthe three events below, each on or off

Save stores the settings (the activity log records what changed, never the password). The card also shows when the last alert was sent and the last delivery error.

Send test e-mail ​

Send test e-mail sends one message with the values in the form — also unsaved ones; an empty password field uses the stored password — to the recipients in the form. It shows every step and, for a failure, what to fix:

StepChecksTypical failure
resolvethe host name in DNShost not found
connectTCP to host:port (and the TLS handshake for implicit TLS)connection refused on host:port, a timeout (firewall)
STARTTLS / TLSencryption, the server certificate's subjectserver does not offer STARTTLS, certificate not trusted — use your CA or allow untrusted
AUTHthe loginauthentication failed (535), login refused over an unencrypted connection
MAIL FROM / RCPT TOsender and each recipientsender rejected (550 …), recipient rejected (550 …)
DATAthe message itselfthe server's reply

The whole test takes at most about 15 seconds. It is recorded in the activity log (number of recipients and the result).

When an e-mail is sent ​

EventSent whenSubject
Run faileda scheduled run (any type) ends with verdict failed, or fails to start / breaks off after its run was created; any PBX watch — scheduled or started by hand — that ends with verdict failed[PBXsight] FAILED: <schedule name or 'watch'> — <type> on <profile>
Always-on watch windowa window of a profile's always-on watch fails a check after the profile was OK; again when a window passes (recovered)[PBXsight] Problem on <profile>: <first failed check> (always-on watch) / [PBXsight] Recovered on <profile> (always-on watch)
Data source unreachablea profile's FreeSWITCH ESL, one of its Kamailio nodes or one of its pbxsight-agents (rtpengine) has been unreachable for 2 minutes; again when it is reachable[PBXsight] FreeSWITCH ESL unreachable on <profile> (or Kamailio / rtpengine agent) / [PBXsight] … reachable again on <profile>
Schedule not starteda schedule's due time was skipped (another run was active), missed (the app wasn't running) or not started (e.g. no valid licence, the extension set was deleted)[PBXsight] Not started: <schedule name>
Licencethe licence ends in 7 days or less, within 24 hours, or has ended[PBXsight] Licence ends in N days / … ends within 24 hours / … has ended

Nothing is sent for passed runs, for runs without criteria (verdict none), for runs a user stopped, or for load tests started by hand (you are watching those). A refused Run now shows the error in the UI instead.

  • Run failed e-mails list the run ID, type, profile, schedule (or started by hand and by whom), start and end time, status, every failed check with value vs limit (as on the verdict card), the vs baseline headline when the test has a baseline, and a link to the run.
  • Always-on watch e-mails: one per incident (the window's clock time, each failed check with value vs limit, a link to the Monitor page), none while windows keep failing, one recovered at the first passing window. At most one problem e-mail per profile per hour; incidents in between are counted and named in the next one (their recoveries send nothing). Windows with too little data change nothing. The daily segments of the always-on watch never send a run failed e-mail.
  • Data source e-mails: one per outage and source node (address, since when, the last connection error, what is missing meanwhile, a link to the profile's Test connection), one reachable again with how long it was down. Outages shorter than 2 minutes (a restart, a reconnect, the app's own start) send nothing. At most one e-mail per node per hour; outages in between are counted and named in the next one. Only sources switched on in a profile are checked (every 15 s, whether or not a run is active); a source switched off or a deleted profile is forgotten without an e-mail. With the switch off, nothing is sent; switched on while a source is still down, its e-mail goes out at the next check.
  • Not started e-mails are limited to one per schedule per hour. Due times in between are counted, and the next e-mail says N more not started since … — so a per-minute schedule blocked by a long run doesn't flood the inbox. (After an app restart the count starts again.)
  • Licence e-mails are checked about a minute after the app starts and then every 6 hours. Each stage is sent once per licence key (remembered in the database, so restarts don't repeat it); a new key starts fresh. Nothing is sent for a missing or invalid key. Alerts are sent with or without a valid licence — the licence only gates starting runs.

Switch alerts per schedule ​

Each schedule has an E-mail alerts switch in its editor (New test → Schedule; on by default). Off = neither run failed nor not started e-mails for that schedule; the others are not affected. The Schedules list and the schedule page mark it alerts off. See Schedules.

Know how delivery works ​

  • E-mails are queued and sent in the background, one at a time; a run or the scheduler never waits for the mail server.
  • Temporary failures (connection errors, 4xx replies) are retried up to 3 times (after 10 s, 1 min and 5 min). A permanent failure (5xx) is not retried.
  • Every sent e-mail is in the activity log as sent an e-mail alert by (alerts); a final failure as e-mail alert failed with the error, which also shows as the last error on the Settings card. Filter Alerts shows only these entries and changes of the alert settings.
  • The app needs outbound TCP to the SMTP port (587, 465 or 25) — see Ports.
  • On shutdown the app waits up to 5 seconds for queued e-mails.

Know what an e-mail contains (privacy) ​

The SMTP password is never written to the database in plain text, never returned by the API and never logged. The support bundle contains alerts.json with the server, port, security, From address, app URL, events, whether a password is set and the number of recipients — not the password and not the recipients' addresses.

PBXsight — load testing and monitoring for FreeSWITCH PBXes. Only test systems you own or may test.