It can happen that you don’t have access to Direcadmin’s GUI, but you have root access. I had this situation with one installation with very old OS on which the license was unable to update. So because of invalid license, control panel was not accessible. You can change email password from command line like this.
- Go to virtual directory where passwords are saved
myDA:~# cd /etc/virtual/mydomain.com/
- You can generate new crypted passowrd like bellow. “mynewpassword” is new password.
[root@server ~]# openssl passwd -1 -salt saltsalt mynewpassword
Copy generated hash from previous step and change it inside /etc/virtual/mydomain.com/passwd
That’s it. You should be able to log in into the email account with a new password.
Found this here. Thank you very much!