Changing the from e-mail address in Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
povachon
Posts: 44
Joined: Thu Apr 10, 2014 9:24 am
Contact:

Changing the from e-mail address in Nagios

Post by povachon »

HI there,

I need to change the from email in order to be routable in outside network. I know i have to change the host notify command and service notify command but i not able to figure it out what to change in the command line.

Here the from email: [email protected]
I need to have: [email protected]

Here my DNS configuration :

Host name:[email protected]
DNS search path: qsl.com

Regard
PO
Stuart Watts
Posts: 40
Joined: Wed Sep 25, 2013 7:01 am

Re: Changing the from e-mail address in Nagios

Post by Stuart Watts »

Hi PO

How does your Nagios server send mail? Directly ("Sendmail" in Admin->Manage Email Settings), or through a relay ("SMTP" in Admin->Manage Email Settings)?

You can have the MTA (local sendmail or the remote SMTP server) rewrite sender fields as the mail is sent - I may be over-complicating things, but I can't think of a way to do this through Nagios!
povachon
Posts: 44
Joined: Thu Apr 10, 2014 9:24 am
Contact:

Re: Changing the from e-mail address in Nagios

Post by povachon »

Directly Sendmail !

Regard
PO
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Changing the from e-mail address in Nagios

Post by slansing »

MTA configuration is not a Nagios issue, if you have your routing set up properly you should be able to get through. Change the address you are sending to/from depending on what you are trying to do in the XI interface where Stuart mentioned. If you need to change the address you are sending to, you will need to alter your contact or user email settings for the new address. I recommend you contact the sendmail team via their support channels, or search for some tutorials, specifically MX records if you really are looking to change your MTA's settings:

http://rimuhosting.com/support/settingu ... a=sendmail
povachon
Posts: 44
Joined: Thu Apr 10, 2014 9:24 am
Contact:

Re: Changing the from e-mail address in Nagios

Post by povachon »

So there no way to change my outgoing sender from [email protected] to [email protected]. Or you just dont know how to do it.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Changing the from e-mail address in Nagios

Post by tmcdonald »

You should be able to go to Admin -> Manage Email Settings and change the "Send Mail From" field. Is that not working?
Former Nagios employee
povachon
Posts: 44
Joined: Thu Apr 10, 2014 9:24 am
Contact:

Re: Changing the from e-mail address in Nagios

Post by povachon »

No it doesnt ! I really need to get my ourgoing sender to this adresse. [email protected]
Im going to try with the smtp if it use the Send Mail From:

Regard
PO
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Changing the from e-mail address in Nagios

Post by slansing »

Well, that is where the address is pulled from.... are you sure you are not using SMTP? You are changing the address on the page we all mentioned, and you are saving your address correct? How are you testing that this does not work? If you have mail in the queue that is being sent out, it's not going to change the address they were already sent from, are you sending test emails?

What did you change in your commands? Or did you not do that yet.
povachon
Posts: 44
Joined: Thu Apr 10, 2014 9:24 am
Contact:

Re: Changing the from e-mail address in Nagios

Post by povachon »

I allway use sendmail and all my notification come from [email protected]
When i make a test from the that same page the outgoing adresse is [email protected]

I didnt change anything from command yet ! Still default setting.

Let me try to smtp, will see if it solve my problem
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Changing the from e-mail address in Nagios

Post by slansing »

Yes, but have you tested actual notifications from your hosts/services yet? With this address?

Are you using users for notifications, or contacts?

What address is shown in Admin > Manage System Settings > Administrator Email Address?
Locked