Hi Wazuh Community Team,
I have Wazuh running on an K8S cluster. Email alerts are configured using Gmail SMTP with Postfix.
First, I set up Postfix in a separate pod and tested it with echo "Test mail from postfix" | mail -s "Test Postfix" -r "<CONFIGURED_EMAIL>" <RECEIVER_EMAIL> – it worked fine.
Then I configured Wazuh to use that relay by setting <smtp_server>postfix-relay.wazuh.svc.cluster.local</smtp_server> in ossec.conf, but Wazuh could not connect to the service IP.
After that, I installed Postfix directly inside the Wazuh manager pod, set <smtp_server>localhost</smtp_server>, restarted Postfix and Wazuh services, and tested again with the same command. No emails were sent, and there was no error. Inside the manager pod, /var/log/maillog is also missing, so I cannot check Postfix logs.
Below are my configuration details:
/var/ossec/etc/ossec.conf (attached)
/etc/postfix/
main.cf (attached)
Output of ls -ll /etc/postfix/sasl_passwd.db (attached)
I followed the official Wazuh email alert documentation.
https://documentation.wazuh.com/current/user-manual/manager/alert-management.html#alert-managementCould you please help me understand why Wazuh manager pod is not sending any email alerts, and why postfix logs are missing?
Thanks & Regards,
kishor vaishanav
Disclaimer
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. INTECH Creative Services Pvt. Ltd. will not accept any liability in respect of such communication, and the employee responsible will be personally liable for any damages or other liability arising.