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.
-
Go to Tools & Settings and click Updates and Upgrades.
-
On the Updates and Upgrades page, click Add/Remove Components.
-
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
-
-
Click Continue to begin the installation.
-
Connect to your Plesk server via SSH.
-
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 serverNote: 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
-
Start Plesk Installer:
# plesk installer
-
Proceed to the "Main components list for Plesk" menu.
-
In the "Main components list for Plesk" menu, expand "Mail hosting".
-
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
-
-
Go back to the "Main components list for Plesk" menu.
-
Begin the installation.
Additional Information
-
Instructions for Plesk on Windows Server are available in this KB article.
-
To configure external SMTP server in Plesk, visit this KB article.
Comments
0 comments
Please sign in to leave a comment.