{"id":403,"date":"2011-01-31T05:51:25","date_gmt":"2011-01-31T11:51:25","guid":{"rendered":"http:\/\/blog.supportpro.com\/2011\/01\/command-to-show-the-login-details-of-each-mailbox-under-a-specific-domain-in-linux-plesk\/"},"modified":"2026-03-25T04:02:01","modified_gmt":"2026-03-25T10:02:01","slug":"command-to-show-the-login-details-of-each-mailbox-under-a-specific-domain-in-linux-plesk","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/command-to-show-the-login-details-of-each-mailbox-under-a-specific-domain-in-linux-plesk\/","title":{"rendered":"How to View Mailbox Login Details for a Domain in Plesk (Linux) ?"},"content":{"rendered":"\n<p>In a Plesk-managed Linux server, administrators may sometimes need to retrieve mailbox details for a specific domain. This can be useful for auditing, troubleshooting, or managing email accounts. Plesk stores mail account information in its internal MySQL database, which can be accessed securely from the server.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Retrieve Plesk Admin Password<\/strong><\/h3>\n\n\n\n<p>The Plesk admin password is stored in an encrypted file. You can access it using:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/etc\/psa\/.psa.shadow<\/code><\/pre>\n\n\n\n<p>Copy the password, as it will be required to log in to MySQL.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Log in to MySQL<\/strong><\/h3>\n\n\n\n<p>Use the admin credentials to access the MySQL database:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u admin -p<\/code><\/pre>\n\n\n\n<p>Enter the password obtained in the previous step when prompted.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Select the Plesk Database<\/strong><\/h3>\n\n\n\n<p>Once logged in, switch to the Plesk database:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>use psa;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4: Retrieve Mailbox Login Details<\/strong><\/h3>\n\n\n\n<p>Run the following query to list mailbox usernames and associated domain:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>select m.mail_name, m.password, d.name <br>from mail m, domains d <br>where m.dom_id = d.id <br>and d.name = 'supportpro.com';<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Replace <strong>supportpro.com<\/strong> with your target domain.<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Important Notes<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The password field is typically encrypted and not shown in plain text<\/li>\n\n\n\n<li>Access to this information should be restricted to authorized administrators only<\/li>\n\n\n\n<li>Always handle sensitive data securely<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h3>\n\n\n\n<p>Accessing mailbox details through the Plesk database is a quick and effective method for administrators to manage email accounts. However, it should be used responsibly, keeping security and privacy best practices in mind.<\/p>\n\n\n\n<p>If you need assistance with Plesk server management or database operations, feel free to contact SupportPRO Server Admin for expert help.<\/p>\n\n\n\n<p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><a href=\"https:\/\/www.supportpro.com\/freecheckup.php\"><\/a><\/span><\/span><\/p>\n\n\n\n<div class=\"wp-block-media-text alignwide has-media-on-the-right is-stacked-on-mobile is-vertically-aligned-center has-white-background-color has-background\"><div class=\"wp-block-media-text__content\">\n<p class=\"has-large-font-size\">Partner with <strong>SupportPRO<\/strong> for 24\/7 proactive cloud support that keeps your business secure, scalable, and ahead of the curve.<\/p>\n\n\n\n<!--HubSpot Call-to-Action Code --><span class=\"hs-cta-wrapper\" id=\"hs-cta-wrapper-3350a795-db50-482f-9911-301930d1b1be\"><span class=\"hs-cta-node hs-cta-3350a795-db50-482f-9911-301930d1b1be\" id=\"hs-cta-3350a795-db50-482f-9911-301930d1b1be\"><!--[if lte IE 8]><div id=\"hs-cta-ie-element\"><\/div><![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/3350a795-db50-482f-9911-301930d1b1be\" ><img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-3350a795-db50-482f-9911-301930d1b1be\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/3350a795-db50-482f-9911-301930d1b1be.png\"  alt=\"Contact Us today!\"\/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '3350a795-db50-482f-9911-301930d1b1be', {\"useNewLoader\":\"true\",\"region\":\"na1\"}); <\/script><\/span><!-- end HubSpot Call-to-Action Code -->\n<\/div><figure class=\"wp-block-media-text__media\"><img fetchpriority=\"high\" decoding=\"async\" width=\"904\" height=\"931\" src=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png\" alt=\"guy server checkup\" class=\"wp-image-12943 size-full\" srcset=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png 904w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-291x300.png 291w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-768x791.png 768w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-585x602.png 585w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In a Plesk-managed Linux server, administrators may sometimes need to retrieve mailbox details for a specific domain. This can be useful for auditing, troubleshooting, or managing email accounts. Plesk stores&hellip;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-403","post","type-post","status-publish","format-standard","hentry","category-miscellaneous"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=403"}],"version-history":[{"count":5,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/403\/revisions"}],"predecessor-version":[{"id":16574,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/403\/revisions\/16574"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}