Hi,
If you have Postfix installed then all you have to do is configure it to relay the mail to your company's mailserver. Is the Nagios server on the same network as the mailserver? Configuration of Postfix for this is done in the main.cf configuration file. I'm not familiar with CentOS but I think it should be in /etc/postfix directory.
In order to relay your mails from Nagios to your mailserver in your main.cf file you should have something like this:
Code:
myhostname = yournagios.domainname.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = yourmailserver.domainname.com, localhost, yournagios.domainname.com
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = localhost
relay_domains = yournagios.domainname.com
That should get you started sending mail to your mailserver. Of course you'll have to tell your mailserver to allow relaying from your nagios server in order to work.
Kind regards,
Eric