Start a conversation

Proxy Error: "The proxy server received an invalid response from an upstream server." When Accessing Webmail

Overview

When accessing Webmail, you might get the following Proxy Error message.

502: Proxy Error
502 Proxy Error
PROXY ERROR
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /webmail/api/jsonrpc/.
Reason: Error reading from remote server

mceclip0.png
 

This article provides information on how to resolve this issue. 

 

Back to top


 

Prerequisites

You should configure Apache Reverse Proxy Server in front of Kerio Connect.

 

Back to top


 

Process

  1. Log in to your Kerio Connect server and stop Kerio Connect service.
  2. Navigate to Kerio Connect installation folder.
    Default folders are as follows:
    • Windows: C:\Program Files\Kerio\MailServer
    • macOS: /usr/local/kerio/mailserver
    • Linux: /opt/kerio/mailserver
  3. Open the mailserver.cfg file, and modify the LongPollTimeout variable under <table name="Webmail">, as shown below.

    <variablename="LongPollTimeout">30</variable>
     
    longpoll.png
     
    Note: The default value is 600.
  4. Save the changes.
  5. Start Kerio Connect.

 

Back to top


 

Confirmation

Webmail can be accessed without receiving the Proxy Error message.

 

Back to top


 

Supplemental Information

The LongPollTimeout variable indicates the timeout period in seconds, which is used for requests utilizing the Long Polling technique. Webmail client needs to instantly get updates about emails, calendar actions, etc., without page reload. Thus, Long Polling technique is used to ensure that.

 

Back to top


  

Useful Resources

Nginx in front of Kerio Connect

 

Back to top


 

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted
  3. Updated

Comments