Starting on October 19, 2021, we will enable single-sign-on for our Plesk Support Center to provide a seamless login/account experience. This implies that you’ll be able to use a single account across any of our web-facing properties.
To be prepared for this change and to avoid the need to register during your next ticket submission after the change, we encourage you to create an account here before October 19 using the same email address as your current Zendesk login (support account). It’s essential that you use the same email address on our support center to ensure that your tickets stay attached to the same account. You will continue to use ZenDesk authentication until we switch over to single-sign-on on October 19th.

How to configure an external SMTP server in Plesk

Follow

Comments

13 comments

  • Avatar
    Blake

    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?

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    @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.

    0
    Comment actions Permalink
  • Avatar
    Santiago (Edited )

    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.

    0
    Comment actions Permalink
  • Avatar
    Yulia Plokhotnikova

    @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.

    1
    Comment actions Permalink
  • Avatar
    José Graça

    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.

    0
    Comment actions Permalink
  • Avatar
    Yulia Plokhotnikova

    @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.

    0
    Comment actions Permalink
  • Avatar
    José Graça

    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.

     

     

    0
    Comment actions Permalink
  • Avatar
    Anton Maslov

    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.

    0
    Comment actions Permalink
  • Avatar
    Fouad Ahmed Fouad

    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?

    0
    Comment actions Permalink
  • Avatar
    Thomas Hellwig

    Is it somehow possible to test the mail delivery? Since the switch to the external smtp server I got no mail from WP Toolkit anymore for example...

    1
    Comment actions Permalink
  • Avatar
    Steven

    To test mail delivery, goto Tools & Settings > Resources > Mass Email. Then send a message to the admin which is you.

    1
    Comment actions Permalink
  • Avatar
    Santiago (Edited )

    Via SSH:
    echo -e "Subject: Test Mail\r\n\r\nThis is a test mail." | msmtp --from mail@gmail.com -t mail@gmail.com --debug

    Note: Need to change the FROM and T (to).

    I use Mailgun as a mail delivery service and my postmaster email account as a sender.
    And maybe you get something like this after all the debug:

    This is a test mail.
    250 Great success
    QUIT
    See you later. Yours truly, Mailgun

    0
    Comment actions Permalink
  • Avatar
    Patrick Hofmann (Edited )

    I cant get it to work even if it should be pretty straight forward:

    [2021-10-12 17:18:37.061] ************** ERR [panel] Password reset request for email '****@**************.org' (user '*********') could not be delivered: 'Unable to send the secret code: Unable to send mail: Unknown error'

    I double checked the settings and also tryed 2 different mail servers. Is there any way to see WHAT the error is? 

    Kind regards 
    Patrick

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request