Page 1 of 1

SMTP Email

Posted: Mon Apr 26, 2021 12:21 pm
by astaroth1837
Good afternoon!

I have been trying to set up email on the Nagios Log Server but keep getting the following error.

Failed to authenticate password. Error: 535 Authentication failed: Bad username / password
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

I am certain the API key username and password are correct, so this error is a bit confusing. If I change the settings to PHP Mail that works, but no go with SMTP. Any help is much appreciated.

Re: SMTP Email

Posted: Mon Apr 26, 2021 4:43 pm
by gsmith
Hi,

Please send me a screenshot of your Mail Settings page.

Mine shows:
Screenshot 2021-04-26 164119.jpg
Thanks

Re: SMTP Email

Posted: Wed Apr 28, 2021 7:02 pm
by astaroth1837
Here it is

Re: SMTP Email

Posted: Thu Apr 29, 2021 11:55 am
by gsmith
Hi,

What do you see in /var/log/maillog?

Please PM it to me.

What PHP version are you running?

Code: Select all

php -V
Thanks

Re: SMTP Email

Posted: Fri Apr 30, 2021 9:59 am
by astaroth1837
PHP - 5.4.16

When I have it set this way, there is nothing logged in the mail log at all. Like its not even trying to send it.

If I set it to PHP instead of SMTP, those message come through just fine and get logged. With SMTP, nothing is logged.

Re: SMTP Email

Posted: Fri Apr 30, 2021 11:00 am
by gsmith
Hi,

Where are you seeing:
Failed to authenticate password. Error: 535 Authentication failed: Bad username / password
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

Is it on the Mail Settings page?

Also, as root, please run the following and send me the output:
whereis sendmail
whereis postfix

Thanks