nextcloud / nextcloud/mail

Emails fail to send with "Could not send message"

Open
#8,629 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. to triage bug
Dominant language
JavaScript
Stars
1k
Forks
348
Avg merge
12h 28m
Merged PRs (30d)
91

Description

Steps to reproduce
  1. Configure a user to use SMTP, no encryption (starttls and ssl/tls directly are unsupported on my current postfix config)
  2. Attempt to send an email to any source (can send to yourself as a test)
  3. Observe failure
Expected behavior

An email should be properly sent.

Actual behavior

No email is sent, and an error saying "Could not send message" appears.

Mail app version

3.2.4

Mailserver or service

Postfix

Operating system

Debian 12/bookworm

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database

MariaDB

Additional info

Sending over (unencrypted) SMTP works completely fine on Thunderbird, so no reason it should fail on NC. I'm trying to get unencrypted set up first (passwords only traverse my local network currently, once I actually use this externally it'll need to be encrypted) and then get encrypted set up later (with proper SSL and all).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with the reported Nextcloud Mail 3.2.4, Postfix, Debian 12, PHP 8.2, and unencrypted SMTP configuration, then compare it with the successful Thunderbird setup. Done means messages send successfully without the "Could not send message" error; the issue names no source file or test to begin from.

Written by the indexing model from the issue text.

Assessment

Tech stack
debian, mariadb, php
Domain
backend, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.