Page 1 of 1
notification emails
Posted: Thu May 15, 2014 6:47 am
by ssaammaa
i worke with eyesofnetwork (centos 6.4) i want to configure postfix in order to receive mails in my adress gmail
how can i do it ?
and is there a method to configure notification through the graphic interface eonweb ?
Re: notification emails
Posted: Thu May 15, 2014 3:17 pm
by sreinhardt
While nagios can use postfix as one of many different mailing options, it is outside of the scope of our forums to configure the actual server. However once you do, you should basically be able to set it as your local mta and nagios will use this by default. Are you having any particular issues with the configuration or simply looking for help getting started?
Re: notification emails
Posted: Thu May 15, 2014 3:28 pm
by ssaammaa
i get started with the notification of main.cf of postfix. i added these lignes
Code: Select all
myhostname = localhost.localdomain
mydomain = localdomain
myorigin = $myhostname
default_transport = smtp
relayhost = 74.125.232.149
after this configuration i restart the service postfix using the command
the adresse 74.125.232.149 is the adress of gmail.com (i am not sure if it is correct but i found that the value of relayhost should be the adresse of your mail )
in addition to that , i add my e-mail in the file contacts.cfg of nagios
i restart the nagios with the commande
when i test the command
i receive that i had a new message in the file /var/spool/mail/root
if i acceed to this file i receive undelivered message retur to the sender
what can i do to receive e-mails in my adress gmail ?
please help me

Re: notification emails
Posted: Thu May 15, 2014 5:27 pm
by abrist
Could you not send the mail directly with sendmail?
Have you tried asking for postfix help on their mailing list:
http://postfix.1071664.n5.nabble.com/Po ... rs-f2.html
Re: notification emails
Posted: Thu May 15, 2014 7:05 pm
by ssaammaa
the command sendmail is not working
what can i do to receive e-mails :/
Re: notification emails
Posted: Fri May 16, 2014 10:29 am
by tmcdonald
Like abrist said, you might have better luck on the postfix forums. We really don't do much with it aside from the automatic installation, so unless configs have been modified we tend not to get questions on it. I would suggest looking in your /var/log/maillog for any hints as to what might not be working.