尝试获取 ossec 功能时出现错误:电子邮件通知。在这种情况下,我使用了我的 Gmail 帐户。我已经尝试过本教程,但我无法从中收到任何电子邮件。我得到了带有 warn 的错误日志Mail not accepted by server
。它位于/var/ossec/logs/ossec.log
您可以看到下面的日志。
2017/10/06 20:05:18 os_sendmail(1764): WARN: Mail from not accepted by server
2017/10/06 20:05:18 ossec-maild(1223): ERROR: Error Sending email to 74.125.200$
2017/10/06 20:05:58 ossec-syscheckd: INFO: Starting syscheck scan (forwarding d$
2017/10/06 20:05:58 ossec-syscheckd: INFO: Starting syscheck database (pre-scan$
2017/10/06 20:05:58 ossec-syscheckd: INFO: Initializing real time file monitori$
这是我的电子邮件配置,ossec.conf
位于/var/ossec/etc/ossec.conf
<global>
<email_notification>yes</email_notification>
<email_to>myrealemailaccount@gmail.com</email_to>
<smtp_server>smtp.gmail.com.</smtp_server>
<email_from>ossecm@gantz-X450CC</email_from>
<email_maxperhour>20</email_maxperhour>
<email_from>myrealemailaccount@gmail.com</email_from>
</global>
我已经填写了我<smtp_server>
的 to smtp.gmail.com
。什么都没有改变。它仍然在我的ossec.log
我怎样才能解决这个问题 ?我安装这个应用程序Ubuntu Server: 16.04