-
-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] enable admins to see user mailbox #2688
Comments
Hi, there is an issue with this installer, could you edit |
okay sorry I misunderstood. The feature is not yet implemented in modoboa. |
Hi there, there are two parts into using master account:
import imaplib
# for non-SSL conenctions
mailbox = imaplib.IMAP4(host='mail.domain.tld', port=143)
# for SSL connections
mailbox = imaplib.IMAP4_SSL(host='mail.domain.tld', port=993)
typ, data = mailbox.login('[email protected]*admin', 'password')
print(mailbox.list())
mailbox.close()
mailbox.logout() The password_query = SELECT username AS user, password FROM core_user \
WHERE (username='%u' or email='%u') and is_active and master_user BTW Should @Spitfireap be OK with this (I have not found any issues after this change), I would create a PR for this. 😉 |
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... |
That's a feature we could indeed implement in the webmail and I think updating the query is fine for master users. |
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) |
Impacted versions
Create new user and check "Allow mailbox access", set email address. Try login in using format of "[email protected]*[email protected]" and the password for [email protected].
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.
The text was updated successfully, but these errors were encountered: