I forgot the admin password, How to reset it, Please help.
I installed mailinabox few weeks ago and it did not worked for me.
Now I explored documentation and executed command sudo mailinabox and it worked.
Finally I can see login screen now. But Now I forgot the admin password. Please tell me how to reset it.
What is the path of password file?
I have root access to server.
I think @murgero is correct that this is a permissions issue, but the path in the command s/he gave is incorrect. See @JoshData’s earlier post for the correct command, and ensure you include sudo at the start.
@sdlg My command is correct for my system. “username” is replaced with the users login name, Since I do not use root to login, when I install MIAB it’s tools and scripts are put in /home/username/mailinabox" but if doing it directly from the root account it will be in /root/mailinabox.
I am not denying @JoshData’s answer, I just followed the install instructions and that is how it was installed for me. For most people, I would assume the same unless using a VPS with only root access. Cheers!
I am also trying to rest my mail in box admin password using the steps above (sudo mailinabox/tools/mail.py user password email@example.com) but i am getting the following error - /root/mailinabox/tools/mail.py: line 3: management/cli.py: No such file or directory
# This is a command-line script for calling management APIs
# on the Mail-in-a-Box control panel backend. The script
# reads /var/lib/mailinabox/api.key for the backend's
# root API key. This file is readable only by root, so this
# tool can only be used as root.