You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using internal connections to a email server that has no valid certificate, the mail connection fails with the following error:
"Unable to connect with STARTTLS: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:0A000086:SSL routines::certificate verify failed"
To Reproduce
Steps to reproduce the behavior:
Set up a docker-version of "2FAuth" with configured mail-access to mail server that is using invalid cert
Click "Forgot your password? [Reset it]"
Enter valid email address
See error
Expected behavior
Add a docker-compose config line that disables certificate validation for email server certificates.
Screenshots
Desktop (please complete the following information):
OS: Windows 10, Linux (Manjaro)
Browser: Chromium, Firefox, Edge
Version: newest
Additional context
This is only partly a bug, but because the feature missing is a gamebreaking bug for us, I used this template. Please move if you feel this should be a FR.
Thanks,
Lukas
The text was updated successfully, but these errors were encountered:
Hi.
It seems that the Laravel/Symphony Mailer can be configured not to verify peers. The line 'verify_peer' => false, must be added to the file [2fauth_install_dir]/config/mail.php like so:
The next container upgrade will reset your change. When this time comes, add the environment variable MAIL_VERIFY_SSL_PEER set to false to enable the setting back.
Describe the bug
When using internal connections to a email server that has no valid certificate, the mail connection fails with the following error:
"Unable to connect with STARTTLS: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:0A000086:SSL routines::certificate verify failed"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Add a docker-compose config line that disables certificate validation for email server certificates.
Screenshots

Desktop (please complete the following information):
Additional context
This is only partly a bug, but because the feature missing is a gamebreaking bug for us, I used this template. Please move if you feel this should be a FR.
Thanks,
Lukas
The text was updated successfully, but these errors were encountered: