Symptoms
- Plesk Premium Email is installed on the server
- It is not possible to send, receive or download messages via mail client, both via ActiveSync and IMAP. No errors are displayed in the client.
- The following error can be found in Guam's
journallog:
# journalctl -xeu guam
...
Jul 21 10:27:58 example.server.com guam[32223]: 10:27:58.081 [info] Socket closed or timed out during TLS handshake: closed
Cause
Plesk Premium Email bug: if Apache Localhost mode is disabled on the server and the hotfix from article Websites hosted in Plesk are not accessible after a recent Apache update: 421 Misdirected Request has been applied, it triggers a bug in Plesk Premium Email extension because it does not respect the Apache's Localhost mode settings and keeps treating the proxy_pass value as 127.0.0.1:7081 anyway.
The issue has been identified as a bug, tracked under ID #EXTCERT-4619, fixed in update of the Plesk Premium Email extension 16.15.9.
Resolution
Update Plesk Premium Email extension to the latest version.
If the update does not work, apply one of the following workarounds
Note: workarounds are not compatible with each other, apply only one
Warning: enabling Localhost mode will rebuild all web server configuration files on the server and cause downtime, do this only during a maintenance window
- Connect to the server via SSH
-
Execute the following command:
# plesk bin apache --listen-on-localhost true
- Connect to the server via SSH.
-
Delete the existing
/etc/nginx/conf.d/fixssl.conffile:# rm /etc/nginx/conf.d/fixssl.conf
-
Create the
/etc/nginx/conf.d/fixssl.conffile anew and add the following content inside it:CONFIG_TEXT: proxy_ssl_server_name on;
proxy_ssl_session_reuse off;
map $request_uri $proxied_host {
~*^/autodiscover/autodiscover.xml webmail.$host;
~*^/(\.well-known/autoconfig/|)mail/config-v1.1.xml webmail.$host;
~*/Microsoft-Server-ActiveSync webmail.$host;
~*/iRony webmail.$host;
default $host;
}
proxy_ssl_name $proxied_host;4. Reload the Nginx configuration with the following command:
# systemctl reload nginx.service
Comments
Please sign in to leave a comment.