splitbrain / dokuwiki-plugin-smtp

Send DokuWiki mails via a configured SMTP server
https://www.dokuwiki.org/plugin:smtp
12 stars 14 forks source link

SMTP: Start TLS failed to enable crypto #45

Open JustAnother1 opened 3 years ago

JustAnother1 commented 3 years ago

I have a newly installed Dokuwiki 2020-07-29 "Hogfather". With the SMTP Plugin installed today. I had the same issue reported here:https://github.com/splitbrain/dokuwiki/issues/3138

And the described solution(changing

STREAM_CRYPTO_METHOD_TLS_CLIENT

to

STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT

in lib/plugins/smtp/subtree/txtthinking/Mailer/src/Mailer/SMTP.php, line 201

fixed it for me.

For me it was not an update as in the reported issue but a new install. I assume that the reason is that the mail server does not accept "old unsafe" protocols and kicking the version up a notch fixes it. But that is just my assumption, I might be completely wrong.

Anyway I think it would be good to include this patch in the next version.

Cyrille37 commented 2 years ago

Hello.

With config $conf['plugin']['smtp']['smtp_ssl'] = 'ssl'; it works for me, with the original plugin.

Perhaps you have a specifics openssl version or something like ?

Cyrille37 commented 2 years ago

duplicate https://github.com/splitbrain/dokuwiki-plugin-smtp/issues/31