Mailcow-dockerized: Lost Two-Factor Authenctication

Created on 30 Aug 2019  路  2Comments  路  Source: mailcow/mailcow-dockerized

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?

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:

  1. source mailcow.conf

  2. docker-compose exec mysql-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME} -e "DELETE FROM tfa WHERE username='YOUR_USERNAME';"

All 2 comments

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:

  1. source mailcow.conf

  2. 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. ;)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mritzmann picture mritzmann  路  3Comments

poldixd picture poldixd  路  3Comments

Adorfer picture Adorfer  路  3Comments

thannaske picture thannaske  路  3Comments

bonanza123 picture bonanza123  路  3Comments