Hello everyone
I tried to run the SMTP example. Connecting and certificate check works, but now I am stuck with an unknown error.
How can I debug this one?
250-gmx.net Hello ESP32 [46.140.227.150]
250-8BITMIME
250-SIZE 69920427
250 STARTTLS
I (5756) smtp_example: Writing STARTTLS to server...
220 OK
I (5816) smtp_example: Performing the SSL/TLS handshake...
I (6446) smtp_example: Verifying peer X.509 certificate...
I (6446) smtp_example: Certificate verified.
I (6446) smtp_example: Cipher suite is TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384
I (6456) smtp_example: Authentication...
I (6456) smtp_example: Write AUTH LOGIN
I (6496) smtp_example: mbedtls_ssl_read() returned -0xffffffe2
I (6496) smtp_example: write_ssl_and_get_response() returned 503
E (6506) smtp_example: Last error was: -0xfffffe09 - UNKNOWN ERROR CODE (0180) : UNKNOWN ERROR CODE (0077)
Many thanks and kind regards
Christian
SMTP example -0xfffffe09 - UNKNOWN ERROR CODE (0180) : UNKNOWN ERROR CODE (0077)
Re: SMTP example -0xfffffe09 - UNKNOWN ERROR CODE (0180) : UNKNOWN ERROR CODE (0077)
I switched to a gmail account to be close to the example. There's another problem now.
I (4663) smtp_example: Connected.
220 smtp.googlemail.com ESMTP a640c23a62f3a-a729d7c9628sm66882666b.202 - gsmtp
I (4723) smtp_example: Writing EHLO to server...
250-smtp.googlemail.com at your service, [46.140.227.150]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCOD
ES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
I (4763) smtp_example: Writing STARTTLS to server...
220 2.0.0 Ready to start TLS
I (4793) smtp_example: Performing the SSL/TLS handshake...
I (5643) smtp_example: Verifying peer X.509 certificate...
I (5643) smtp_example: Certificate verified.
I (5643) smtp_example: Cipher suite is TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
I (5643) smtp_example: Authentication...
I (5653) smtp_example: Write AUTH LOGIN
I (5683) smtp_example: write_ssl_and_get_response() returned 334
I (5683) smtp_example: Write USER NAME
I (5683) smtp_example: mbedtls_base64_encode() returned 0
I (5723) smtp_example: Write PASSWORD
E (6023) smtp_example: Last error was: -0xfffffde9 - UNKNOWN ERROR CODE (0200) : LMS - LMS failed to allocate space for a private key
In smtp_client_example_main.c, line nr 401 is:
VALIDATE_MBEDTLS_RETURN(ret, 200, 399, exit);
What do the limits stand for?
I (4663) smtp_example: Connected.
220 smtp.googlemail.com ESMTP a640c23a62f3a-a729d7c9628sm66882666b.202 - gsmtp
I (4723) smtp_example: Writing EHLO to server...
250-smtp.googlemail.com at your service, [46.140.227.150]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCOD
ES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
I (4763) smtp_example: Writing STARTTLS to server...
220 2.0.0 Ready to start TLS
I (4793) smtp_example: Performing the SSL/TLS handshake...
I (5643) smtp_example: Verifying peer X.509 certificate...
I (5643) smtp_example: Certificate verified.
I (5643) smtp_example: Cipher suite is TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
I (5643) smtp_example: Authentication...
I (5653) smtp_example: Write AUTH LOGIN
I (5683) smtp_example: write_ssl_and_get_response() returned 334
I (5683) smtp_example: Write USER NAME
I (5683) smtp_example: mbedtls_base64_encode() returned 0
I (5723) smtp_example: Write PASSWORD
E (6023) smtp_example: Last error was: -0xfffffde9 - UNKNOWN ERROR CODE (0200) : LMS - LMS failed to allocate space for a private key
In smtp_client_example_main.c, line nr 401 is:
VALIDATE_MBEDTLS_RETURN(ret, 200, 399, exit);
What do the limits stand for?
Re: SMTP example -0xfffffe09 - UNKNOWN ERROR CODE (0180) : UNKNOWN ERROR CODE (0077)
Sorry, I forgot to say, that I'm using ESP-IDF 5.2 and an ESP32.
Re: SMTP example -0xfffffe09 - UNKNOWN ERROR CODE (0180) : UNKNOWN ERROR CODE (0077)
Talking to myself I found a solution.
I followed the guide: https://randomnerdtutorials.com/esp32-s ... duino-ide/
The link above works with GMail. Basically you have to set up 2-Step verification in you google account and then create an "App Password", which allows access with a lower security level.
How ever, Google announces, that they will change their security procedures in septemper 2024. The smpt example could not be running out of the box after that.
Hope that helps to others that strugle with smtp.
Chris
I followed the guide: https://randomnerdtutorials.com/esp32-s ... duino-ide/
The link above works with GMail. Basically you have to set up 2-Step verification in you google account and then create an "App Password", which allows access with a lower security level.
How ever, Google announces, that they will change their security procedures in septemper 2024. The smpt example could not be running out of the box after that.
Hope that helps to others that strugle with smtp.
Chris
Who is online
Users browsing this forum: Bing [Bot] and 390 guests