{"id":3091,"date":"2025-12-11T06:03:35","date_gmt":"2025-12-11T06:03:35","guid":{"rendered":"https:\/\/pheonixsolutions.com\/knowledge-base\/?p=3091"},"modified":"2025-12-11T06:03:39","modified_gmt":"2025-12-11T06:03:39","slug":"how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/12\/11\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\/","title":{"rendered":"How to Reset a Webmail (cPanel Email) Password via CLI (Command Line Interface)?"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Introduction<\/h3>\n\n\n\n<p>While managing a WHM\/cPanel server, you may encounter a situation where a user forgets their <strong>webmail (email account) password<\/strong> but doesn\u2019t have cPanel access to reset it. In such cases, the easiest method is to reset the email password directly through the server using <strong>SSH\/CLI<\/strong>. This is fast, secure, and doesn\u2019t require logging into the cPanel interface.<\/p>\n\n\n\n<p><strong>Prerequisites:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SSH access to the server (root or sudo privileges).<\/li>\n\n\n\n<li>cPanel\/WHM installed and running on the server.<\/li>\n\n\n\n<li>The email account (<a>username@domain.com<\/a>) we want to reset must already exist.<\/li>\n\n\n\n<li>Basic familiarity with Linux command-line operations.<\/li>\n<\/ul>\n\n\n\n<p><strong>Step1:<\/strong><\/p>\n\n\n\n<p>Login to your server via SSH as root<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>$ ssh root@server-ip<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Step 2:<\/strong><\/p>\n\n\n\n<p>Use the following command structure.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>$ uapi &#8211;user=$CPANELUSER Email passwd_pop email=$EMAIL_NAME password=$NEW_PASSWORD<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>cPanel User: <code>example<\/code><\/li>\n\n\n\n<li>Email Account: <code>info@example.com<\/code><\/li>\n\n\n\n<li>New Password: <code>NewPass@123<\/code><\/li>\n<\/ul>\n\n\n\n<p>Note: Make sure the new password meets the server\u2019s password strength policy.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Conclusion:<\/strong><\/h3>\n\n\n\n<p>Resetting a webmail password through WHM is not always possible if you don&#8217;t have access to the user\u2019s cPanel account. In such cases, CLI proves to be a powerful and reliable solution. Using the UAPI command, administrators can quickly reset any email password securely without needing UI access. This method is ideal for rapid support actions and secure server management.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction While managing a WHM\/cPanel server, you may encounter a situation where a user forgets their webmail (email account) password but doesn\u2019t have cPanel access to reset it. In such cases, the easiest method is to reset the email password directly through the server using SSH\/CLI. This is fast, secure, and doesn\u2019t require logging into ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/12\/11\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3091","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Reset a Webmail (cPanel Email) Password via CLI (Command Line Interface)? - PheonixSolutions Knowledge-Base<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/12\/11\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Reset a Webmail (cPanel Email) Password via CLI (Command Line Interface)? - PheonixSolutions Knowledge-Base\" \/>\n<meta property=\"og:description\" content=\"Introduction While managing a WHM\/cPanel server, you may encounter a situation where a user forgets their webmail (email account) password but doesn\u2019t have cPanel access to reset it. In such cases, the easiest method is to reset the email password directly through the server using SSH\/CLI. This is fast, secure, and doesn\u2019t require logging into ..Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/12\/11\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\/\" \/>\n<meta property=\"og:site_name\" content=\"PheonixSolutions Knowledge-Base\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-11T06:03:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-11T06:03:39+00:00\" \/>\n<meta name=\"author\" content=\"Saikrishna Areddy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Saikrishna Areddy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/12\\\/11\\\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/12\\\/11\\\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\\\/\"},\"author\":{\"name\":\"Saikrishna Areddy\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/8a5f4b5a8e71659e5a3bbee27663d9ba\"},\"headline\":\"How to Reset a Webmail (cPanel Email) Password via CLI (Command Line Interface)?\",\"datePublished\":\"2025-12-11T06:03:35+00:00\",\"dateModified\":\"2025-12-11T06:03:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/12\\\/11\\\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\\\/\"},\"wordCount\":224,\"commentCount\":0,\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/12\\\/11\\\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/12\\\/11\\\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/12\\\/11\\\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\\\/\",\"name\":\"How to Reset a Webmail (cPanel Email) Password via CLI (Command Line Interface)? - PheonixSolutions Knowledge-Base\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#website\"},\"datePublished\":\"2025-12-11T06:03:35+00:00\",\"dateModified\":\"2025-12-11T06:03:39+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/8a5f4b5a8e71659e5a3bbee27663d9ba\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/12\\\/11\\\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/12\\\/11\\\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/12\\\/11\\\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Reset a Webmail (cPanel Email) Password via CLI (Command Line Interface)?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/\",\"name\":\"PheonixSolutions Knowledge-Base\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/8a5f4b5a8e71659e5a3bbee27663d9ba\",\"name\":\"Saikrishna Areddy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g\",\"caption\":\"Saikrishna Areddy\"},\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/author\\\/saikrishna\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Reset a Webmail (cPanel Email) Password via CLI (Command Line Interface)? - PheonixSolutions Knowledge-Base","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/12\/11\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\/","og_locale":"en_US","og_type":"article","og_title":"How to Reset a Webmail (cPanel Email) Password via CLI (Command Line Interface)? - PheonixSolutions Knowledge-Base","og_description":"Introduction While managing a WHM\/cPanel server, you may encounter a situation where a user forgets their webmail (email account) password but doesn\u2019t have cPanel access to reset it. In such cases, the easiest method is to reset the email password directly through the server using SSH\/CLI. This is fast, secure, and doesn\u2019t require logging into ..Read more","og_url":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/12\/11\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\/","og_site_name":"PheonixSolutions Knowledge-Base","article_published_time":"2025-12-11T06:03:35+00:00","article_modified_time":"2025-12-11T06:03:39+00:00","author":"Saikrishna Areddy","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Saikrishna Areddy","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/12\/11\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/12\/11\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\/"},"author":{"name":"Saikrishna Areddy","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/8a5f4b5a8e71659e5a3bbee27663d9ba"},"headline":"How to Reset a Webmail (cPanel Email) Password via CLI (Command Line Interface)?","datePublished":"2025-12-11T06:03:35+00:00","dateModified":"2025-12-11T06:03:39+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/12\/11\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\/"},"wordCount":224,"commentCount":0,"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/12\/11\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/12\/11\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\/","url":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/12\/11\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\/","name":"How to Reset a Webmail (cPanel Email) Password via CLI (Command Line Interface)? - PheonixSolutions Knowledge-Base","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#website"},"datePublished":"2025-12-11T06:03:35+00:00","dateModified":"2025-12-11T06:03:39+00:00","author":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/8a5f4b5a8e71659e5a3bbee27663d9ba"},"breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/12\/11\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/12\/11\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/12\/11\/how-to-reset-a-webmail-cpanel-email-password-via-cli-command-line-interface\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"How to Reset a Webmail (cPanel Email) Password via CLI (Command Line Interface)?"}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#website","url":"https:\/\/pheonixsolutions.com\/knowledge-base\/","name":"PheonixSolutions Knowledge-Base","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/knowledge-base\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/8a5f4b5a8e71659e5a3bbee27663d9ba","name":"Saikrishna Areddy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g","caption":"Saikrishna Areddy"},"url":"https:\/\/pheonixsolutions.com\/knowledge-base\/author\/saikrishna\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/3091","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=3091"}],"version-history":[{"count":3,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/3091\/revisions"}],"predecessor-version":[{"id":3094,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/3091\/revisions\/3094"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=3091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=3091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=3091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}