I've had mailcow running for a while now and it has been great to use. Two-Factor Authentication has been enabled on the admin user for a while which has worked completely fine. My phone got messed up this summer, so I lost everything on it since there are no signs of life in it now.
I would like to disable Two-Factor Authenctication on this admin user in a easy way if it is possible. I did lookup this at the other posts here about the same topic, but I did not really understand the procedure in order to get this fixed.
If there are any posibility to create a domain admin via the terminal, that would be the easiest part to just logon and then use that one. Not sure how that works or if it does even. Could anyone help me here?
Hey Karljklung,
you can find the needed command in the documentation =>
https://mailcow.github.io/mailcow-dockerized-docs/debug-reset_pw/
type in your terminal:
source mailcow.conf
docker-compose exec mysql-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME} -e "DELETE FROM tfa WHERE username='YOUR_USERNAME';"
Hey altnd,
Thanks alot for the quick reply. I can confirm that this did work completely fine for me.
I'm back again into the admin panel. ;)
Most helpful comment
Hey Karljklung,
you can find the needed command in the documentation =>
https://mailcow.github.io/mailcow-dockerized-docs/debug-reset_pw/
type in your terminal:
source mailcow.conf
docker-compose exec mysql-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME} -e "DELETE FROM tfa WHERE username='YOUR_USERNAME';"