ossec / ossec-hids

OSSEC is an Open Source Host-based Intrusion Detection System that performs log analysis, file integrity checking, policy monitoring, rootkit detection, real-time alerting and active response.
http://www.ossec.net
Other
4.42k stars 1.03k forks source link

ossec-hids-3.30 How to configure the mail port to 465? #1805

Open ckgmg opened 4 years ago

ckgmg commented 4 years ago
yes ****@***.com smtp.exmail.qq.com ossecm@ossec-server

the smtp.exmail.qq.com use 465 port,How to configure the mail port to 465?

ddpbsd commented 4 years ago

In src/os_maild/sendmail.c change the following line

socket = OS_ConnectTCP(SMTP_DEFAULT_PORT, mail->smtpserver);

to

socket = OS_ConnectTCP(465, mail->smtpserver);

Note: This won't automagically support tls or auth though.

ckgmg commented 4 years ago

All of the above schemes have been tested. Is there a verification statement about whether QQ enterprises post or report errors