Unable to Login/Reset Admin Password in Mail-in-a-Box

Hello Mail-in-a-Box Community,

I hope you’re all doing well. I am facing an issue with my Mail-in-a-Box setup and would greatly appreciate your help in resolving it.

Issue: Issue: I am currently unable to log in to the admin space of my Mail-in-a-Box. Although I have SSH access to the server, I cannot find the correct method to reset the admin password through the command line or create a new admin email/password.

Server Details:

  • Mail-in-a-Box Version: Mail-in-a-Box Version: v57a
  • Operating System: Ubuntu 18.04.5 LTS
  • Server Access: SSH access as admin user

I have tried various commands suggested in online forums and previous discussions. However, none of the provided methods seem to work with my current Mail-in-a-Box setup.

Please feel free to request any additional information that might be helpful in diagnosing the issue.

Thank you all for your time and support!

Log into the box using SSH (same as when you set up the box). Then run:

sudo /root/mailinabox/management/cli.py  user password your@address.com {type new password here}

Replacing your@address.com with the email address that you created when you created the box (or whatever your admin account email address is).

If your not sure what your admin email is then run this:

sudo /root/mailinabox/management/cli.py user admins

Also you can run

sudo /root/mailinabox/management/cli.py 

for a full list of commands.

as found here: Reset Admin Password script was moved so I just updated this…

3 Likes

Thank you for your help!

I followed the steps you provided, and it solved my issue. Greatly appreciated!
Have a nice day!