1

Topic: Nginx reverse proxy to various functions included in iredmail

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.0 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
- Linux/BSD distribution name and version:  Debian Buster (10.5)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi

I have setup a new nginx reverse proxy, and would like to proxy the various web interfaces. Unfortunately, SOGo has me stuck.

I haven't touched much else other than the vhost on the mail server, and I've set it back to default (according to my memory, so I might have forgotten something).
I have only tested with roundcube mail and sogo, not iredadmin (haven't proxied that yet).

Roundcube works like it should, but with sogo I get HTTP 500 errors along with "XML Parsing Error: syntax error" errors; these are from the Firefox console. I should also note that CalDav and CarDav does indeed work through the proxy, so it's only the web interface.

The specific paths are these, both getting both errors:
https://sogo.example.com/SOGo/so/user@e … 1600194048
https://sogo.example.com/SOGo/so/user@e … ail/0/view

I have attached the files that I suspect you'd like to see.

I've tried connecting to mail.example.com/SOGo, that is without proxy, and it works like it should; it's only through proxy that the error occurs.

Is this something you can help with?

Post's attachments

backend-access.log 5.96 kb, file has never been downloaded. 

backend-vhost.conf 570 b, 5 downloads since 2020-09-15 

proxy-access.log 6.91 kb, file has never been downloaded. 

proxy-vhost.conf 1.59 kb, 6 downloads since 2020-09-15 

sogo.log 4.39 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by andrzej 2020-09-16 04:28:46)

Re: Nginx reverse proxy to various functions included in iredmail

Hi,
Lets check your sites-available conf.
Mine attached, in general I configured rev proxy + letsencrypt certs according to this:

https://www.guyatic.net/2017/04/10/conf … public-ip/
and then
https://www.guyatic.net/2017/05/09/conf … proxy-nat/

Other then some minor troubleshooting - I got everything working right away.

Post's attachments

sogo mail.txt 677 b, 10 downloads since 2020-09-15 

You don't have the permssions to download the attachments of this post.

3

Re: Nginx reverse proxy to various functions included in iredmail

andrzej wrote:

Hi,
Lets check your sites-available conf.
Mine attached, in general I configured rev proxy + letsencrypt certs according to this:

https://www.guyatic.net/2017/04/10/conf … public-ip/
and then
https://www.guyatic.net/2017/05/09/conf … proxy-nat/

Other then some minor troubleshooting - I got everything working right away.


I will give this a try later today or tomorrow evening.

4

Re: Nginx reverse proxy to various functions included in iredmail

Hi again

I didn't quite get to try it those days, but found some breathing room at work, so I tried just a minute ago.

As you said, just some minor troubleshooting and everything worked right away.

Thank you so much!