• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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