{"id":546,"date":"2014-08-13T21:14:04","date_gmt":"2014-08-13T21:14:04","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=546"},"modified":"2014-08-13T21:14:04","modified_gmt":"2014-08-13T21:14:04","slug":"deleting-and-re-creating-a-domain-in-plesk","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2014\/08\/13\/deleting-and-re-creating-a-domain-in-plesk\/","title":{"rendered":"Deleting and Re-creating email for a domain in plesk"},"content":{"rendered":"<p>Let&#8217;s say that you need to delete a plesk domain with email and recreate it. <\/p>\n<p>1. Recording the email addresses and passwords (over ssh you can use the command \/usr\/local\/psa\/admin\/bin\/mail_auth_view to show addresses and passwords)<\/p>\n<p>2. Making a copy or renaming of the folder \/var\/qmail\/mailnames\/domain.com to something like \/var\/qmail\/mailnames\/domain.com.BAK<\/p>\n<p>3. Deletion of the Alias and addresses<\/p>\n<p>4. Creating domain.com as a domain in plesk<\/p>\n<p>5. Manually recreating the email addresses for domain.com under the Mail tab for the domain in plesk.<\/p>\n<p>6. Moving the \/var\/qmail\/mailnames\/domain.com.BAK directory back to its original location or rename back to \/var\/qmail\/mailnames\/domain.com<\/p>\n<p>7. Ensure that the owner and group of the directory is popuser:popuser by running the command (chown -R popuser:popuser \/var\/qmail\/mailnames\/domain.com)<\/p>\n<p>8. Run the plesk tool to rebuild the mail handlers. (\/usr\/local\/psa\/admin\/sbin\/mchk &#8211;with-spam)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s say that you need to delete a plesk domain with email and recreate it. 1. Recording the email addresses and passwords (over ssh you can use the command \/usr\/local\/psa\/admin\/bin\/mail_auth_view to show addresses and passwords) 2. Making a copy or renaming of the folder \/var\/qmail\/mailnames\/domain.com to something like \/var\/qmail\/mailnames\/domain.com.BAK 3. Deletion of the Alias and &#8230; <a title=\"Deleting and Re-creating email for a domain in plesk\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2014\/08\/13\/deleting-and-re-creating-a-domain-in-plesk\/\" aria-label=\"Read more about Deleting and Re-creating email for a domain in plesk\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86],"tags":[],"class_list":["post-546","post","type-post","status-publish","format-standard","hentry","category-plesk"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/546","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=546"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/546\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}