Hello Aayush,
Your setup should work. Wazuh does not support SMTP authentication directly, so using Postfix as a relay is the correct method. As long as the external SMTP server allows relay from your server on port 25 without auth, this configuration is valid.
If you still have issues, you can verify the following:
If Postfix can send without password, then Wazuh will send without password as well.
Regards,