Hello everyone,
I am having trouble with email alerts to Outlook.
I am using
ossec.conf like this:
<global>
<jsonout_output>yes</jsonout_output>
<alerts_log>yes</alerts_log>
<logall>yes</logall>
<logall_json>yes</logall_json>
<email_notification>yes</email_notification>
<smtp_server>
smtp.office365.com</smtp_server>
<email_from>
no-r...@example.com</email_from>
<email_to>
x...@example.com</email_to>
<email_maxperhour>12</email_maxperhour>
<email_log_source>alerts.log</email_log_source>
<agents_disconnection_time>15m</agents_disconnection_time>
<agents_disconnection_alert_time>0</agents_disconnection_alert_time>
<update_check>yes</update_check>
</global>
<email_alerts>
<email_to>
x...@example.com</email_to>
<level>7</level>
<rule_id>100500, 100501, 100508, 100520, 100521, 100530, 100531</rule_id>
<do_not_delay/>
</email_alerts>
I have used the command and it went to my mail
echo “Test mail from postfix” | mail -s “HALLO AR” -r no-r...@example.com x...@example.comThe problem is that the alert based on
rule.id does not appear, even though
rule.id has been triggered in Wazuh Manager
Translated with DeepL.com (free version)