Customize the email notification "send from" for Contacts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
meganwilliford
Posts: 101
Joined: Tue Aug 06, 2019 7:49 am

Customize the email notification "send from" for Contacts

Post by meganwilliford »

Why when an email notification is sent to a contact without an associated user it doesn't use the Outbound Send From email setting in the Admin > System Config settings?

These notifications sent to contacts always come from a name with a nagios@<nagios xi host name> and not from the defined Send From email.

This is the Send From setting that gets used for notifications to a User:
2021-09-17 12_01_25-Window.png
This is what the From line looks like for a notification sent to a Contact without a User:
2021-09-17 12_04_33-Start.png
We need the from line for a notification sent to a contact without a user to be the same as the configured send from email setting and can't figure out where to set this. Where are we able to edit this? Also, we do not want this contact set up as a user.

Thank you!
You do not have the required permissions to view the files attached to this post.
meganwilliford
Posts: 101
Joined: Tue Aug 06, 2019 7:49 am

Re: Customize the email notification "send from" for Contact

Post by meganwilliford »

Alright as soon as I posted that, I think I found the solution in this thread: https://support.nagios.com/forum/viewto ... il#p332464.

I'll try it out and report back.

Thanks!
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Customize the email notification "send from" for Contact

Post by pbroste »

Hello @meganwilliford

Excellent find, let us know if you need anything further,
Perry
meganwilliford
Posts: 101
Joined: Tue Aug 06, 2019 7:49 am

Re: Customize the email notification "send from" for Contact

Post by meganwilliford »

Adding -r '<email>' to the notify commands worked like a charm!

This thread can be closed. Thanks!
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Customize the email notification "send from" for Contact

Post by pbroste »

Hello @meganwilliford

Most excellent, will go ahead and lock,

Perry
Locked