SMTP -> ERROR: AUTH not accepted from server: 535 5.7.8 Error: authentication failed:

I get this error when trying to connect to our SMTP cyberpanel setup, from another server.

However, we can use the SMTP settings in the current cyberpanel server and it works fine. See screenshot below.

Here is the logs SMTP wordpress plugin.
Mailer: smtp
Constants: No
ErrorInfo: SMTP Error: Could not connect to SMTP host. Connection failed. stream_socket_enable_crypto(): Peer certificate' did not match expected’SMTP server error: QUIT command failed Detail: Jh���$��s�]t��l��221 closing connection
Port: 587
SMTPSecure: tls
SMTPAutoTLS: bool(true)
SMTPAuth: bool(true)