How to switch from Qmail to Postfix and vice-versa in Linux Plesk Server?

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

Plesk -> Settings -> Services Management

OR you can execute the following command from SSH

# /usr/local/psa/admin/bin/mailmng --features | grep SMTP_Server 
$features['SMTP_Server'] = "QMail"; 
$features['SMTP_Server_package'] = "psa-qmail";

The above output shows that Qmail is currently your Mail server. Plesk offers an ‘autoinstaller’ script to install/upgrade various components, and is used to switch from Qmail to Postfix OR vice-versa.

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.

Stop the SMTP service:

# /usr/local/psa/admin/sbin/mailmng --stop-smtpd

Switch MTA from Qmail to Postfix:

# /usr/local/psa/admin/sbin/autoinstaller --select-release-current \ 
--install-component postfix

OR switch MTA from PostFix to Qmail:

# /usr/local/psa/admin/sbin/autoinstaller --select-release-current \ 
--install-component qmail

That’s it.

Note: The change of mail server won’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.

This entry was posted on Sunday, January 2nd, 2011 and is filed under Plesk Management. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

One Response to “How to switch from Qmail to Postfix and vice-versa in Linux Plesk Server?”

  1. antony

    it worked..thank you for sharing this…