Linux mail

Roundcube webmail behind haproxy causing browser redirection issue

I’ve recently installed iRedmail Opensource mail solution for my domain thesudoer.com.

Roundcube  webmail can be installed during installation. IRedmail will allow you to choose either nginx or apache web server to host webmail and iredadmin portal.

I’ve had some issue with browser redirection loop once the iRedmail server is configured to sit behind the load balancer, in my case, behind HAPRoxy.

The out of the box configuration of iRedmail with apache, has configured roundcube webmail to do an auto redirect from http to https. – this cause some issues on my current setup, as all my front end systems are being terminated at a load balancer, which does SSL offloading including auto redirect from http to https.

Editing the following php file, and configuring force_https option to false resolves this issue.

/var/www/roundcubemail/config/config.inc.php

// SYSTEM
$config['force_https'] = false;

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.