Hi
Daniel
I changed the smtp server following your suggestion. It works very well now!
Thank you very much!
Jack

On Wed, Mar 7, 2012 at 10:17 PM, Daniel Cid <[email protected]> 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!
>

Reply via email to