Nagios XI 5.6 Inbound Mail Server Connection Issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
hul1
Posts: 50
Joined: Mon Jan 14, 2019 12:58 pm

Nagios XI 5.6 Inbound Mail Server Connection Issues

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI 5.6 Inbound Mail Server Connection Issues

Post by scottwilkerson »

Are you sure you have the POP3 selected in "Connection:" field on the settings?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
hul1
Posts: 50
Joined: Mon Jan 14, 2019 12:58 pm

Re: Nagios XI 5.6 Inbound Mail Server Connection Issues

Post by hul1 »

Yes, as you can see from the attachment it's set to pop3.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI 5.6 Inbound Mail Server Connection Issues

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
hul1
Posts: 50
Joined: Mon Jan 14, 2019 12:58 pm

Re: Nagios XI 5.6 Inbound Mail Server Connection Issues

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI 5.6 Inbound Mail Server Connection Issues

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
hul1
Posts: 50
Joined: Mon Jan 14, 2019 12:58 pm

Re: Nagios XI 5.6 Inbound Mail Server Connection Issues

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI 5.6 Inbound Mail Server Connection Issues

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
hul1
Posts: 50
Joined: Mon Jan 14, 2019 12:58 pm

Re: Nagios XI 5.6 Inbound Mail Server Connection Issues

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI 5.6 Inbound Mail Server Connection Issues

Post by scottwilkerson »

I meant in XI is it still set to None in the Inbound mail settings?

Did your dovecot test use no encryption?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked