Private SMTP server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
flender
Posts: 16
Joined: Fri Dec 24, 2021 7:15 am

Private SMTP server

Post by flender »

Hi,

I am trying to send test email via company's email which also has its own smtp server (no hostname, just the IP address).
The email was created for the purpose of sending notifications, and it has no password.

Now, I also tried to use different ports and protocols combinations, but none did work.

For ports 456 and 587 there is always an output error "Connection refused"

And for 25, the following:

Code: Select all

2022-01-12 08:54:09 Connection: opening to 192.168.2.2:25, timeout=300, options=array ()
2022-01-12 08:54:09 Connection: opened
2022-01-12 08:54:09 SMTP -> get_lines(): $data is ""
2022-01-12 08:54:09 SMTP -> get_lines(): $str is ""
2022-01-12 08:54:09 SERVER -> CLIENT:
2022-01-12 08:54:09 SMTP NOTICE: EOF caught while checking if connected
2022-01-12 08:54:09 Connection: closed
SMTP Error: Could not authenticate.
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
It is a bit strange that there is no password provided for the email, as it is required in SMTP section in Nagios XI, but it is how I was provided from the colleagues.

Also, they say it works for them when they send from that email, without providing password, outside of Nagios XI.

Thanks!
flender
Posts: 16
Joined: Fri Dec 24, 2021 7:15 am

Re: Private SMTP server

Post by flender »

UPDATE:

I used Sendmail option, instead of SMTP, and it works, even if it's received as spam, rule can be created for it.
User avatar
kfanselow
Posts: 254
Joined: Tue Aug 31, 2021 3:25 pm

Re: Private SMTP server

Post by kfanselow »

Hi Flender,

Glad you were able to get it to work with your local MTA which often allows you a little more flexibility. For reference sake please find appended below is a link to our Email Settings guide for convenience.

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Thanks and Best Regards,
Keith
Locked