Page 1 of 1

Customize the email notification "send from" for Contacts

Posted: Fri Sep 17, 2021 11:10 am
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!

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

Posted: Fri Sep 17, 2021 11:22 am
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!

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

Posted: Fri Sep 17, 2021 11:58 am
by pbroste
Hello @meganwilliford

Excellent find, let us know if you need anything further,
Perry

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

Posted: Fri Sep 17, 2021 12:47 pm
by meganwilliford
Adding -r '<email>' to the notify commands worked like a charm!

This thread can be closed. Thanks!

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

Posted: Fri Sep 17, 2021 2:15 pm
by pbroste
Hello @meganwilliford

Most excellent, will go ahead and lock,

Perry