Outgoing Mail fails after upgrading to 5.62

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
alsoszaa
Posts: 33
Joined: Fri Sep 21, 2018 10:52 am

Outgoing Mail fails after upgrading to 5.62

Post by alsoszaa »

Outbound email was working until I upgraded from 5.601 to 5.62.
I didn't change any email settings before the upgrade and was receiving alerts fine until after the upgrade. Now trying to send a test mail to troubleshoot I see this: Could not instantiate mail function. (method=sendmail), Referer: admin/testemail.php. I've turned debugging on and then tried again to send a test mail, the same message is written to the log and nothing more.
Has anyone else had this happen or know how to fix this? luckilly this is our test instance, but I cannot upgrade our production instance until I know the resolution.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Outgoing Mail fails after upgrading to 5.62

Post by benjaminsmith »

Hi,

Did you make any changes to the server as it looks like the mail handler cannot call sendmail. We've made a few secuirty fixes to PHPmailer for 5.6.3, but nothing I'm aware of that would have affected sendmail.

What is the output of the following:

Code: Select all

which sendmail
Are you able to send a test mail from the command line?

Code: Select all

echo "Subject: sendmail test" | sendmail -v my@email.com
Another option is to test Nagios XI with an SMTP server. See the following guide for instructions:
Understanding Email Sending

If you still having trouble, please PM your system profile. Thanks.

To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share in a private message or upload it to the post/ticket.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
alsoszaa
Posts: 33
Joined: Fri Sep 21, 2018 10:52 am

Re: Outgoing Mail fails after upgrading to 5.62

Post by alsoszaa »

This wasn't when I upgraded to 5.63, this was when I upgraded to 5.62. I was at 5.60 before and it was working fine.
I have covered up server names and email addresses, but here are the results:

Prod:
[root@xxxxxxxxPROD ~]# echo "Subject: sendmail test" | sendmail -v myemail@company.com
Mail Delivery Status Report will be mailed to <root>.
[root@xxxxxxxxPROD ~]# which sendmail
/usr/sbin/sendmail

Test:
[root@xxxxxxxxTEST ~]# echo "Subject: sendmail test" | sendmail -v myemail@company.com
sendmail: fatal: parameter inet_interfaces: no local interface found for ::1
[root@xxxxxxxxTEST ~]# which sendmail
/usr/sbin/sendmail
alsoszaa
Posts: 33
Joined: Fri Sep 21, 2018 10:52 am

Re: Outgoing Mail fails after upgrading to 5.62

Post by alsoszaa »

After seeing this response, I looked up the error and fixed my issue:

Solution found on https://nixhive.com/fatal-parameter-ine ... und-for-1/
Taken from site:
Issue
You are note able to restart / start postfix and getting the below error.
fatal: parameter inet_interfaces: no local interface found for ::1

Solution
Edit the file /etc/postfix/main.cf
vim /etc/postfix/main.cf
search for the line inet_interfaces = all
And change it to:
inet_interfaces = 127.0.0.1, 10.10.11.12 10.10.11.12 is your local IP address
:wq! Save and exit
restart postfix.
service postfix restart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Outgoing Mail fails after upgrading to 5.62

Post by scottwilkerson »

alsoszaa wrote:After seeing this response, I looked up the error and fixed my issue:

Solution found on https://nixhive.com/fatal-parameter-ine ... und-for-1/
Taken from site:
Issue
You are note able to restart / start postfix and getting the below error.
fatal: parameter inet_interfaces: no local interface found for ::1

Solution
Edit the file /etc/postfix/main.cf
vim /etc/postfix/main.cf
search for the line inet_interfaces = all
And change it to:
inet_interfaces = 127.0.0.1, 10.10.11.12 10.10.11.12 is your local IP address
:wq! Save and exit
restart postfix.
service postfix restart
Glad to hear you got it sorted, and thanks for posting your solution!

Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked