Skip to content

Instantly share code, notes, and snippets.

@hieuhuynh93
Forked from landbryo/get_password
Created May 6, 2025 14:11
Show Gist options
  • Save hieuhuynh93/87a5c45f84ea4dbc818f22d7d5e7911a to your computer and use it in GitHub Desktop.
Save hieuhuynh93/87a5c45f84ea4dbc818f22d7d5e7911a to your computer and use it in GitHub Desktop.
Retrieves password for requested email account in Plesk Linux.
Plesk email users often get their passwords lost.
Fortunately Parallels has implemented a command to see all passwords for all users in all domains:
`/usr/local/psa/admin/bin/mail_auth_view`
You can filter the output to see one account password (quotes must exist):
`/usr/local/psa/admin/bin/mail_auth_view | grep "johnsmith@domain.tld"`
Also you could get statistical information about how many email accounts supports your server:
`/usr/local/psa/admin/bin/mail_auth_view | wc -l`
As the result you get the total amount of email accounts in you server for all the domains, of course, you could filter by domain:
`/usr/local/psa/admin/bin/mail_auth_view | grep "domain.tld" | wc -l`
And all the variations you can imagine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment