Am Donnerstag, 8. September 2016 14:45:44 UTC+2 schrieb dan (ddpbsd):
>
> On Thu, Sep 8, 2016 at 8:34 AM, Dominik <[email protected] <javascript:>> 
> wrote: 
> > Hi there, 
> > I just upgraded from OSSEC 2.8.3 to 2.9.0rc3. Since, I'm getting the 
> > following error: 
> > 
> > 2016/09/08 14:04:46 getaddrinfo: Name or service not known 
> > 2016/09/08 14:04:46 ossec-maild(1223): ERROR: Error Sending email to 
> > localhost (smtp server) 
> > 
> > 
> > The relevant configuration: 
> > 
> >   <global> 
> >     <email_notification>yes</email_notification> 
> >     <email_to>[email protected] <javascript:></email_to> 
> >     <smtp_server>localhost</smtp_server> 
> >     <email_from>[email protected] <javascript:></email_from> 
> >     <logall>yes</logall> 
> >   </global> 
> > 
> > 
> > Any idea why this could happen? 
> > 
>
> The name lookup is failing for some reason. You can try tracking it 
> down or change it to 127.0.0.1. 
>

Solution A:
It's working with the change to 127.0.0.1. 
 
Solution B:
I suspect that maild runs in a chroot environment (would this be /var/ossec 
- the installation dir?)

If the file /etc/hosts is not present in this chroot environment, localhost 
can not be resolved.

In any case, it also works with the localhost entry if I copy /etc/hosts to 
/var/ossec/etc/hosts

Copying /etc/hosts during installation would avoid similar problems.

Greetings
Dominik

>
> > Thanks 
> > Dominik 
> > 
> > -- 
> > 
> > --- 
> > 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 [email protected] <javascript:>. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to