Hi
I have a problem i can't receive notification by email (when one server or service down that i do it manualy just for the test) .
I installed mailx and postfix under Fedora10 .
Now i think the problem is in the /etc/postfix/main.cf because i think i should modify just this three parametre if i m right .
myhostname
mydestinationCode:myhostname = ServerNagios.domaine.com
relayhostCode:mydestination = $myhostname, ServerNagios.domaine.com , localhost.$mydomain, localhost
Please can you help me to solve this big problme ,I will be thankful.Code:#relayhost = $mydomain #relayhost = [gateway.my.domain] #relayhost = [mailserver.isp.tld] #relayhost = uucphost #relayhost = [an.ip.add.ress]
many thanks

Ok, from the look of that, you're hoping to mail direct out to the recipients. Does your ISP allow that? Or are they expecting you to relay all mail through their own SMTP server?
I don't think so , that i need That is, my server does not store the mailboxes of users, it only transmits messages to the SMTP server, which manages the boxes.
Can someone help me please
thank you
Have you specified the SMTP server?

Ok. The way you need to set it up is as such:
1. Nagios server sends messages to
2. Local postfix server which sends messages to
3. Your SMTP server.
An example of how to set up Postfix to relay mail through an SMTP server can be found here:
Send Mail Postfix through Gmail’s SMTP on a Ubuntu LTS Server
This is sending via a TLS secured SMTP server, with authentication. You may need to alter accordingly if you don't require a secure connection or authentication.

You can, but you still need to set up postfix to connect to the exchange SMTP server, as with that link I provided.

There are currently 1 users browsing this thread. (0 members and 1 guests)