nextcloud / nextcloud/mail

When impersonating a user (from admin), mail cant' be sent due to wrong provided credentials

Open
#2,469 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Expected behavior

When impersonating a user, mail sending should work

Actual behavior

When impersonating a user, mail sending failed due to wrong supplied credentials (user in LDAP backend, IMAP login is attempted with admin password instead of user password => IMAP Srv refuse connection)

Mail app

Mail app version: 0.21.1

Mailserver or service: IMAP Srv selfhosted (dovecot)

Server configuration

Operating system: Ubuntu 18.04

Web server: Apache 2.4

Database: MariaDB 10.1

PHP version: 7.2

Nextcloud Version: Latest 17


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

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

No source files or tests are named. Reproduce mail sending while impersonating an LDAP-backed user against the reported self-hosted Dovecot IMAP server, then trace how impersonation selects credentials; done means the connection uses the impersonated user's credentials rather than the administrator's password and mail sends successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
authentication, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.