Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Email are not sent: "Must issue a STARTTLS command first" #514

Description

@DecaTec

Describe the bug

I've configured an SMTP server in the .env. Also ever user has a valid email-address.

Now, e.g. when sharing a file, no e-mail is sent.

Docker compose setup ("opencloud_full").

Steps to reproduce

  1. Configure SMTP server in .env
  2. Create users with valid e-mail addresses.
  3. Share a file with another user

Expected behavior

The user who receives the share should get an e-mail.

Actual behavior

No e-mail is sent.

Setup

.env:

Details

SMTP_HOST=xxx.netcup.net
# Port of the SMTP host to connect to.
SMTP_PORT=587
# An eMail address that is used for sending OpenCloud notification eMails
# like "opencloud notifications <[email protected]>".
[email protected]
# Username for the SMTP host to connect to.
[email protected]
# Password for the SMTP host to connect to.
SMTP_PASSWORD=xxx
# Authentication method for the SMTP communication.
SMTP_AUTHENTICATION=auto
# Allow insecure connections to the SMTP server. Defaults to false.
SMTP_INSECURE=true

Using plain for SMTP_AUTHENTICATION doesn't change anything.

Error in docker logs opencloud_full-opencloud-1:

{"level":"error","service":"notifications","error":"530 5.7.0 Must issue a STARTTLS command first","event":"SendEmail","time":"2025-03-28T18:40:17Z","line":"github.com/opencloud-eu/opencloud/services/notifications/pkg/service/service.go:158","message":"failed to send a message"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions