mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 00:46:03 +03:00
[GH-ISSUE #2688] [Feature] enable admins to see user mailbox #1680
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1680
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dakolta on GitHub (Nov 11, 2022).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2688
Impacted versions
Create new user and check "Allow mailbox access", set email address. Try login in using format of "user@foo.com*mailboxadmin@foo.com" and the password for mailboxadmin@foo.com.
When logging in web interface returns the error "Your username and password didn't match. Please try again."
Being able to log into the web interface as the master user to view a users mailbox. I have been able to do this using other web mail servers, i.e. iRedMail, Roundcube, SoGo, etc.
@Spitfireap commented on GitHub (Nov 11, 2022):
Hi, there is an issue with this installer, could you edit
/etc/dovecot/conf.d/10-ssl.conf: replace!include_try = /etc/dovecot/conf.d/10-ssl-keys.tryby!include_try /etc/dovecot/conf.d/10-ssl-keys.try. then typesudo service dovecot restart.@dakolta commented on GitHub (Nov 11, 2022):
I do not have that line in that file and I do not see the /etc/dovecot/conf.d/10-ssl-keys.try file in the directory.

This is the contents of the /etc/dovecot/conf.d directory:
@Spitfireap commented on GitHub (Nov 13, 2022):
okay sorry I misunderstood. The feature is not yet implemented in modoboa.
@tomas-kucera commented on GitHub (Jan 8, 2023):
Hi there, there are two parts into using master account:
ability to use Modoboa Webadmin to "peak" into users' mailboxes - this one I personally do not miss 😉
ability to connect (for example using Python's imaplib) to the users' mailboxes using master account for example for bulk mailboxes migrations:
/etc/dovecot/dovecot-sql-master.conf.extconfiguration file within the linepassword_query = SELECT email AS user, password FROM core_user WHERE email='%u' and is_active and master_userreplace the email (twice) with username and restart dovecot (maybe reload is enough too)The
password_querycould also be more sophisticated, such as:BTW Should @Spitfireap be OK with this (I have not found any issues after this change), I would create a PR for this. 😉
@Spitfireap commented on GitHub (Jan 8, 2023):
Feel free to open a PR. Neither me or @tonioo have worked on this I belive. Just that from my pov. If you are SuperAdmin then you should be able to access the server and simply rsync the whole dovecot folder of your domain...
@tonioo commented on GitHub (Jan 13, 2023):
That's a feature we could indeed implement in the webmail and I think updating the query is fine for master users.
@hazho commented on GitHub (May 28, 2024):
I highly advice not to load any email (from any inbox) on web interface, while the currently authenticated user is master, there are plenty of security vulnerabilities for such action, however, to list the emails and open the email content in a sandboxed interface could be fine (although lot of tests needed), that been said, the master user should always be able to do any programmatical operations over anything (including the mailboxes) but not loading the contents of any email on web)