<global>...
<email_notification>yes</email_notification><smtp_server>localhost</smtp_server><email_from>oss...@localhost.localdomain</email_from><email_to>my_e...@wazuh.com</email_to><email_maxperhour>12</email_maxperhour></global>
<alerts>
<email_alert_level>X</email_alert_level>
Once the Wazuh manager is configured, we have to configure the MTA that the host will use to forward emails. First of all, we have to install sendmail (let see an example for CentOS):</alerts>
yum install sendmail sendmail-cf
To configure sendmail, we have to edit the file "/etc/mail/sendmail.mc" with particular attention to the following fields:
# Define the SMTP server for your email
dnl define(`SMART_HOST', `aspmx.l.google.com.')dnl
# Define the listening address (it has to be the loopback address in our case)
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
After that, we use the Makefile located at /etc/mail to generate the new configuration file:# The hostname of the manager
LOCAL_DOMAIN(`localhost.localdomain')dnl
make -C /etc/mail
Finally, we have to restart the service:
systemctl restart sendmail
At this point you should be able to receive the generated alerts in your email, you can test your configuration using the following command:
echo "Test mail from postfix" | mail -s "Test Postfix" you@example.com
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+unsubscribe@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.
Visit this group at https://groups.google.com/group/wazuh.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/f06c750d-ec58-4db0-9423-eb46424a7bc9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.