Skip to content

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

Closed as duplicate

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"}

Activity

  1. moved this from Qualification to Prio <= 3 in OpenCloud Team Boardon Mar 31, 2025
  2. rhafer commented on Mar 31, 2025

    @rhafer
    Member

    I think the .env file is unfortunately not exposing the NOTIFICATIONS_SMTP_ENCRYPTION setting see #511 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions