Hi Rakesh, In case that your SMTP server has authentication (like Gmail), it is necessary to configure a server relay <https://documentation.wazuh.com/current/user-manual/manager/output-options/manual-email-report/smtp_authentication.html#smtp-authentication> because OSSEC does not support it by default. However, if you are using Gmail, I think it is possible to use directly the Google SMTP relay service: https://support.google.com/a/answer/176600?hl=en
Anyway, your OSSEC configuration looks right (if msmtp is working properly). Did you check the* ossec.log*?. It may has useful information. Also, review the msmtp logs. I hope it helps. Regards. On Friday, June 2, 2017 at 11:58:07 PM UTC+2, Rakesh Goyal wrote: > > I have configured msmtp > > # Set defaults. >> defaults >> # Enable or disable TLS/SSL encryption. >> tls on >> tls_starttls on >> tls_trust_file /etc/ssl/certs/ca-certificates.crt >> # Setup WP account's settings. >> account el-notification >> domain localhost >> host smtp.mandrillapp.com >> port 587 >> auth login >> user admin@***** >> password ***** >> from admin@**** >> logfile /var/log/msmtp/msmtp.log >> account default : el-notification > > > I am able to send mail using msmtp. > > How can I use msmtp with ossec without installing sendmail or postfix ? > > <global> >> <email_notification>yes</email_notification> >> <email_to>rakesh.goyal@******</email_to> >> <!-- <smtp_server>aspmx.l.google.com.</smtp_server> --> >> <!-- <email_from>ossecm@ip-172-31-14-90</email_from> --> >> <email_from>root@localhost</email_from> >> <smtp_server>localhost</smtp_server> >> </global> > > > I tried different options but not able to send mail using msmtp. Mails > are going with aspmx.l.google.com but I want to send mail through > smtp.mandrillapp.com. Any way of doing this in ossec 2.8.3 version ? > > > -- --- You received this message because you are subscribed to the Google Groups "ossec-list" group. To unsubscribe from this group and stop receiving emails from it, send an email to ossec-list+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.