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!
how to change the "from" of outgoing xi-email-notifications
-
- Posts: 1
- Joined: Fri Jun 12, 2015 1:31 am
-
- Posts: 247
- Joined: Tue Aug 31, 2021 3:25 pm
Re: how to change the "from" of outgoing xi-email-notificati
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
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