Thursday 31 July 2014

Plesk Email account password


If you want to find the password for email account’s in plesk then there are 3 ways to get the email account’s password
1) To find password for a single email account
/usr/local/psa/bin/mail --info example@domain.com
2) To find all email account passwords for a single domain
/usr/local/psa/admin/bin/mail_auth_view | grep user@domain.com
3) The below command will list passwords for all email accounts in plesk.
/usr/local/psa/admin/bin/mail_auth_view
OR
mysql -uadmin -p` cat /etc/psa/.psa.shadow` -Dpsa -e"select mail_name,name,password from mail left join domains on mail.dom_id = domains.id inner join accounts where mail.account_id = accounts.id;"

No comments:

Post a Comment