Jump to content

Recommended Posts

Posted

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

myhostname = ServerNagios.domaine.com

 

mydestination

mydestination = $myhostname, ServerNagios.domaine.com , localhost.$mydomain, localhost

 

relayhost

#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]

 

Please can you help me to solve this big problme ,I will be thankful.

 

many thanks

Posted
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?
Posted
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.
Posted
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.

 

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.

Posted
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.

 

execuse me i can use our exchange server so nagios server sends messages to exchange server ???

 

thank you

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

 

yes i already installed postfix ,but the problem in the configuration /etc/postfix/main.cf .in the link that you sent me the configuration is more complicate

 

thank you

Posted
yes i already installed postfix ,but the problem in the configuration /etc/postfix/main.cf .in the link that you sent me the configuration is more complicate

 

thank you

 

Yes, to mail via another SMTP server is more complicated - especially a server like Exchange, which will require authentication and TLS. There's not much more I can do, as that link covers pretty much everything...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...