Get Plesk e-mail addresses and passwords

Need a handy way to list all the email accounts and their passwords?

select CONCAT(mail_name,"@",name) as email_address,accounts.password from mail left join domains on domains.id=mail.dom_id left join accounts on accounts.id=mail.account_id;

Printed from: http://rackerhacker.com/2007/02/01/get-plesk-e-mail-addresses-and-passwords/ .
© Major Hayden 2012.

6 Comments   »

  • ghosti says:

    but.... how to show password in plain text? thanks a lot....

  • Joel says:

    Just stumbled across this article and thought I'd share my own quick fix to display the mailbox password. Modify the SQL query to the following:

    select CONCAT(mail_name,"@",name) as email_address, substring(accounts.password, '1') from mail left join domains on domains.id=mail.dom_id left join accounts on accounts.id=mail.account_id;

    There's probably a more elegant solution but this seems to work :-)

  • Richard says:

    Beautiful major & Joel

  • Very Handy, Thanks.

  • Muharrem says:

    Hello;

    Thanks for tip. I want ask question about email passwords. I need see password with md5 on mysql database this is possible ?

    Thanks Muharrem

  • Karl says:

    Muharrem would this help:

    select CONCAT(mail_name,"@",name) as email_address, md5(substring(accounts.password, '1')) from mail left join domains on domains.id=mail.dom_id left join accounts on accounts.id=mail.account_id;

RSS feed for comments on this post

Leave a Reply

 

  • Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you find the information useful. If you spot something that's incorrect or confusing, please write a comment and let me know. Drop me a line if there's something you want to know more about and I'll do my best to write a post on the topic.
    -- Major Hayden

    Flattr this