sendmail configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mroter
Posts: 80
Joined: Sun Apr 29, 2012 12:43 pm

sendmail configuration

Post by mroter »

Hi
we want to use sendmail due to formatting plugin we use.
It was working for few months but stopped working.
We can send mail via smtp to our SMTP relay.
when we use sendmail the mail go to public SMTP relay (e.g.mail.global.frontbridge.com ). How can we configure it?
(didn't find /etc/mail etc.)

Thanks
Matty
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: sendmail configuration

Post by abrist »

This can be a can of worms if you need the old core handlers instead of the XI php mailer. It will require you to configure your mta and/or create custom notification commands. The following link will give you a rough idea of how to do this, just note that you do not need to use the blogs sendEmail binary, you just need to give the correct path to sendmail.
http://danxlog.blogspot.com/2010/07/nag ... -send.html
As most centos installations actually use postfix for the mta, you may have to look at configuring postfix to send to an snmp relay. You can discover which mta you use on centos/redhat systems with:

Code: Select all

alternatives  --display mta
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked