Page 1 of 1

Private SMTP server

Posted: Wed Jan 12, 2022 4:02 am
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!

Re: Private SMTP server

Posted: Wed Jan 12, 2022 5:59 am
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.

Re: Private SMTP server

Posted: Wed Jan 12, 2022 2:14 pm
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