Steps to reproduce
- configure Nextcloud to send mail encrypted via SMTP/StartTLS
- Make sure mail server is NOT offering TLS1 (e.g. TLS1.2 only)
- Try to send any mail, e.g. by pressing the Mail test button in setup
Expected behaviour
Mail can be sent with TLS1.2
Actual behaviour
Mail is not send / mail test fails if mail server is not offering TLS1.
Description
This is a known Swiftmail issue, see e.g. swiftmailer/swiftmailer#598
There is also a proposed fix, but that one is NOT working for me: swiftmailer/swiftmailer#935
Replacing "STREAM_CRYPTO_METHOD_TLS_CLIENT" with "STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT" in "3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php" allows sending mails again, but of course now hard codes TLS1.2.
Steps to reproduce
Expected behaviour
Mail can be sent with TLS1.2
Actual behaviour
Mail is not send / mail test fails if mail server is not offering TLS1.
Description
This is a known Swiftmail issue, see e.g. swiftmailer/swiftmailer#598
There is also a proposed fix, but that one is NOT working for me: swiftmailer/swiftmailer#935
Replacing "STREAM_CRYPTO_METHOD_TLS_CLIENT" with "STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT" in "3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php" allows sending mails again, but of course now hard codes TLS1.2.