How Wazuh email alerting works and when teams need it
Email alerting in Wazuh sends a notification to a mailbox or on-call list when alerts meet thresholds you set in the email_alerts and global sections of ossec.conf. The wazuh-maild daemon handles delivery, so the feature depends on that daemon running and on an SMTP route it can reach. Email is the right channel when a small security or operations team needs a push signal for high-severity events and does not watch the dashboard around the clock. It is the wrong channel for high-volume triage, where a flood of messages trains people to ignore them.
The dashboard and the Wazuh indexer remain the system of record. Alerts are stored and investigated there, and an email is only a pointer back to that evidence. Plan for that boundary from the start: an analyst should be able to find the same event in the dashboard that the email described, and a missed email should never mean a missed alert. Confirm the wazuh-maild status and mail settings in your installed version against the Wazuh user manual, since configuration keys and defaults change between releases.
Before you enable it, decide who receives what. Map each recipient group to a severity band and an alert group, and check whether the SMTP relay your organization operates accepts mail from the Wazuh server address without an open relay exception. Ask your mail team to confirm authentication, TLS requirements and rate limits in writing. If your on-call process needs paging, acknowledgement or chat delivery, email alone is usually not enough, and the integrator approach covered in the sibling sections is the better fit.
Which Wazuh components are involved in sending an alert email
An alert email moves through four Wazuh components before it reaches an inbox. Agents collect events, the server decodes them and applies rules, the indexer stores the resulting alerts, and the dashboard is where teams review them. The wazuh-maild daemon is the only part that hands mail to your SMTP relay, so each step needs its own check.
Wazuh agents collect the events
Agents on endpoints read logs, file integrity changes and system state, then forward those events to the Wazuh server. Email alerting starts here only in the sense that a missing or unenrolled agent means no event exists to alert on. Check that agents report to the correct server and appear as active before you test mail, because a silent agent looks the same as a quiet network in your inbox.
Wazuh componentsThe server applies decoders and rules
The Wazuh server decodes incoming events and matches them against rules, and each matched rule carries a severity level. This level and the rule group are what the email_alerts filters later read, so the server decides whether an event becomes an email candidate at all. Changes to rules or levels here change mail volume directly.
The indexer stores every alert
The Wazuh indexer is a full-text search and analytics engine that stores alerts whether or not any email is sent. Email is a notification on top of this record, so a missing message never means a missing alert. Confirm in the dashboard that the alert exists when a notification is expected to be missing, before you assume the pipeline dropped it.
The dashboard shows what was alerted
The Wazuh dashboard is the web interface where analysts search and review alerts stored in the indexer. Use it to confirm that an alert that triggered an email is present and matches the rule and level you expected. Its prebuilt views are also the place to compare what was sent against what was recorded.
The wazuh-maild daemon sends mail
The wazuh-maild daemon reads alerts that pass the email_alerts filters and sends them through your SMTP relay. This is the component that needs outbound network access, relay credentials and a sender address the relay accepts. Test it separately, because mail that fails at this stage leaves the server and indexer behaving normally.
Email settings and filter options and when each fits
This table compares the global, email_alerts and alerts settings that control Wazuh email delivery, along with the level and group filters each one applies. Read each row as a decision: what the option controls and whether a small SOC or a large environment is likely to need it. Key names come from the ossec.conf reference for the installed version, so confirm them there before editing production files.
| Setting or filter | What it controls | When it fits a small SOC | When it fits a large environment |
|---|---|---|---|
| global section | Sender address, recipient address and SMTP server used for alert email, plus the basic mail delivery settings | One sender and one recipient list, usually a shared SOC mailbox, relayed through an existing internal mail server | Separate sender identities per environment and a relay that the platform team manages, with the relay settings documented for audit |
| email_alerts block | Whether email is enabled and which recipients receive which alerts, with options for grouping and formatting as the reference documents them | A single block with one recipient list covering all alerts above the chosen level | Multiple blocks or group-scoped routing so business units or teams receive only the alerts they own |
| alerts section minimum level | The lowest rule level that is written to alert output and can then be considered for email | A conservative minimum level so the mailbox carries only high-severity events | A level tuned per environment, with lower levels kept for archive and search rather than mail |
| Group filters | Limit email to alerts from agents or rules in selected groups, as the reference documents | Often unnecessary at first, since one mailbox is easier to review | Important for separating production, development and regulated systems into distinct recipients |
| Per-rule or per-group options | Narrow email to specific rule IDs or groups where the reference supports it | Useful for a short list of critical rules such as authentication failures on administrative accounts | Needed to avoid noise from high-volume rules while keeping coverage for sensitive events |
| Integrator for chat and paging | Routes alerts to chat or paging tools through the integrator rather than to a mailbox | Usually not needed if the team already watches the dashboard daily | Preferred when response depends on on-call acknowledgment or chat channels with escalation |
How an alert reaches an inbox
The path starts with an event on an agent, which the Wazuh server decodes and matches against rules. Alerts are written to the Wazuh indexer, where the dashboard reads them, and alerts that pass the configured level and group filters are handed to wazuh-maild. That daemon sends the message through an SMTP relay outside your Wazuh server, which is the trust boundary to review. Check the filters at the server, then confirm the relay accepts mail from the server's address before you test delivery.
Alert flow from agent event to inbox, with the indexer and dashboard as parallel stores.
Setting up SMTP relay and email alerts step by step
This sequence takes Wazuh email alerting from an approved relay and sending identity to a verified, filtered alert flow that the security team can trust. Each step produces a check the reader can confirm before moving on.
Confirm the SMTP relay and sending identity
Before editing any Wazuh file, agree with the mail team which SMTP relay host, port and TLS mode Wazuh may use, which sending address will appear in the From field, and whether the relay accepts unauthenticated connections from the Wazuh server's address or requires credentials. Ask the mail team to confirm that the sending domain has the SPF, DKIM and DMARC records they require for internal senders. Record the agreed values in your change ticket. This step is done when the mail team has confirmed the relay host, the sender address and the authentication method in writing, and the Wazuh server can open a connection to the relay port.
Configure the global and email_alerts settings
On the Wazuh server, edit the ossec.conf file (the main configuration file) and set the global section with the email notification flag, the destination address and the sender address. Then add the email_alerts block with the SMTP server, port, TLS settings and any credentials the relay requires, keeping the credential value in a file with restricted permissions where your hardening standard requires it. Check the Wazuh user manual reference for the exact key names in your release line before you save. This step is done when the file parses without errors and the values match the mail team's confirmation from the previous step.
Set level and group filters
Decide which alerts should generate email before you turn anything on. Use the email_alerts block to set a minimum rule level and, where you want to narrow the scope, rule groups so that only the events your on-call team must see are sent. Keep the threshold high at first. Note that email is a poor channel for high volume, so a broad filter can overwhelm the mailbox and hide the alerts that matter. Write the chosen level and groups in your runbook. This step is done when the filter values are documented and reviewed by the team that will receive the messages.
Restart the manager and confirm the mail daemon
Restart the Wazuh manager service so the new configuration loads, then check the service status and the manager log for errors from the email daemon, which is wazuh-maild. Look for connection refusals, authentication failures or TLS handshake errors. If the daemon does not start or logs repeated failures, correct the configuration before sending any test. Do not restart during a clustered change window without following the cluster steps your upgrade and operations process requires. This step is done when the manager reports running and the mail daemon logs show a successful connection to the relay.
Send a controlled test alert
Generate one known event that matches your filter, such as a test rule trigger agreed with the security team, and confirm that a single email reaches the intended mailbox. Use a test recipient first, not a distribution list that reaches many people. Note the time of the event, the time of receipt and the subject and body content. If no message arrives, check the manager log for the outcome of the send attempt and the relay log for rejections. This step is done when one controlled alert is delivered once, with the expected rule description and level in the body.
Verify delivery, spam handling and inbox placement
Confirm with the mail team that the message passed SPF, DKIM and DMARC checks at the receiving side and did not land in the spam folder for the recipients who will use it. Check the message headers for the authentication results. Ask the mail team whether the relay applies rate limits or quarantine rules to automated senders, since these can delay or drop alert bursts. If placement is poor, fix the sending domain records or the relay policy before widening the recipients. This step is done when headers show passing authentication results and the test message appears in the inbox of each intended recipient.
Review alert volume before widening scope
Run the configured filter for a period agreed with the security team and count the emails generated, grouped by rule and agent. Compare the volume with what the on-call team can read and act on. If volume is high, raise the level threshold, narrow the groups or move the noisy rules to the integrator for chat or paging workflows instead. Record the final settings and the reviewer's sign-off. This step is done when the volume has been reviewed against the team's capacity and the final filter values are approved and documented.
What the SMTP relay needs to accept Wazuh mail
Before you write any email_alerts configuration, the mail team needs to agree that a specific Wazuh server can hand messages to a relay host and have them accepted. Wazuh sends alert mail through the wazuh-maild daemon, which connects to an SMTP server you name in the configuration. The relay needs to be reachable from the Wazuh server on the port it listens on, and it needs a clear answer to one question: how does it trust the sender? The usual options are authentication with a service account the mail team controls, or an IP allowlist covering the Wazuh server's outbound address. Confirm which of these your relay supports and which one your security policy permits, because an open relay reachable from the Wazuh network is a risk you should not accept by default. Ask the mail team for the exact host name, port, and whether the relay expects an implicit or explicit TLS session.
Encryption and authentication settings must be confirmed against the Wazuh configuration reference for your release line, which lists the supported options in the Wazuh user manual, and against the relay's own policy. Do not assume that a setting present in one mail product works the same way in another. Ask the relay operator whether it requires TLS, which certificate authority signs its certificate, and whether the Wazuh server must trust that authority. Store any relay credentials in a location with restricted file permissions and rotate them under the same process you use for other service accounts.
Sender identity is the step most often skipped. Mail from the Wazuh server usually carries a sender address on a domain your organization owns, so the domain's DNS records must authorize the relay to send for it. Work with the DNS team to confirm that the SPF record includes the relay, that DKIM signing is enabled for the domain, and that the DMARC policy matches what you expect to see in reports. Without this alignment, receiving mail systems may quarantine alerts or reject them, and the failure can be silent. Finally, ask about rate limits and daily send quotas on the relay. A burst of alerts from a noisy rule can exceed them, so the relay team should tell you what happens when the limit is reached and whether your level and group filters need to keep volume within it.
Security risks in email alert configuration
Email alerting moves Wazuh data out of the systems you run, through a mail relay and into inboxes you may not govern. The cards below cover the places where that handoff goes wrong: the credentials that authenticate it, the content it carries, the people who receive it, the relay that accepts it and the configuration file that defines it.
SMTP credentials stored in config
The email_alerts block needs SMTP authentication details to reach the relay, and those details are often placed directly in the Wazuh configuration in clear text. Anyone who can read the file or its backups can then send mail as the alert sender. Check who can read the file on the Wazuh server, restrict the file to the account that runs the service, and use a dedicated relay account that can only send from the alert address.
Sensitive log data leaving the boundary
An alert email carries the full log text of the triggering event, which can include usernames, internal hostnames, IP addresses, file paths or fragments of application data. Once the message passes the relay, it may be stored by external mail providers and forwarded by recipients. Review sample alerts from your highest-volume rules and decide which fields must never appear in email, then route those alerts to an internal channel instead.
Recipient list without governance
Recipients are typically added as a comma-separated list in the configuration, and the list rarely has an owner, a review date or a removal step. Former staff, contractors and shared mailboxes with broad membership can keep receiving security data long after they should. Assign a named owner for the list, require a change request for each addition, and reconcile the list against your identity provider on a fixed schedule.
Mail relay trust and open relaying
The Wazuh server trusts the SMTP relay to accept its messages and to deliver them to the intended recipients only. A relay that allows unauthenticated submission from the network, or that is shared with systems that should not see security alerts, can be abused to send spoofed mail or to read mail traffic on an unencrypted hop. Confirm that the relay requires authentication from the Wazuh server address, that transport is encrypted, and that the relay's own logs are retained.
Unprotected ossec.conf file
The ossec.conf file controls where alerts go, which levels are sent, who receives them and how the mail server is reached, so changing it silently can redirect or suppress alerts. Its permissions and ownership determine who can make that change. Limit write access to the administrators who manage the server, keep the file under version control or configuration management, and alert on unexpected modifications through file integrity monitoring.
Wazuh user manualEmail alerts or the integrator for chat and paging
Email alerting in Wazuh is handled by the email_alerts settings in ossec.conf and the wazuh-maild daemon, which sends messages through an SMTP relay your organization controls. Email works well when the goal is a record that people can search later, such as a copy of high-severity alerts sent to a shared security mailbox or a periodic summary for a compliance file. It is less suited to alerts that need someone to take action within minutes, because a mailbox offers no built-in ownership, acknowledgement or escalation.
- Relay requirements: Confirm with your mail team which relay host, port and authentication method the Wazuh server may use, and whether the relay accepts messages from that server's address.
- Recipient design: Send to a distribution list or shared mailbox with a named owner, not to individuals who may be away.
- Volume control: Set the level threshold and rule group filters so that only the alerts a reviewer needs reach the inbox.
- Retention: Mail stored in personal or shared mailboxes is outside Wazuh's retention settings, so decide where the authoritative record lives.
- Delivery checks: Test with a known low-level alert and confirm that messages arrive, not just that the daemon runs.
Before going live, confirm the relay's sender and TLS requirements in your environment, and document who receives each alert class.
The Wazuh integrator is a separate mechanism from email. It forwards alerts to external tools through an integration script, and it is the usual choice when an alert must reach a chat channel or an on-call tool and be tracked to a response. Routing, acknowledgement and escalation generally live in the receiving tool, so the design work is about which alerts are sent, to which channel and with what context. The details of configuring specific integrations belong to the Wazuh integrations group rather than this page.
- Separate configuration: Integrations are configured in their own block of the server configuration, independent of the
email_alertssection. - Routing in the target tool: Paging policies, on-call schedules and escalation rules are set in the paging or chat product, so confirm those capabilities there.
- Filtering at the source: Limit forwarded alerts to a short list of rule IDs or high levels, since every forwarded alert can page a person.
- Credential handling: API tokens and webhook URLs should be stored and rotated under your secrets process, not pasted into shared notes.
- Failure visibility: Check how a failed delivery is logged and monitored, because a silent integration failure leaves no trail of a missed page.
Before relying on paging, test the full path from a triggering event to the on-call acknowledgement, and confirm the behavior with the integration's documentation.
Many teams send the same high-severity alert down both paths: a page to the responder and an email copy to the security mailbox for the record. This pattern works when each path has a clear purpose and the two do not generate duplicate noise. The risk is that the same event produces two alerts with different content, or that the email volume quietly trains reviewers to ignore it. A written split of responsibilities helps avoid both problems.
- Assign roles: Decide that the integrator handles time-sensitive alerts and email handles records and digests, and write that down.
- Align thresholds: Use level and group filters on each path so that a single event does not cross thresholds unintentionally.
- Keep one source of truth: Treat the Wazuh alert index and its retention as the authoritative record, with email as a convenience copy.
- Review volume together: Check both channels in the same review cycle so that tuning changes apply to both.
- Document ownership: Name who receives each path and who changes its configuration.
Confirm your mail and paging policies with the teams that will receive the messages before setting thresholds.
Limits to confirm in your environment
Email alerting depends on details that the Wazuh reference and your own tests must settle before anyone relies on the inbox. The cards below cover the settings your installed release accepts, how the mail daemon behaves when delivery fails, what your relay will throttle, and how a cluster presents the same alert. Answer each one with a test on a staging system.
Which email_alerts keys does 4.14 accept?
The email_alerts block in ossec.conf has a set of keys that changes between releases, and examples copied from older posts may not match the 4.14 line you run. Check the reference for your exact patch level, then confirm each key with a test alert. Record which keys are unsupported so your configuration review does not assume settings that the server silently ignores.
What does wazuh-maild guarantee?
The wazuh-maild daemon sends the mail, so its delivery behavior decides whether an alert reaches a person at all. Ask the vendor whether a message is retried after a failed SMTP connection, how long it waits, and whether anything is written to a log when a send fails. Treat the answers as unknown until you have forced a relay outage in a test and checked what arrived.
What will the relay throttle?
Your SMTP relay or mailbox provider may cap messages per minute, per day or per sender, and it may drop or delay the excess without telling Wazuh. Ask the relay owner for its limits and test a burst of alerts at your expected peak. Decide in advance which level and group combinations are high volume enough to need the integrator instead of email.
How do alerts appear in a cluster?
In a multi-node Wazuh server cluster, you need to know which node sends email and whether a failover moves that role to a different node. Confirm with the vendor whether the mail daemon runs on every node or only on the master, and whether duplicate messages can appear after a failover. Test by stopping the active node during a controlled alert and counting the messages received.
Does the relay accept Wazuh's sender and TLS settings?
Many relays require an authenticated sender, a specific TLS mode or an allowlisted source address before they accept mail from a server. Confirm which authentication method your relay needs and whether the Wazuh release supports it in the global settings. Check the certificate chain from the Wazuh server to the relay as part of the same test, because a failed handshake often looks like a silent drop.
Wazuh user manualQuestions buyers ask about Wazuh email alerting
Does Wazuh email alerting cost money to set up?
The self-hosted Wazuh software is open source with no license fee, so the cost of email alerting comes from people's time, access to a mail relay and testing. The main cost components are your Wazuh administrators' time to configure the email_alerts and global settings, your mail team's time to approve and allow a sender, and the time spent testing filters so alerts reach the right people without flooding them. Costs recur mainly through ongoing tuning of level and group filters and through changes to the relay. Ask any partner for a quote that lists each of these pieces separately, along with what is one-time and what recurs.
How long does it take to get Wazuh emails working?
There is no fixed duration, because the timeline depends mostly on how long your organization takes to provide relay access and approve a sender address. Configuration itself is usually a small part of the work. Plan for time to request a relay account or allowlisting, time for the mail team to review the sender, a test window where you confirm delivery and tune filters, and time to document the final setup. Confirm your mail team's approval process and change windows before you set a date, since those steps usually set the pace.
What does the work need from our mail and security teams?
The work needs an SMTP relay that Wazuh can reach from the server, a sender address your mail team approves, and credentials or relay rules that match your mail policy. Your security team should decide which alerts go to email, which recipients receive them and who is on call for each severity. You also need a test window where alerts can be generated safely and delivery confirmed at the recipient side. Ask your mail team to confirm how they handle authentication, TLS and rate limits for application senders before the build starts.
Can our own team set up Wazuh email alerts without a partner?
Yes, if your team already operates the Wazuh server and can work with your mail team. The configuration is straightforward, but the operational detail is in the filters and the relay. Your team needs to understand how the wazuh-maild daemon sends mail, how alert levels and rule groups select what gets sent, and how to test without generating false alarms. Teams with little Wazuh experience, or with strict change control on the mail relay, often find the approval and testing steps take the longest.
When should we bring in a partner for Wazuh alerting?
Bring in a partner when the alerting design affects several teams, when the mail relay requires formal review, or when alerts must reach people through more than one channel. A partner is also useful when you need documented evidence for an assessment or a tested runbook for on-call staff. DeployOpen plans, implements, documents and supports open-source platforms in infrastructure you control, so an engagement can cover the email settings, filter design, testing and handover. Scope and deliverables are agreed in writing before work starts.
Should we use email alerts or the integrator for paging and chat?
Use email for records, digests and recipients who need a written copy, and use the integrator for time-sensitive paging or chat where someone must act quickly. Email depends on the relay and mailbox delivery, which can be delayed by mail policy, so it is a weak choice as the only path for urgent incidents. Many teams send high-severity alerts through an integration with their on-call tool and keep email for broader distribution. Confirm the delivery expectations for each severity with your incident response owner.
What are the common reasons Wazuh emails do not arrive?
The most common causes are an SMTP relay that rejects the Wazuh server's address, a sender that is not approved, missing or incorrect TLS or authentication settings, and filters that select no alerts at the level you expect. Alert volume can also trigger rate limits or spam filtering at the relay. Check the Wazuh server logs, confirm relay connectivity from the server, and test with a controlled alert before changing filters. Document the working values so future changes do not break delivery.
Does Wazuh email alerting need extra security controls?
Yes. Email alerts can contain sensitive event details, so restrict recipients to people who need that data, avoid sending full event content to personal mailboxes, and confirm that the relay encrypts connections. Store SMTP credentials securely, limit who can read the configuration file, and review sender permissions with your mail team. Record who approved the relay and recipients so the setup can be shown during an audit or security review.
Tuning filters so email stays useful
Start with high-severity alerts and widen the filter only when you have evidence it is safe. Wazuh rules carry a severity level, and the email_alerts configuration lets you set a minimum level and restrict delivery to selected rule groups. A narrow first filter, such as only the highest levels from the groups that matter most to your environment, keeps the inbox readable while the team learns what normal traffic looks like. Lowering the threshold later is a small, reviewable change. Starting broad and then trying to silence a flood of messages tends to get the whole mailbox ignored, which defeats the purpose of alerting.
Review volume after a week of real traffic, not on the first day. Use the dashboard and the alerts index to count what the filter actually delivered, grouped by rule ID, agent and level. Ask which rules fired most often, whether any repeated alert is a known benign event on a given host, and whether a level you excluded has produced events your analysts would have wanted to see. Record each change you make to the filter with its reason, so auditors and the next administrator can trace why an alert class is or is not emailed. Confirm the exact field names and filter syntax against the Wazuh user manual for your release before editing the configuration.
Fix noisy alerts at the source when the noise comes from the rule itself. Threshold and group filters only decide what leaves the server, so a rule that fires constantly will still be indexed and still consume analyst attention in the dashboard. Where a rule misfires because of a decoder gap or an overly broad match, the correction belongs in custom rules and decoders, which is covered in the Wazuh rules and decoders group. Use email filtering to control delivery and rule tuning to control detection quality, and keep the two changes separate so you can tell which one solved the problem.
How DeployOpen scopes and delivers Wazuh email alerting
DeployOpen plans and implements Wazuh email alerting inside your own infrastructure, starting from the alert categories your security and operations teams need to receive. The work covers the email_alerts and global settings in the Wazuh server configuration, the SMTP relay path, level and group filters, and a tested handover to the people who will receive and act on the mail.
How we scope
- Inventory which alert levels, rule groups and agent groups should trigger email, and which belong in the dashboard only.
- Confirm the SMTP relay, sending domain, TLS requirements and recipient mailboxes with your mail administrators before build starts.
- Agree in writing which channels are in scope, including whether chat or paging belongs to the integrator work instead.
How we build
- Configure the email_alerts and global sections of the Wazuh server configuration and the wazuh-maild daemon on your Wazuh server.
- Set level and group filters so the mailbox receives a small, reviewed set of alerts rather than the full event stream.
- Test delivery with controlled alerts, check that messages reach recipients through your relay, and record the configuration changes made.
How we hand over
- Deliver a written configuration record covering filters, relay settings, recipients and the reasons for each threshold.
- Walk your operations team through how to change filters, rotate relay credentials and add recipients under your change control.
- Document a test procedure your team can repeat after upgrades or relay changes.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as a retainer if your alert routing changes over time.
- Ask any partner for a quote built from the written scope, including what recurs after handover and who maintains the relay.

