Topic: SOGo on non-standard port. SOGo/so bad rewrite.
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
1.6.0
- Deployed with iRedMail Easy or the downloadable installer?
Downloadable installer
- Linux/BSD distribution name and version:
Debian Bullseye 11
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
MySQL
- Web server (Apache or Nginx):
Nginx
- Manage mail accounts with iRedAdmin-Pro?
No - as far as I know its a regular iRedAdmin. Not pro...
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello.
Freshly installed (maybe 2 weeks ago) iredmail 1.6.0. Installed using the downloadable .sh script.
Everything is fine but I am using a non-standard port for my services like mail and admin so my address would look like this:
https : // mail . williwonka . eu : 33333 / mail /
or
https : // mail . williwonka . eu : 33333 / SOGo /
I have a ssl cert and everything is working except for when I am trying to log into the SOGo admin panel. The problem is rewrite.
The address becomes:
https : / / mail . williwonka . eu / SOGo / so / williwonka @ williwonka . eu / Mail
and it should be:
https : / / mail . williwonka . eu : 33333 / SOGo / so / williwonka @ williwonka . eu / Mail
Sorry about the spaces in the address. I cannot post links.
This is how I got the login page to work:
https : // mail . williwonka . eu : 33333 / SOGo /
root@mail:/etc# grep 33333 /etc/nginx/templates/sogo.tmpl
#location ~ ^/sogo { rewrite ^ https://$host:33333/sogo; }
location ~ ^/SOGO { rewrite ^ https://$host:33333/SOGo; }
root@mail:/etc#
Where do I change this so that SOGo/so rewrite works?
Kindest regards.
AndrzejL
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.