New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to send mails through SMTP server with self-signed cert (and undescriptive error msg) #18563
Comments
Hello, The steps in OPs "Possible Solution" resolved the issue for me, but I agree their should be an easier config option for self signed certs. Even if self signed aren't ideal, there are real use cases where a cert won't chain correctly. Cheers! |
Hi, |
This comment was marked as off-topic.
This comment was marked as off-topic.
This issue has been mentioned on Matomo forums. There might be relevant details there: https://forum.matomo.org/t/scheduler-error-missing-parameter-displayformat-for-task/45239/2 |
We have users who are still experiencing this issue. At present they need to manually overwrite the PHPMailer files in the vendor folder every time they update. |
Proposed steps:
|
Sounds reasonable, thanks in advance! |
simple INI sounds good for now |
gfffffffffffffffff |
Expected Behavior
Using password reset or ./console core:test-emails should send out mails.
Current Behavior
I get errors when trying both, but no error messages that hint at the actual problem:
Possible Solution
My SMTP server has a self-signed certificate. I'm trying to get people to fix that as well (as this would be the better solution), but wanted to report the problem here anyway.
Another option would be adding the CA's certificate to the matomo host so its self-signed certificates could be trusted.
What makes it work as well is changing vendor/phpmailer/phpmailer/src/PHPMailer.php
However, that's a bad location to fix this issue.
My suggestion would be to
improve the error message (however, setting
public $SMTPDebug = 0;
to4
did not improve it..); I am not a developer, maybe PHPMailer can offer better debugging info and I just do not know how to improve it. Probably at least add a hint in the error messages?echo QUIT | openssl s_client -starttls smtp -crlf -connect mysmtp.example.org:25
quickly showed the error for exampleprovide a config option to allow self-signed certificates
Steps to Reproduce (for Bugs)
./console core:test-email user@example.org
or perform a password reset to get the error.Context
Resetting a user password is currently impossible in this context.
Your Environment
The text was updated successfully, but these errors were encountered: