Applicable to:
- Plesk
Question
How to use external an SMTP server in Plesk?
Answer
-
Go to Tools & Settings > Updates (or Updates & Upgrades).
-
On the Updates and Upgrades page, click Add/Remove Components.
-
On the Add/Remove Components page, expand Mail hosting and select MSMTP (relay only).
Note: If local mail server is installed, it will be removed along with other mail components like Mailman, SpamAssassin, Dovecot.
-
Click Continue to begin the installation.
-
Once the component is installed, go to Tools & Settings > External SMTP Server.
-
Select Allow Plesk to send email notifications through this SMTP server to make notifications be sent via the external SMTP server.
-
Specify external SMTP server settings and click OK.
-
-
Go to Tools & Settings > External SMTP Server.
-
Uncheck the setting Use the mail server installed with Plesk and the default mail account created by Plesk.
-
Specify external SMTP server settings.
Note: WordPress plugins will not be able to send mail using external SMTP settings from Plesk. It is required to install and configure additional WordPress plugin, e.g., SMTP Mail, in order to use external SMTP with WordPress.
Comments
9 comments
Is there any way to find out why this install is failing for me? I'm trying to install the MSMTP component in a highly restrictive environment, so I believe the yum utility is unable to access the necessary url or IP being used to download this component. Also, is there a way to install components via command line?
@Blake,
The cause of failing install may be found in log file /var/log/plesk/install/autoinstaller3.log
To install components via CLI, use the command "plesk installer" and follow the instructions from the appeared menu.
Looks like these are old steps.
Don't work right now with Plesk Obsidian 18.0.25. for me.
If I try to install MSMTP (relay only), Plesk uninstalls Postfix and also Dovecot.
I try to continue, then I try to install only Dovecot and Plesk uninstalls my MSMTP (relay only) and Installs the Postfix again.
It's a loop process.
@Santiago,
MSMTP cannot be used with local mail server like Postfix. MSMTP is used as external SMTP server for outgoing mail for notifications only, that's the only aim of it in Plesk.
As it is stated in this article: "If local mail server is installed, it will be removed along with other mail components like Mailman, SpamAssassin, Dovecot."
See more details here: https://docs.plesk.com/en-US/obsidian/administrator-guide/mail/using-plesk-without-the-mail-server.72346/
It is not possible to use local mail server in Plesk like Postfix AND external SMTP server.
If information from the documentation above does not address your request, let us know why you want to use local and external mail servers at once in Plesk.
Hi Julia,
Thanks for the information.
The situation where we need the local mail server and the external SMTP simultaneously is when we want to continue to use the Plesk to manage the domains e-mail accouts/mailboxes and use an external SMTP service for example to send newsletters for the same domain.
@José Graça,
In this case we recommend using Plesk mail server only for this purpose. Newsletters scripts can be adjusted to include Plesk SMTP server instead of the external one.
Yulia Plokhotnikova
Your solution is not valid since many cloud providers, including AWS, blocks the SMTP port. Reason of my request.
@All
I was able to do the required configuration and additionally use a different relay per domain changing the postfix configuration at linux level.
José Graça I'm glad to hear you were able to implement such a configuration. To see such a functionality in Plesk you may describe it and post as a feature request on our portal.
For those who might be facing SMTP blocks: it is possible to request AWS to unblock it or configure to use relay host.
I need to do more advanced config and I need your advice, using 2 Plesk Obsedian servers one server to act as master mail proxy to relay email and also to receive emails then forward it to the other slave Plesk server which has the mailboxes.
I did that with Cpanel for about 6 years without issues, can I do this using Plesk?
I searched and tried but had issues, also I am afraid on an upgrade Plesk may overwrite main.cf
Advice please?
Please sign in to leave a comment.