Proxmox VE notifications with SMTP, Gotify and webhooks

How to route Proxmox VE events such as failed backups, node fencing and replication errors to the right people using matchers and SMTP, Sendmail, Gotify or webhook targets.

On this page

Proxmox VE notifications: how alerts reach the right people

A failed backup, a node fenced by HA or a stalled ZFS replication job only protects you if the right person hears about it in time. Proxmox VE emits these events itself, and notification matchers decide which targets receive each one. Default mail to a single address is enough for a small lab, but a production cluster with several administrators, separate storage and network owners, and an on-call rota usually needs a routing design: which event types go to whom, which severities page someone, and which messages are only logged. Design that routing before go-live, not after the first missed failure.

Proxmox VE emits events for storage replication failures, node fencing, finished or failed backups and other conditions. Each matcher filters those events on metadata such as severity and type, then forwards them to one or more targets. The four target types covered here are Sendmail, which hands messages to the local mail transfer agent; SMTP, which sends through an external mail relay; Gotify, a self-hosted push notification server; and webhooks, which send HTTP requests to a chat tool, incident platform or ticketing system. Each type has different credential, network and delivery characteristics, so the choice should follow your mail and alerting infrastructure rather than habit.

Before you configure anything, confirm with your mail and on-call owners which relay accepts messages from the Proxmox VE nodes, whether firewall rules allow the outbound connection, and where secrets will be held. Notification settings live in /etc/pve/notifications.cfg, while passwords and tokens are kept in /etc/pve/priv/notifications.cfg, readable only by root. Check the current behavior of each target type against the Proxmox VE notifications chapter for your installed version, and test every matcher with a real failure before relying on it.

How events flow from Proxmox VE to notification targets

Event sources such as backup jobs, storage replication and HA fencing emit notifications inside the cluster. Notification matchers then decide, based on metadata such as severity and type, which target receives each event. Target settings are kept in /etc/pve/notifications.cfg, while passwords and tokens sit in /etc/pve/priv/notifications.cfg, which only root can read. Check that secrets stay in the privileged file and that every matcher has a target, so a failed backup or fencing event cannot disappear silently.

Event sources, matchers and targets, with secrets isolated in the root-only file.

Notification target options and when each fits

This table compares the four notification target types Proxmox VE documents: Sendmail, SMTP, Gotify and webhooks. Read each row against your on-call or ticketing workflow, then confirm mail relay and endpoint behavior in your own environment before relying on a target.

AspectSendmail and SMTPGotifyWebhook
What it delivers toEmail recipients through a local MTA (Sendmail) or a configured mail relay (SMTP)A Gotify server that pushes messages to its clientsAny HTTP endpoint that accepts the request you build, such as a ticketing or chat API
Message shapingSubject and body from notification templates, suited to readable alert emailsTitle and message body from notification templatesURL, headers and body are templated with message contents, metadata and secrets
Credential handlingSMTP passwords are kept in the privileged notifications file, readable only by rootApplication token is a sensitive option stored in the privileged notifications fileTokens and secrets in headers or body are kept in the privileged notifications file
Dependencies to confirmRelay host, TLS mode, sender address and whether the relay accepts traffic from your nodesGotify server reachability from every node and token validityEndpoint availability, authentication scheme and response handling by the receiving system
Best fitTeams whose on-call rota or ticket intake already reads emailSmall teams wanting push alerts to phones on a server they runTicketing, incident or chat systems that accept an HTTP call with a custom payload
Main riskMail silently dropped by a relay or spam filter if not testedSingle server becomes a notification dependencyPayload errors or endpoint outages go unnoticed without a test event

Designing matchers and severity rules for routing

Matchers decide which events reach which people, so their design determines whether a failed backup gets an owner or sits unread in a shared inbox. Proxmox VE emits events for storage replication failures, node fencing, finished or failed backups and other conditions, and a matcher selects them by metadata such as severity and type before forwarding them to one or more targets like SMTP, Sendmail, Gotify or a webhook. Start by writing down, for each event class, who must act, how fast, and through which channel. Then map that table onto matchers. A routine successful backup usually belongs in a low-priority route, such as a daily digest or a log target, while a failed backup, a fencing event or a replication error needs a route with a named owner and an alerting channel that someone watches outside working hours if the service requires it.

The main design choice is between broad catch-all routing and narrow rules. A catch-all matcher is simple to review and is hard to bypass accidentally, but it floods owners with routine success messages and trains them to ignore alerts. Narrow rules keep the signal clean, but each one is a place where an event class can be missed, for example when a new event type appears after an upgrade or when a matcher filters on a severity value that a particular event never sets. A practical pattern is a broad fallback matcher that sends anything unmatched to a shared operations target, combined with narrow matchers for the failures that must reach a named owner. Confirm the exact metadata fields and severity values your Proxmox VE version exposes in the notifications documentation before you write the rules, rather than assuming them.

Test each route with a deliberate test notification for every target and check that the matcher behaves as written, including the fallback path. Keep an inventory of matchers alongside the event classes they cover, and review it after each Proxmox VE upgrade, since event coverage can change between releases. Matcher and target definitions are kept in /etc/pve/notifications.cfg, while passwords and tokens are kept in /etc/pve/priv/notifications.cfg, so store the configuration under version control where your change process allows it, and record who approves changes to routing. A missed failure is usually discovered during a restore, so the cheapest control is a scheduled test that confirms the owner actually receives a failure notification.

How to configure notification targets and matchers

This sequence takes a Proxmox VE cluster from undefined alerting to verified delivery of the events that matter, with each responder group receiving the messages routed to it. It produces a target per channel, matchers per responder group, and proof that a real failure reaches the right inbox or chat channel.

  1. Inventory the event sources you need to catch

    Before touching the interface, list the events your responders must hear about: failed or finished backups, node fencing in HA, and storage replication errors. Note which cluster or node each event comes from and who owns it. The owner of backups, the owner of HA and the owner of replication are often different people. Write the list down, since it becomes the basis for matcher rules later. Confirm the current event types and their metadata in the notifications chapter of the Proxmox VE administration guide for the version you run, because the available types can change between releases. You are done when every event type has a named owner and a plain-language reason for alerting.

  2. Create the notification target

    In the Proxmox VE web interface, open the notifications area at the datacenter level and add a target of the type that fits your channel: Sendmail, SMTP, Gotify or a webhook. For SMTP, enter the relay host, sender address, and credentials if the relay requires them. For Gotify, enter the server URL and application token. For a webhook, define the URL, headers and body template. Non-sensitive settings are stored in /etc/pve/notifications.cfg, while passwords and tokens go to /etc/pve/priv/notifications.cfg, which only root can read. Check that the target appears in the list and that the sensitive values are not visible in the configuration file's plain section. Record who holds the credentials, since rotating them later requires an update here.

  3. Create one matcher for each responder group

    Create a matcher for each group that should receive alerts, and attach the target or targets that group uses. Set match rules on metadata such as severity and event type so that, for example, a backup failure goes to the storage team while a fencing event also goes to the on-call group. Decide whether a matcher should match all rule conditions or any of them, and confirm the behavior in the administration guide for your version. Keep matchers narrow enough that a responder does not receive every routine message. Verify the result by reviewing the matcher list and noting which events each matcher should catch. You are done when every event source from your inventory maps to at least one matcher.

  4. Send a test notification to each target

    Use the test function on each target so you know the channel works before relying on it for real events. A test confirms that the SMTP relay accepts the message, that the Gotify application token is valid, or that the webhook endpoint responds. Check the receiving side directly: the mailbox, the Gotify client, or the webhook service's logs. If the test fails, read the error shown in the interface and the system logs on the Proxmox host, then correct the host, port, credential or URL. Repeat the test after any credential change. You are done when every target delivers its test message to the intended recipient.

  5. Trigger a controlled failure in a non-production cluster

    In a non-production cluster, create a deliberate backup failure, for example by pointing a test backup job at a storage target that is unavailable for the test window, or by causing a replication job to fail in a controlled way. Do not run this experiment on production guests. Confirm that the event is emitted and that the matcher you built for that event type fires. Keep the test scope and timing recorded so the responders know it is a test. Then restore the normal storage path and confirm the job succeeds. You are done when the induced failure produces a notification that matches the intended matcher and no other matcher.

  6. Verify delivery and routing end to end

    Confirm that the responder group received the alert in its channel, with the subject, severity and content your templates produce. Check that groups outside the matcher did not receive it, because over-routing trains people to ignore alerts. If your webhook uses templating, confirm that the message body contains the fields you expected and that no secret appears in it. Review the logs on the Proxmox host for any delivery errors. Document the final matcher table, the owner of each target and the date of verification. You are done when a responder in each group confirms receipt and the documented routing matches the observed routing.

Template overrides and webhook payloads

The webhook target is the part of the notification setup where Proxmox VE events become something your ticketing or chat tools can act on, and its URL, headers and body all accept templates. Those templates can draw on message contents, event metadata and secrets, so the same notification can open a ticket, post to a channel or call an incident endpoint without a middleman. Before you build one, decide which fields the receiving system needs, such as the event type, the affected node or guest and the failure text, and which of them must never appear in a log or chat history. Secrets belong in the private notification file rather than in the body, so confirm with the Proxmox VE notifications chapter which template fields can reference secrets in your release.

Test every payload before a matcher sends it to production. Create the target, point the matcher at a test endpoint or a throwaway ticket queue, and trigger a controlled event such as a backup job you run on a non-critical guest. Compare the received request with what your receiver expects, including the header names, content type and any escaping the receiving system requires. Keep the test payloads in version control next to the rest of your configuration so a reviewer can see exactly what changed.

Keep templates small and tied to the fields you actually use. Each Proxmox VE release can change message wording or the metadata available to templates, so treat a Proxmox VE upgrade as a trigger for a payload review, and rerun the test events on a staging cluster first. Record which release each template was validated against, and ask your partner or vendor to confirm any template variable you plan to depend on before you rely on it in production. The Proxmox VE administration guide on notifications is the reference to check against each release.

Protecting credentials and notification data

Notification targets need credentials to reach mail servers, Gotify instances and webhook endpoints, and the events they carry often name hosts, guests and failing jobs. The controls below cover where that configuration lives, how sender accounts and transport are set up, what a webhook body may expose, and who is allowed to change routing.

Split configuration and secrets

Notification settings live in /etc/pve/notifications.cfg, while sensitive options such as passwords and tokens are kept in /etc/pve/priv/notifications.cfg, which only root can read. Confirm this split on each cluster after you create a target, and check that your backup and restore process handles the private file with the same care as the rest of the cluster configuration. Treat any copy of the cluster file system outside the cluster as sensitive.

Notifications chapter

Least-privilege sender accounts

Create a dedicated mailbox or service account for Proxmox VE alerts instead of reusing a personal or administrator login. Limit it to sending mail, and give it no access to the mailbox of the recipients or to other systems. Rotate its password on a schedule and record who owns it, so that a compromised credential exposes only alert traffic.

TLS for SMTP delivery

Configure SMTP targets to use encrypted transport and verify the mail server certificate rather than accepting any certificate. Plain-text submission exposes the sender credentials and alert content on the network path. Ask your mail team which submission port and TLS mode they require, and test a failed-backup alert end to end after each change.

Keep secrets out of webhook bodies

Webhook URLs, headers and bodies support templating of message contents, metadata and secrets, so a careless template can copy a token into a body that is then logged by a third-party service. Include only the fields the receiving system needs, such as the event type, node name and severity. Review every template after you change it, and confirm which endpoints log request bodies.

Template reference

Control who edits matchers

Matchers decide which events reach which people, so a change can silence failed backup or fencing alerts without any visible error. Restrict edit rights for notification matchers and targets to a named group of administrators, and log changes through your normal review process. Periodically test each matcher with a sample event to confirm the right people still receive it.

Questions teams ask before routing Proxmox VE alerts

How much effort does a Proxmox VE notification design take?

Most of the effort is in deciding who needs which event, not in the configuration itself. A design covers the event types that matter (failed backups, node fencing, replication errors and other events Proxmox VE emits), the severity each one carries, and the matchers that route them to targets. Each target then needs its own setup and a test. The number of teams and events you want to separate sets the size of the work. Ask any partner for a written scope that lists the events, teams, targets and templates included before work starts.

What makes the cost of alert routing go up?

Cost follows the number of moving parts. More teams mean more matchers and more ownership decisions. Each extra target type, such as SMTP, Sendmail, Gotify or a webhook, adds its own configuration and test cycle. Custom message templates and webhook bodies take design and review time, and integration with a ticketing system adds a second system to configure, secure and test. Ongoing changes such as a new on-call roster or a new cluster are recurring work. Ask for a quote that prices each target, template and integration separately so you can see what you are paying for.

Can our internal team set up Proxmox VE notifications without help?

Often yes, if someone on your team already administers Proxmox VE and can read the notification configuration. Proxmox VE stores its notification settings in /etc/pve/notifications.cfg, with sensitive options such as passwords and tokens in /etc/pve/priv/notifications.cfg, so the admin needs to understand that split. The harder parts are agreeing on routing rules with the owning teams and testing that alerts reach people outside working hours. Your team can do this in-house, or bring in a partner for the design and review while keeping the build inside your environment.

What do we need to provide before alert routing work starts?

Plan to provide access and decisions rather than hardware. For email, you need the mail relay details and an account or relay rule that accepts messages from your Proxmox VE hosts. For Gotify, you need a running server and an application token. For webhooks, you need the endpoint URLs, the expected headers and body format, and any secrets they require. You also need an on-call roster or ownership list that names who receives each class of event and who covers nights and weekends. Confirm these items with your mail, chat and ticketing owners early, because they often take the longest to arrange.

How long does a basic notification setup and test cycle take?

No researched figure is available for this, so treat any number you hear as unverified. The duration depends on how many targets you configure, whether the mail relay and endpoints are ready, and how many test rounds your on-call owners want. A basic setup with one target, one matcher and a test of each event type is usually much shorter than a multi-team design with templates and ticketing integration. Ask for a timeline in the written scope that lists the test events, the people who confirm receipt and the point at which the routing is considered accepted.

What can go wrong once alerts are routed?

The common failures are quiet ones. A mail relay may reject messages from a new host, a Gotify token may be rotated without anyone updating the configuration, or a webhook endpoint may change its expected body. A matcher may send a severe event only to a mailbox nobody watches, or a severity rule may be too broad and flood an on-call channel until people ignore it. Test each event type after every change, and review who receives what whenever rosters change. Schedule a periodic test that confirms each target still delivers.

Are secrets in notification targets safe to store?

Proxmox VE keeps sensitive notification options, such as passwords and tokens, in a separate file that only root can read. That separation is a sound default, but it does not replace your own controls. Limit who has root on the Proxmox VE hosts, use dedicated credentials for each target with the smallest rights needed, and rotate them on a schedule. For webhooks, check that templated URLs, headers and bodies do not expose secrets in logs or in messages sent to chat channels. Confirm the handling of each credential with your security team before go-live.

How DeployOpen scopes Proxmox VE notification routing

DeployOpen fixes the event routing design in writing before any configuration changes. The written scope lists the event types to route (storage replication failures, node fencing, finished or failed backups and any other events the client cares about), the people or teams who receive each one, the severity levels that go to on-call channels versus mailboxes, and the notification targets to build: Sendmail, SMTP, Gotify or webhooks. It also records which events are deliberately left unrouted, because unrouted events are a decision too. Clients should ask for this matrix as a deliverable, since it becomes the reference their operations team uses when an alert arrives at 2 a.m.

Configuration happens inside the client's own Proxmox VE cluster and mail or messaging systems. DeployOpen creates the matchers and targets, and places non-sensitive settings in /etc/pve/notifications.cfg while passwords and tokens go to /etc/pve/priv/notifications.cfg, which only root can read. Webhook templates are checked for the metadata fields they expose and for secrets they must not echo into chat channels. Delivery is then tested per target and per matcher, including a deliberately failed backup or replication job where the environment allows it, so the client sees the message arrive in the intended inbox or channel. Any gap found in testing is recorded and fixed before handover. Clients should confirm that their test window and any simulated failures are approved in writing.

After handover, changes such as new targets, rotated credentials, or altered severity rules can be handled through a retainer if the client wants ongoing support. Clients should ask the quote to separate one-time design and build work from recurring retainer scope, and to state how changes are requested, reviewed and tested. The effort for each part depends on how many clusters, event types and recipient groups are involved, and on how much the client's mail and chat systems need to change. DeployOpen does not claim certifications or partner status for this work. Clients who need evidence for an assessment should confirm with their assessor which records of routing design and test results they will accept.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.