Author Topic: Use Rainloop instead of Roundcube  (Read 1021 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Use Rainloop instead of Roundcube
« on: September 12, 2016, 03:46:24 PM »
Anybody that is using Varnish cache may run into issues with Roundcube messing up.. Well have no fear! I had the same issue.

So I switched from Roundcube to Rainloop (http://www.rainloop.net/) and works flawlessly.

After installing it, put this in your default.vcl and restart Varnish Server. It worked for me!

It's way more modern and has a better design to it than Roundcube to me.

sub vcl_recv {

if (req.url ~ "^/rainloop") {
          return (pass);
}
if (!(req.url ~ "rainloop")) {
unset req.http.cookie;
   }
if (req.url ~ "rainloop") {
      return(pipe);
   }

}

sub vcl_hash {
 if(req.url !~ "^/(rainloop).*$" ){
    set req.url = regsuball(req.url,"\?.*$","");
   }
}


sub vcl_fetch {
        if (req.url ~ "^/rainloop") {
    return (hit_for_pass);
    }
}