how to change the "from" of outgoing XI-email-notifications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
wholzgru
Posts: 1
Joined: Fri Jun 12, 2015 1:31 am

how to change the "from" of outgoing XI-email-notifications

Post by wholzgru »

Hi, I am newby NagiosXI.
My Question is, how to correct configure NagiosXI to send notifications as a pre-defined "from" only".
1st: I´m using XI on Centos7 and notifications are marked to be sent via sendmail (postfix).
2nd: The email-address of XI is set to "nagios@abc.com"

But the sent message comes as "nagios@nagiosxi.abc.com"!

When XI sends its notifocations as "nagios@nagiosxi.abc.com" the receiving host/mail-mta says "550 Invalid sender domain" because the receiving mta is strictly bound to only accept mails from "*@abc.com". I cannot change the behaviour of the receiving mail-mta.

Would be glad to get any advice, either to change settings in XI or even on the local postfix-configuration, which resides local on the XI-server.
Responses please within this Forum as well as an email to wh@spw.at.

Many thanks in advance!
User avatar
kfanselow
Posts: 241
Joined: Tue Aug 31, 2021 3:25 pm

Re: how to change the "from" of outgoing XI-email-notificati

Post by kfanselow »

Hi wholzgru,

In the email configuration page (Admin {top} -> Email Settings {left side under System Config}) ensure that your email address is set correctly per the guidance on page 3 of the following document:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Please select the Logging check box and click on Update Settings before sending a test email.

If postfix is still sending messages with the hostname in the from address there are two options:

1) Use the SMTP option to directly connect to your SMTP server..

2) Reconfigure postfix to rewrite the address as you would like. This can be a little more involved and could interfere with other processes on the system but here are a couple of guides that can help you with the process.

A simple guide:
https://www.onestoplinux.in/2017/05/sol ... -from.html

The official Postfix README on the subject:
http://www.postfix.org/ADDRESS_REWRITING_README.html

Please let us know how this works for you and if you are still having problems please PM me a copy of the phpmailer.log file ( /usr/local/nagiosxi/tmp/phpmailer.log) as well as a copy of your profile.zip. You can download profile.zip from Admin > System Profile by clicking the Download Profile button.

Thanks and Best Regards,
Keith
Locked