无法通过HAProxy登录roundcube

Can't log in to roundcube through HAProxy

对于学校项目,我们必须设置网络邮件。我选择了 iRedMail。我们选择 HAProxy 作为我们其他服务(网络托管、openvas、VPS)的负载均衡服务。负载均衡器将用户发送到我创建的正确的 iRedMail 服务器,但是当我尝试使用现有帐户登录时(如果我直接在没有负载均衡器的 iRedMail 服务器 roundcube 页面上使用该帐户登录,它会起作用)我不能登录并收到消息:"Invalid request! No data was saved"。

HAProxy 配置文件 /etc/haproxy/haproxy.cfg 具有以下配置:

frontend http
    bind 10.2.80.14:80
    mode http
    acl host_mail hdr(host) mail.8.transtcp.com
    use_backend mail if host_mail

backend mail
    balance roundrobin
    cookie SERVERID insert indirect nocache
    cookie JSESSIONID prefix nocache
    option forwardfor
    reqadd X-Forwarded-Proto:\ http
    server mail 192.168.20.9:443 check cookie s1 ssl verify none

如您所见,已尝试使用 cookie 和转发 http,但没有成功。我还没有做什么是必需的?

已经得到答案:没有有效的 SSL 证书,HAProxy 无法到达 roundcube 的后端。添加有效的 SSL 证书解决了它。