Hello

The error SMTP Error: Could not authenticate is back on D896 + rc4 version of the module.

Weird thing is if I set the sender as PHP mail default, test email is received with the watchdog error.

Comments

aiphes created an issue. See original summary.

cesarg’s picture

Hello. I'm also having Authentication Error after upgrading to Drupal Version 8.9.6.

drupal/smtp 1.0.0
phpmailer/phpmailer v6.1.7
drupal/core 8.9.6

Connection Failed. Error #2: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed [/app/vendor/phpmailer/phpmailer/src/SMTP.php line 454]
SMTP Error: Could not connect to SMTP host.
bluegeek9’s picture

Category: Bug report » Support request
Priority: Major » Normal
Status: Active » Closed (outdated)

PHP’s OpenSSL extension rejected the mail server’s certificate — typically because:

  1. The certificate is self-signed or issued by an untrusted CA.
  2. The hostname in the certificate doesn’t match the SMTP host you’re connecting to.
  3. The server’s certificate chain is incomplete (missing intermediate CA certs).
  4. Your container or PHP environment is missing CA certificates.

I would need more information to know the cause. There has not been activity for 5 years, so I am closing the issue.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

bluegeek9’s picture

Status: Closed (outdated) » Patch (to be ported)
//www.flaticon.com/free-icons/thank-you Thank you for your contribution! Your continued support makes this project sustainable.
There are multiple ways to show appreciation for the work contributed to this project including:
  • Triage issues and adding more context to existing issues.
  • Flagging SMTP as a favorite on the project page to help others discover it and show your support.
bluegeek9’s picture

Status: Patch (to be ported) » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.