<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
OK, i have put in /etc/aliases:<br>
<i>root:           <a class="moz-txt-link-abbreviated" href="mailto:cosmin.neagu@omnilogic.ro">cosmin.neagu@omnilogic.ro</a>, \root</i><br>
<br>
The email account in Thunderbird has outgoing smtp server:
mail2.omnilogic.ro:25<br>
Also Lyle Giese gave me some more tips on how to configure
/etc/postfix/main. This is how postfix are configured now:<br>
<br>
/etc/postfix/main.cfg:                                      
//everything else is left unchanged.<br>
<i>myhostname = mail2.omnilogic.ro<br>
</i><i>mydomain = omnilogic.ro</i><br>
<i>myorigin = $mydomain</i><br>
<i>mydestination = $myhostname, localhost.$mydomain, localhost,
$mydomain<br>
smtp_sasl_auth_enable = yes<br>
smtp_sasl_security_options =<br>
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd<br>
transport_maps = hash:/etc/postfix/transport</i><br>
<i>relayhost =</i><br>
<br>
<br>
/etc/postfix/transport<br>
<i>omnilogic.ro      :<br>
.omnilogic.ro     :<br>
*                smtp:[mail2.omnilogic.ro]:25</i><br>
<br>
/etc/postfix/sasl_passwd:<br>
<i>webmail.omnilogic.ro    <a class="moz-txt-link-abbreviated"
 href="mailto:cosmin.neagu@omnilogic.ro:***">cosmin.neagu@omnilogic.ro:***</a></i><i><br>
</i><br>
I have attached the 2 configs that i thing is relevant to Nagios
host/service configurations.<br>
<br>
And regarding your last advice, i have no clue on how to configure my
email client to check the email account on the nagios machine...don't i
need a mail server on nagios machine for that?<br>
<br>
So...can anyone tell me what is missing, or point me to some
step-by-step documentation?<br>
<br>
<br>
<br>
***************************************************************************<br>
Just before pressing SEND, Lyle gave me some more hints, and now it
working, i can receive mails.<br>
These line needed to be added in /etc/postfix/transport:<br>
mail2.omnilogic.ro      :<br>
.mail2.omnilogic.ro     :<br>
*             smtp:[mail2.omnilogic.ro]:25<br>
<br>
Thank allot Lyle<br>
<br>
<br>
Michael Saldivar wrote:
<blockquote
 cite="mid:e69a0c510911170750o30490b69mf48e74981c250926@mail.gmail.com"
 type="cite">
  <div class="gmail_quote">On Tue, Nov 17, 2009 at 2:36 AM, Cosmin
Neagu <span dir="ltr"><<a moz-do-not-send="true"
 href="mailto:cosmin.neagu@omnilogic.ro">cosmin.neagu@omnilogic.ro</a>></span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello
everybody,<br>
 From what i see from commands.cfg, by default it tries to send email<br>
with: /usr/bin/mail -s.<br>
But the email ends up in a local folder /var/mail/cosmin.<br>
Can anyone help me with some documentation or some advice on how can i<br>
make nagios send emails?<br>
Thanks.<br>
    <br>
  </blockquote>
  <div><br>
  </div>
  <div>Looks like it is sending mail, and that mail is being delivered
locally.   When you configured Nagios to send e-mail, what e-mail
address did you tell it to send to?</div>
  <div><br>
  </div>
  <div>Also, look for a file called /etc/aliases.  Open it, and see if
there is a line like:</div>
  <div><br>
  </div>
  <div>root:          cosmin</div>
  </div>
  <div><br>
  </div>
The name on the left may match the e-mail address you gave nagios, and
the aliases file is re-directing that mail to the local user cosmin.
 Replace cosmin with an e-mail address on a different domain.  Or
modify Nagios to send to a an e-mail address on a domain different than
the local machine.  Or configure the e-mail client on your computer to
check the e-mail account on your Nagios machine.
  <div><br>
-- <br>
Mike <br>
  </div>
</blockquote>
</body>
</html>