An error occurred sending a test email!

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
talalmog
Posts: 18
Joined: Thu Jan 24, 2019 5:20 am

An error occurred sending a test email!

Post by talalmog »

A test email was sent to MyEmailAddress@*****
----
Mailer said: [02-18-2019 08:34:21] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=IPAddress;port=25;smtpauth=true;security=none), Referer: admin/testemail.php
An error occurred sending a test email!

1-this is a new Nagiosxi server and we never used email before
2- SMTP port 25 is open and i mange to send emails with command (without nagios)


rpm -q php
php-5.4.16-45.el7.x86_64
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: An error occurred sending a test email!

Post by npolovenko »

Hello, @talalmog. Did you fill out relevant SMTP settings on the Mail Settings page in XI? (Admin -> Manage Email Settings(in the left column). Please go that page again and check the Debug Log option and then upload the /usr/local/nagiosxi/tmp/phpmailer.log after a few test retries.
Most often SMTP authentication problems are caused by wrong/unauthorized SMTP username, password or by the incorrect authentication protocol.
If you can please check the authentication logs on the SMTP server itself.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
talalmog
Posts: 18
Joined: Thu Jan 24, 2019 5:20 am

Re: An error occurred sending a test email!

Post by talalmog »

thank you,
the issue caused by wrong authentication
thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: An error occurred sending a test email!

Post by scottwilkerson »

talalmog wrote:thank you,
the issue caused by wrong authentication
thanks
Glad it is resolved

Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked