kekskurse / go-mail-admin

HTTP-Interface with a small GUI for a Mailserver
GNU General Public License v3.0
32 stars 5 forks source link

Feature Request: Login as user #39

Open philmmanjaro opened 3 years ago

philmmanjaro commented 3 years ago

In some cases the user wants to manage his own email account with restricted rights. Based on #38 it might be able to be integrated similar to #32. This way go-mail-admin gains similar features in that regard as postfixadmin has.

kekskurse commented 3 years ago

Yes thas is planed, i currently need to find a good way to validate the passwort. Which actions should a user be possible to do? I currently just think about changing the password.

philmmanjaro commented 3 years ago

Ya, password change would be enough. On my setup I managed to accomplish that also with the roundcube-password-plugin and an updated SQL statement: $config['password_query'] = "UPDATE vmail.accounts SET password=%D WHERE username=LEFT(%u, LOCATE('@', %u) - 1) AND enabled = true";