Email SMTP port setting

397 views
Skip to first unread message

Steven Denham

unread,
Oct 5, 2023, 3:22:05 AM10/5/23
to Wazuh | Mailing List
Hello,

We are trying to set up email alerts and have added the settings in the config file, but it seems to be giving us errors. I cannot find anywhere how to specify the port for the SMTP server. 

We have tried both this:
        <smtp_server>192.168.100.25:2500</smtp_server>
Which gives us an unable to connect to server error message in the log.
And this:
        <smtp_server>192.168.100.25</smtp_server>
        <smtp_port>2500</smtp_port>
Which seems to prevent the service from starting at all.

Does anyone know the correct configuration for this?

Thanks,
Steve

Harshal Paliwal

unread,
Oct 5, 2023, 4:56:02 AM10/5/23
to Wazuh | Mailing List
Hi Steven,
Thanks for using the Wazuh.

Inside the <smtp_server> tag you can provide only below values. you can't add the port like this or there is no <smtp_port> tag.
  • Valid hostname or IP address.

  • Full path to a sendmail-like executable.


FYI, Wazuh email alerts does not support SMTP servers with authentication such as Gmail. However, you can use a server relay, like Postfix, to send these emails.
You can provide this port into the SMTP configuration.

Reference:

I hope this information helps you. Please feel free to reach out to us.
Regards,
Reply all
Reply to author
Forward
0 new messages