• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.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