Applicable to:
- Plesk for Linux
Question
Is it possible to make mail autodiscover use port 587 instead of the default port 465?
Answer
This functionality is yet to be implemented by Plesk. There are a couple of feature suggestions created on Plesk UserVoice page:
https://plesk.uservoice.com/forums/184549-feature-suggestions/suggestions/39949069
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:
-
Log in to Plesk via SSH
-
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 -
Make the file created in step 2. executable:
# chmod 755 /root/autodiscover_587.sh
-
Execute the script one time:
# sh /root/autodiscover_587.sh
-
Log in to Plesk Interface and navigate to Tools & Settings > Event Manager
-
Create an event handler by clicking Add Event Handler with the following settings:
-
Click OK
Comments
0 comments
Please sign in to leave a comment.