Page 1 of 2
Changing the from e-mail address in Nagios
Posted: Fri May 09, 2014 7:42 am
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
Re: Changing the from e-mail address in Nagios
Posted: Fri May 09, 2014 9:10 am
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!
Re: Changing the from e-mail address in Nagios
Posted: Fri May 09, 2014 9:15 am
by povachon
Directly Sendmail !
Regard
PO
Re: Changing the from e-mail address in Nagios
Posted: Fri May 09, 2014 9:23 am
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
Re: Changing the from e-mail address in Nagios
Posted: Fri May 09, 2014 9:32 am
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.
Re: Changing the from e-mail address in Nagios
Posted: Fri May 09, 2014 9:36 am
by tmcdonald
You should be able to go to Admin -> Manage Email Settings and change the "Send Mail From" field. Is that not working?
Re: Changing the from e-mail address in Nagios
Posted: Fri May 09, 2014 9:39 am
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
Re: Changing the from e-mail address in Nagios
Posted: Fri May 09, 2014 9:48 am
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.
Re: Changing the from e-mail address in Nagios
Posted: Fri May 09, 2014 10:01 am
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
Re: Changing the from e-mail address in Nagios
Posted: Fri May 09, 2014 10:13 am
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?