Quantcast
Channel: Hosting Controller – System Network Programming Solution
Viewing all articles
Browse latest Browse all 187

HowTo: retrieve email account passwords

$
0
0

To retrieve email account passwords on a Plesk server, connect to the mysql prompt of your server

#mysql -uadmin -p`cat /etc/psa/.psa.shadow`

At the mysql prompt, goto the ‘psa’ database which is used by Plesk.

mysql> use psa;

and execute the following command to retrieve passwords of all the email accounts on a domain


mysql> select mail_name, password from domains, mail, accounts where domains.name=’domainname.com’ and domains.id=mail.dom_id and mail.id=accounts.id;

 

where, domains, mail, accounts are the tables where different entries of an email account is stored.


Viewing all articles
Browse latest Browse all 187

Trending Articles