• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Lookup mail passwords

Amin Taheri

Golden Pleskian
Plesk Certified Professional
Hi,

We're looking at a customer that we need to be able to look at their email passwords so we can migrate them off Plesk 9.5.4 Qmail to a completely homegrown email system - how can I retrieve their passwords - is that stored in the db somewhere?
 
Try to use

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;

If password is crypted use

perl -MMIME::Base64 -le 'print decode_base64("$password")'
 
Thanks for that, I had to modify it slightly to add in a check to only return back the pop accounts
and postbox='true'

mysql -uadmin -p`cat /etc/psa/.psa.shadow ` psa -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 and postbox='true' order by name asc, mail_name asc; " > popmail.log
 
Back
Top