SMTP Email

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
astaroth1837
Posts: 3
Joined: Tue Mar 31, 2020 11:03 am

SMTP Email

Post 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.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: SMTP Email

Post by gsmith »

Hi,

Please send me a screenshot of your Mail Settings page.

Mine shows:
Screenshot 2021-04-26 164119.jpg
Thanks
You do not have the required permissions to view the files attached to this post.
astaroth1837
Posts: 3
Joined: Tue Mar 31, 2020 11:03 am

Re: SMTP Email

Post by astaroth1837 »

Here it is
You do not have the required permissions to view the files attached to this post.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: SMTP Email

Post 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
astaroth1837
Posts: 3
Joined: Tue Mar 31, 2020 11:03 am

Re: SMTP Email

Post 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.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: SMTP Email

Post 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
Locked