hello,i have written in ossec.conf like
<global>
<email_notification>yes</email_notification>
<email_to>[email protected]</email_to>
<smtp_server>192.168.1.23</smtp_server>
<email_from>gmail-smtp-in.l.google.com</email_from>
</global>
Is it correct or not?
On Wednesday, 7 March 2012 19:47:33 UTC+5:30, Daniel Cid wrote:
>
> To send the emails to a gmail address you have to use one of the MX
> hosts from gmail.com:
>
> $ host -t MX gmail.com
> gmail.com mail is handled by 20 alt2.gmail-smtp-in.l.google.com.
> gmail.com mail is handled by 30 alt3.gmail-smtp-in.l.google.com.
> gmail.com mail is handled by 40 alt4.gmail-smtp-in.l.google.com.
> gmail.com mail is handled by 5 gmail-smtp-in.l.google.com.
> gmail.com mail is handled by 10 alt1.gmail-smtp-in.l.google.com.
>
> Change the smtp server to gmail-smtp-in.l.google.com and it should work.
>
> *also make sure that your email from is a valid address.
>
> Thanks,
>
> --
> Daniel B. Cid
> http://dcid.me
>
> On Wed, Mar 7, 2012 at 6:27 AM, <[email protected]> wrote:
> > hi, all.
> > I config my ossec like this:
> > <global>
> > <email_notification>yes</email_notification>
> > <email_to>[email protected]</email_to>
> > <smtp_server>smtp.gmail.com</smtp_server>
> > <email_from>ossec@jack-ubuntu-desktop</email_from>
> > </global>
> >
> > <alerts>
> > <log_alert_level>1</log_alert_level>
> > <email_alert_level>1</email_alert_level>
> > </alerts>
> > but I didn't receive any email.
> > Does anyone know where the problem probability be?
> > Tks!
>
>