back to phpList.org

SMTP Error Could not authenticate

Hi. I am unable to send emails on phplist installed on CentOS8. I have the following debug info:
Connection: opening to --cirt-org-bw.mail.protection.outlook.com:25, timeout=5, options=array ()
Connection: opened
SMTP -> get_lines(): $data is “”
SMTP -> get_lines(): $str is “220 --VI1EUR05FT043.mail.protection.outlook.com Microsoft ESMTP MAIL Service ready at Thu, 17 Sep 2020 06:54:25 +0000”
SERVER -> CLIENT: 220 --VI1EUR05FT043.mail.protection.outlook.com Microsoft ESMTP MAIL Service ready at Thu, 17 Sep 2020 06:54:25 +0000
CLIENT -> SERVER: EHLO 10.2.0.9
SMTP -> get_lines(): $data is “”
SMTP -> get_lines(): $str is “–250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]”
SMTP -> get_lines(): $data is “–250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]”
SMTP -> get_lines(): $str is “–250-SIZE 157286400”
SMTP -> get_lines(): $data is “–250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]250-SIZE 157286400”
SMTP -> get_lines(): $str is “250-PIPELINING”
SMTP -> get_lines(): $data is “–250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]250-SIZE 157286400250-PIPELINING”
SMTP -> get_lines(): $str is “250-DSN”
SMTP -> get_lines(): $data is “–250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]250-SIZE 157286400250-PIPELINING250-DSN”
SMTP -> get_lines(): $str is “250-ENHANCEDSTATUSCODES”
SMTP -> get_lines(): $data is “–250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES”
SMTP -> get_lines(): $str is “250-STARTTLS”
SMTP -> get_lines(): $data is “–250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS”
SMTP -> get_lines(): $str is “250-8BITMIME”
SMTP -> get_lines(): $data is “–250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME”
SMTP -> get_lines(): $str is “250-BINARYMIME”
SMTP -> get_lines(): $data is “–250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME”
SMTP -> get_lines(): $str is “250-CHUNKING”
SMTP -> get_lines(): $data is “–250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING”
SMTP -> get_lines(): $str is “250 SMTPUTF8”
SERVER -> CLIENT: --250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
CLIENT -> SERVER: STARTTLS
SMTP -> get_lines(): $data is “”
SMTP -> get_lines(): $str is “220 2.0.0 SMTP server ready”
SERVER -> CLIENT: 220 2.0.0 SMTP server ready
CLIENT -> SERVER: EHLO 10.2.0.9
SMTP -> get_lines(): $data is “”
SMTP -> get_lines(): $str is “–250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]”
SMTP -> get_lines(): $data is “–250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]”
SMTP -> get_lines(): $str is “250-SIZE 157286400”
SMTP -> get_lines(): $data is “–250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]250-SIZE 157286400”
SMTP -> get_lines(): $str is “250-PIPELINING”
SMTP -> get_lines(): $data is “–250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]250-SIZE 157286400250-PIPELINING”
SMTP -> get_lines(): $str is “250-DSN”
SMTP -> get_lines(): $data is “–250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]250-SIZE 157286400250-PIPELINING250-DSN”
SMTP -> get_lines(): $str is “250-ENHANCEDSTATUSCODES”
SMTP -> get_lines(): $data is “–250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES”
SMTP -> get_lines(): $str is “250-8BITMIME”
SMTP -> get_lines(): $data is “–250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-8BITMIME”
SMTP -> get_lines(): $str is “250-BINARYMIME”
SMTP -> get_lines(): $data is “–250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-8BITMIME250-BINARYMIME”
SMTP -> get_lines(): $str is “250-CHUNKING”
SMTP -> get_lines(): $data is “–250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-8BITMIME250-BINARYMIME250-CHUNKING”
SMTP -> get_lines(): $str is “250 SMTPUTF8”
SERVER -> CLIENT: --250-VI1EUR05FT043.mail.protection.outlook.com Hello [41.79.138.123]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
SMTP Error: Could not authenticate.
CLIENT -> SERVER: QUIT
SMTP -> get_lines(): $data is “”
SMTP -> get_lines(): $str is “221 2.0.0 Service closing transmission channel”
SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel
Connection: closed
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Your assistance will be highly appreciated! Thank you

Hello, @allanbett

It reports SMTP Error: Could not authenticate.
It seems that you need to set SMTP authentication.

And don’t forget to transfer the settings into config.php for it to have any effect.

I defined that in the config.php file but it brings the same error