I am getting an error when trying to get the ossec features: email notification. I used my Gmail account for this case. I have tried this tutorial,
but i couldn't get any email from that. I got the error log inside with warn Mail not accepted by server
. It was located at /var/ossec/logs/ossec.log
you could see the log below.
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$
Here are my configuration for email in ossec.conf
located at /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>
I have filled my <smtp_server>
to smtp.gmail.com
. And nothing's change. Its still got the error message at my ossec.log
How can i fix this ? I installing this application on Ubuntu Server: 16.04