Articles in this section

How to install/change a local mail server in Plesk for Linux

kb: how-to Plesk for Linux ABT: Group B

Applicable to:

  • Plesk for Linux

Question

How to install a local mail server or switch between mail servers in Plesk for Linux?

Answer

Plesk allows to install the following mail components and switch between them using Plesk Installer:

  • SMTP servers

    - Postfix
    - Qmail

  • IMAP/POP3 servers

    - Dovecot
    - Courier

Note: Changing SMTP server does not affect mailboxes, but changing IMAP server may affect mailboxes. Visit this KB article to learn more about potential issues.

 

Installing/changing the mail server via the Plesk interface

 

  1. Log in to Plesk.

  2. Go to Tools & Settings and click Updates and Upgrades.


    Updates_and_Upgrades.png

  3. On the Updates and Upgrades page, click Add/Remove Components.


    Plesk_Installer_-_Add_Remove_Components.png

  4. On the Add/Remove Components page, expand Mail Hosting and select required mail components:

    • SMTP servers

      - Postfix (default)
      - Qmail

    • IMAP/POP3 servers

      - Dovecot (default)
      - Courier


      Screenshot_2019-01-18_Plesk_Installer.png

  5. Click Continue to begin the installation.

Installing MailEnable mail server via a command-line interface

 

  1. Connect to your Plesk server via SSH.

  2. Run these commands to:

    • install mail components:

      # plesk installer add --components <mail_component>

    • uninstall mail components:

      # plesk installer remove --components <mail_component>

      Mail component names:

      • postfix - SMTP server (default installation)

      • qmail - SMTP server

      • dovecot - IMAP/POP3 server (default installation)

      • courier - IMAP/POP3 server

        Note: IMAP/POP3 server is installed / removed along with SMTP server.

         

    Examples

    • To install Postfix SMTP server with Dovecot IMAP/POP3 server OR replace installed Qmail SMTP server with Postfix, run:

      # plesk installer add --components postfix

    • To replace installed Courier IMAP/POP3 server with Dovecot, run:

      # plesk installer add --components dovecot

    • To remove installed Postfix SMTP server with Dovecot IMAP/POP3 server, run:

      # plesk installer remove --components postfix

 

Interactive mode

  1. Start Plesk Installer:

    # plesk installer

  2. Proceed to the "Main components list for Plesk" menu.

  3. In the "Main components list for Plesk" menu, expand "Mail hosting".

  4. In the "Primary components list/mail" menu, select required mail components using their numbers:

    • SMTP servers

      - Postfix (default)
      - Qmail

    • IMAP/POP3 servers

      - Dovecot (default)
      - Courier


    Terminal.PNG

  5. Go back to the "Main components list for Plesk" menu.

  6. Begin the installation.

 

Additional Information

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.