{"id":1236,"date":"2011-01-02T08:48:56","date_gmt":"2011-01-02T12:48:56","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=1236"},"modified":"2013-03-20T08:43:57","modified_gmt":"2013-03-20T12:43:57","slug":"how-to-switch-from-qmail-to-postfix-and-vice-versa-in-linux-plesk-server","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/how-to-switch-from-qmail-to-postfix-and-vice-versa-in-linux-plesk-server","title":{"rendered":"How to switch from Qmail to Postfix and vice-versa in Linux Plesk Server?"},"content":{"rendered":"<p>Plesk supports Qmail and Postfix mail servers, however, only one MTA (Message Transfer Agents) can be installed and used at a time. To check the current MTA in use, look at<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">Plesk -&gt; Settings -&gt; Services Management<\/span><\/pre>\n<\/blockquote>\n<p>OR you can execute the following command from SSH<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># \/usr\/local\/psa\/admin\/bin\/mailmng --features | grep SMTP_Server <\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">$features['SMTP_Server'] = \"QMail\"; <\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">$features['SMTP_Server_package'] = \"psa-qmail\";<\/span><\/pre>\n<\/blockquote>\n<p>The above output shows that Qmail is currently your Mail server. Plesk offers an &#8216;autoinstaller&#8217; script to install\/upgrade various components, and is used to switch from Qmail to Postfix OR vice-versa.<\/p>\n<p>Stop the SMTP service before you switch between the Mail servers, to avoid accepting of new emails and to deliver the emails that are in the mail queue. <strong><\/strong><\/p>\n<p>Stop the SMTP service:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># \/usr\/local\/psa\/admin\/sbin\/mailmng --stop-smtpd<\/span><\/pre>\n<\/blockquote>\n<p>Switch MTA from Qmail to Postfix:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># \/usr\/local\/psa\/admin\/sbin\/autoinstaller --select-release-current \\ <\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">--install-component postfix<\/span><\/pre>\n<\/blockquote>\n<p>OR switch MTA from PostFix to Qmail:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># \/usr\/local\/psa\/admin\/sbin\/autoinstaller --select-release-current \\ <\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">--install-component qmail<\/span><\/pre>\n<\/blockquote>\n<p>That&#8217;s it.<\/p>\n<p><strong>Note: <\/strong>The change of mail server won&#8217;t change the mail format and the directory location where the messages are stored. However, the emails in the mail queue will be removed since the MTA is reconfigured.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Plesk supports Qmail and Postfix mail servers, however, only one MTA (Message Transfer Agents) can be installed and used at a time. To check the current MTA in use, look at<\/p>\n<p>Plesk -&gt; Settings -&gt; Services Management<\/p>\n<p>OR you can execute the following command from SSH<\/p>\n<p># \/usr\/local\/psa\/admin\/bin\/mailmng &#8211;features | grep SMTP_Server<br \/>\n$features[&#8216;SMTP_Server&#8217;] = &#8220;QMail&#8221;;<br \/>\n$features[&#8216;SMTP_Server_package&#8217;] = &#8220;psa-qmail&#8221;;<\/p>\n<p>The above output shows that Qmail is currently your Mail server. Plesk offers an &#8216;autoinstaller&#8217; script to install\/upgrade various components, and is used to switch from Qmail to Postfix OR vice-versa.<br \/>\nStop the SMTP service [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[1161,1158,1162,1159,1160],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1236"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=1236"}],"version-history":[{"count":10,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1236\/revisions"}],"predecessor-version":[{"id":2267,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1236\/revisions\/2267"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=1236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=1236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=1236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}