Articles in this section

Is it possible to make mail autodiscover in Plesk use port 587 by default?

kb: how-to Plesk for Linux

Applicable to:

  • Plesk for Linux

Question

Is it possible to make mail autodiscover in Plesk use port 587 by default instead of port 465?

Answer

This functionality is yet to be implemented in Plesk. 

If it is important for you to have this functionality to be implemented, please take a part in product improvement and submit it as an idea (or vote for it if it already exists on any of the tabs) to our development team at https://features.plesk.com/.

Note: Once submitted, every idea goes through an internal review by our development team. If an idea is selected, it should be found on the tab "Under Consideration".

For the time being, the following workaround can be used:

Workaround

Modify the autodiscover configuration files /usr/local/psa/admin/htdocs/mailconfig/autodiscover.xml, /usr/local/psa/admin/htdocs/mailconfig/autoconfig.xml and /usr/local/psa/admin/htdocs/mailconfig/email.mobileconfig and perform it automatically with an event handler after Plesk Update:

  1. Connect to the server using SSH.
  2. Create the file /root/autodiscover_587.sh​ with the following content:

    #!/bin/sh

    # set port 587 for Plesk autodiscover
    sed -i 's/{{SMTP_PORT}}/587/g' /usr/local/psa/admin/htdocs/mailconfig/autodiscover.xml
    sed -i 's/{{SMTP_PORT}}/587/g' /usr/local/psa/admin/htdocs/mailconfig/autoconfig.xml
    sed -i 's/{{SMTP_PORT}}/587/g' /usr/local/psa/admin/htdocs/mailconfig/email.mobileconfig

  3. Make the file created in step 2 executable:

    # chmod 755 /root/autodiscover_587.sh

  4. Execute the script one time:

    # sh /root/autodiscover_587.sh

  5. Log in to Plesk and go to Tools & Settings > Event Manager.

  6. Create an event handler by clicking Add Event Handler with the following settings:

    Click Install

  7. Click OK.
Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.