Configuration of notification email in wazuh

108 views
Skip to first unread message

Ayoub MM

unread,
Jan 30, 2023, 3:05:44 AM1/30/23
to Wazuh mailing list
Hello community,
Hope you'e doing well

I try to configure smtp in wazuh by using the officiel guide of wazuh https://documentation.wazuh.com/current/user-manual/manager/manual-email-report/smtp-authentication.html

i create a new boite email with password i use his password in  echo [smtp.gmail.com]:587 USER...@gmail.com:PASSWORD > /etc/postfix/sasl_passwd

but still cant get anythings when i use the the command  echo "Test mail from postfix" | mail -s "Test Postfix" -r "y...@example.com" y...@example.com

can anyone assist me to configure the smtp notification ?

Thanks in advance.

Regards,

F Tux

unread,
Jan 30, 2023, 5:10:16 AM1/30/23
to Wazuh mailing list
Hi There!

We are currently in the process of reviewing your linked documentation article, since it doesn't account for the initial setup wizard some distributions will run on the postfix package.

Here you can find a link to the report:

Now, for gmail accounts, you usually need to set up an App Password, since gmail forces MFA on regular logins these days, and you cannot use MFA with postfix:

Once you have created the app password, you can go back to step 3 of the guide.

Let me know if this helped. If you continue to face issues, you can send me a copy of the /etc/postfix/main.cf file for review.

Regards,
Federico
Reply all
Reply to author
Forward
0 new messages