Page 1 of 1

Outgoing Mail fails after upgrading to 5.62

Posted: Thu Jun 13, 2019 3:02 pm
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.

Re: Outgoing Mail fails after upgrading to 5.62

Posted: Thu Jun 13, 2019 4:52 pm
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 [email protected]
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.

Re: Outgoing Mail fails after upgrading to 5.62

Posted: Thu Jun 13, 2019 5:17 pm
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 [email protected]
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 [email protected]
sendmail: fatal: parameter inet_interfaces: no local interface found for ::1
[root@xxxxxxxxTEST ~]# which sendmail
/usr/sbin/sendmail

Re: Outgoing Mail fails after upgrading to 5.62

Posted: Thu Jun 13, 2019 5:28 pm
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

Re: Outgoing Mail fails after upgrading to 5.62

Posted: Fri Jun 14, 2019 6:30 am
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