Page 1 of 2

Nagios XI 5.6 Inbound Mail Server Connection Issues

Posted: Fri May 31, 2019 1:17 pm
by hul1
Hi Support,

I just upgraded to Nagios 5.6 and tried setting up the inbound mail server but when I run a test it gives me the following error

Code: Select all

Could not connect with the inbound settings given
[CLOSED] IMAP connection broken (server response)
Do you have any idea what the issue is?
I created a new pop3 mailbox and use No Encryption, pop3, port 110, and validated the mailbox works correct via telnet.

Re: Nagios XI 5.6 Inbound Mail Server Connection Issues

Posted: Fri May 31, 2019 1:45 pm
by scottwilkerson
Are you sure you have the POP3 selected in "Connection:" field on the settings?

Re: Nagios XI 5.6 Inbound Mail Server Connection Issues

Posted: Mon Jun 03, 2019 7:55 am
by hul1
Yes, as you can see from the attachment it's set to pop3.

Re: Nagios XI 5.6 Inbound Mail Server Connection Issues

Posted: Mon Jun 03, 2019 9:47 am
by scottwilkerson
I think you found a bug.

Can you edit the following file

Code: Select all

/usr/local/nagiosxi/html/includes/utils-email.inc.php
line 335 change from

Code: Select all

$conn_type = get_option('mail_inbound_conn_type', 'imap');
to

Code: Select all

$conn_type = get_option('mail_inbound_type', 'imap');
Save, then test again.

This will be fixed in the next release.

Re: Nagios XI 5.6 Inbound Mail Server Connection Issues

Posted: Mon Jun 03, 2019 9:52 am
by hul1
Thank you. That fixed the error I got.
However, I'm still getting another error.

Code: Select all

SECURITY PROBLEM: insecure server advertised AUTH=PLAIN
Can not authenticate to POP3 server: [AUTH] Authentication failed.
I'm wondering do you know if its because I don't have TLS/SSL enabled? I'm sure my credentials are correct.

Re: Nagios XI 5.6 Inbound Mail Server Connection Issues

Posted: Mon Jun 03, 2019 10:58 am
by scottwilkerson
hul1 wrote:Thank you. That fixed the error I got.
Glad that fixed the first error.
hul1 wrote: I'm wondering do you know if its because I don't have TLS/SSL enabled? I'm sure my credentials are correct.
this depends on the settings on the POP3 server.

Also, some servers use full email address for username, others do not.

Re: Nagios XI 5.6 Inbound Mail Server Connection Issues

Posted: Mon Jun 03, 2019 12:43 pm
by hul1
Think it was due to the password not saving until you click the Update Settings so I had the wrong password in there.
However, now that the password is correct, I'm getting this error message.

Code: Select all

SECURITY PROBLEM: insecure server advertised AUTH=PLAIN

Re: Nagios XI 5.6 Inbound Mail Server Connection Issues

Posted: Mon Jun 03, 2019 2:32 pm
by scottwilkerson
hul1 wrote:Think it was due to the password not saving until you click the Update Settings so I had the wrong password in there.
However, now that the password is correct, I'm getting this error message.

Code: Select all

SECURITY PROBLEM: insecure server advertised AUTH=PLAIN
Does this server allow none for Encryption?
Is that what you have set?

Re: Nagios XI 5.6 Inbound Mail Server Connection Issues

Posted: Mon Jun 03, 2019 3:36 pm
by hul1
I'm pretty sure it does allow for it. Are you referring to the nagios server?
I ran telnet outside to test the username/password and it worked fine.
I also checked the maillog on the box and it shows

Code: Select all

dovecot: pop3(nagios_reply): Debug: INBOX: Mailbox opened because: POP3 INBOX
dovecot: pop3(nagios_reply): Disconnected: Logged out top=0/0, retr=0/0, del=0/1, size=663
So I assumed it didn't have any issues with the user account.

Re: Nagios XI 5.6 Inbound Mail Server Connection Issues

Posted: Mon Jun 03, 2019 4:01 pm
by scottwilkerson
I meant in XI is it still set to None in the Inbound mail settings?

Did your dovecot test use no encryption?