• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Autodiscover/Autoconfig SMTP port

Geraldo V Vieira

New Pleskian
Hi

dose anyone know how to force autodiscover/auto config to use port 587 instead of 465? I have changed the settings for clientConfig.smtpPortEncrypted in panel.ini to 587 but it's still using 465.
 
This functionality is yet to be implemented by Plesk. There is a feature suggestion created on Plesk UserVoice page:

Fully Customizable Autodiscover Settings

As a possible workaround, you can use the following instruction:

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

  1. Create the file /root/autodiscover_587.sh with the following content:
    Code:
    #!/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
  2. Make the file created in step 2. executable:
    Code:
    # chmod 755 /root/autodiscover_587.sh
  3. Execute the script one time:
    Code:
    # sh /root/autodiscover_587.sh
  4. Log in to Plesk Interface and navigate to Tools & Settings > Event Manager
  5. Create an event handler by clicking Add Event Handler with the following settings:
mceclip0.png
 
Hi IgorG

Thank you so much for replying to my question. The above worked very well for iPhones with the built in email client. Of course, I added the following for iPhones:

PHP:
sed -i 's/{{SMTP_PORT}}/587/g' /usr/local/psa/admin/htdocs/mailconfig/email.mobileconfig

But when using Outlook or Android, it doesn't work. It fetches all the settings information, but with port 465. I made sure that autodiscover.xml and autoconfig.xml both have port 587 set, and I also made sure that the DNS setting for _smtps._tcp.example.com also had port 587 set. When trying to setup on Outlook or Android, it still fetches port 465 still. Any idea why that is?
 
Hi, can confirm that on Android 10, Samsung phone with builtin email client, it uses 465 instead of the specified 587
 
Back
Top