Hello,
As far as the config you shared, it looks like there's a connectivity issue between Wazuh and PostFix. Therefore reachability, certificates and auth issues may arise.
You mentioned you are using Wazuh inside a docker container.
IMPORTANT: We are dealing now with a very specific issue, PLEASE take time to overview EVERY point here and reply with as much information as possible.
If you followed the steps of the Official Wazuh Documentation and it's not yet working properly, we have to find what's the problem.
1. Is the PostFix relay server installed in the same container as the Manager is running on? I mean, why would you need to set mynetwork=
127.0.0.0/8 172.17.0.0/16 with two networks?
2. If postfix server is in another container, did you make sure Wazuh Manager host can reach it at network level?
3. Can you check if the file /var/log/mail.log exists? Why connection refused? Are you using the right user permissions and terminal access?
4. Can you share the output of postconf -n where postfix is installed?
5. Please check
postfix basic conf in the section
What clients to relay mail from to match your setup.
Thank you, please overview every point and come back with detailed information. Thank you again.
Regards,
Jorge.