• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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