autoconfig autodiscover port number

infomaniac50

Member
Jan 26, 2011
6
0
51
Just outside of the singularity
cPanel Access Level
Root Administrator
Is there a way to change the default SMTP port number for autoconfig and autodiscover requests? Currently it sends 465 but I need it to send 587.

I can't find any documentation on the cgi scripts themselves. Is the source code for these scripts located somewhere on the server, github or simply proprietary?
 

infomaniac50

Member
Jan 26, 2011
6
0
51
Just outside of the singularity
cPanel Access Level
Root Administrator
Have you changed the port number here?
WHM »Service Configuration »Service Manager, Exim Mail Server (on another port)
I changed the port number just now with no effect. I checked the enabled box but not the monitor. I set the field to 587 only. I did not add any other ports separated by commas.

Sending a POST request with XML data is what I used to test it.
Code:
https://<!-- Host Address -->/autodiscover/autodiscover.xml
Code:
<?xml version="1.0" encoding="utf-8" ?>
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
    <Request>
        <EMailAddress><!-- Email Address --></EMailAddress>
        <AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema>
    </Request>
</Autodiscover>
I got this response.
Code:
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
    <Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
        <User>
            <DisplayName><!-- Email Address --></DisplayName>
        </User>
        <Account>
            <AccountType>email</AccountType>
            <Action>settings</Action>
            <Protocol>
                <Type>IMAP</Type>
                <Server><!-- Host Address --></Server>
                <Port>993</Port>
                <DomainRequired>off</DomainRequired>
                <SPA>off</SPA>
                <SSL>on</SSL>
                <AuthRequired>on</AuthRequired>
                <LoginName><!-- Email Address --></LoginName>
            </Protocol>
            <Protocol>
                <Type>SMTP</Type>
                <Server><!-- Email Address --></Server>
                <Port>465</Port>
                <DomainRequired>off</DomainRequired>
                <SPA>off</SPA>
                <SSL>on</SSL>
                <AuthRequired>on</AuthRequired>
                <LoginName><!-- Email Address --></LoginName>
            </Protocol>
        </Account>
    </Response>
</Autodiscover>
 

infomaniac50

Member
Jan 26, 2011
6
0
51
Just outside of the singularity
cPanel Access Level
Root Administrator
Did you open said port in your firewall as well?
Yes. We don't use port 465 and 587 has been in use for some time now. As part of a PCI compliance process we disabled TLS on connect by setting it to port 466 in Exim's advanced configuration.

The standard port number for submission is 587 and 465 has been deprecated for quite a while now.

tools.ietf.org/html/rfc6409

tools.ietf.org/html/rfc2487

en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol#Ports
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
To update, the user was advised that this feature does not currently offer the ability to implement a custom port number. The advice provided was to add feedback and vote for the following feature request that seeks out the ability to customize this information:

Custom autoconfig.domain.com

Thank you.