Question
How to manage mail autodiscover in Plesk?
Limitations
-
Currently, autodiscover is not compatible with the latest Outlook version 2019 and O365. These mail clients use Microsoft proxy servers for autodiscover requests, and this configuration is not is supported in Plesk.
-
When a custom mail server is configured in Tools & Settings > Mail Server Settings, settings may not be obtained by some applications on Android devices. It depends on the method used by an application to fetch mail settings using autodiscover.
The corresponding request https://jira.plesk.ru/browse/PPPM-13140 was created to address this.
-
Not available for domains without hosting
-
Domain should be secured with valid SSL/TLS certificate.
-
Plesk does not use “mail.example.com” or “imap.example.com”. It uses domain name itself like “example.com” as SMTP/IMAP hostname for automatic configuration.
-
Plesk Premium Email has its own features for automatic configuration, it disables autodiscover by Plesk if installed.
Configuration
Autodiscover is enabled by default on all new Plesk Obsidian installations for all domains.
Click here to learn how to enable it for Plesk upgraded to Obsidian from previous versions.
-
Go to Tools & Settings > Mail Server Settings > Settings tab > General options > Enable the Enable mail autodiscover option.
-
Next, enable it for the particular domain:
-
- Enable it under Domains > example.com > Mail Settings. Activate option Enable mail autodiscover
- If you need to enable autodiscover for all domains follow the article #360012848199
-
-
A valid SSL certificate is required. Make sure you have one assigned under Mail Settings tab or issue it using “SSL It” including option “Assign the certificate to mail domain”.
-
This step is required only if you create DNS records directly under registrar and not in Plesk. Create SRV records manually under DNS registrar:
Record type
Domain name
Service
Protocol
Priority
Weight
Port
Target
SRV
example.com
_smtps
tcp
0
0
465
example.com
SRV
example.com
_imaps
tcp
0
0
993
example.com
SRV
example.com
_pop3s
tcp
0
0
995
example.com
Troubleshooting
Verify that server generates correctly configuration for mail clients
-
Open tool to run curl commands online
-
Insert the below string, replace “example.com” with your domain name and “[email protected]” with mailbox name which exists, then click “Run”.
# curl https://example.com/mail/[email protected]
-
If content section is not empty and contains hostnames, ports means that server generates configuration correctly.
Verify that SSL certificates are correct
-
Open online SSL Checker tool.
-
Test SMTPs specifying your website name and smtps port:
example.com:465
-
Next test IMAPs using website name and imaps port:
example.com:993
-
If there is an error about invalid certificate is shown double check domain mail settings using article #115001446174