Skip to content

SMTP mail with starttls not working if mail server is not supporting TLS1 #7421

Description

@alexw65500

Steps to reproduce

  1. configure Nextcloud to send mail encrypted via SMTP/StartTLS
  2. Make sure mail server is NOT offering TLS1 (e.g. TLS1.2 only)
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions