Created
November 4, 2013 14:41
-
-
Save siliconmeadow/7303444 to your computer and use it in GitHub Desktop.
To find mailboxes by client in Plesk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT mail.mail_name,domains.name | |
FROM clients, domains, mail | |
WHERE clients.id = <integer> | |
AND clients.id = domains.cl_id | |
AND domains.id = mail.dom_id | |
ORDER BY domains.name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT mail.mail_name,domains.name, SUBSTRING(a.password, 1) AS pw | |
FROM clients, domains, mail, accounts a | |
WHERE clients.id = <integer> | |
AND clients.id = domains.cl_id | |
AND domains.id = mail.dom_id | |
AND a.id = mail.account_id | |
ORDER BY domains.name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment