1

Topic: How to change port for SOGo

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- 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.
====

I forward port 12345 to 443 on my server running iRedMail. I can access RoundCube or iRedAdmin without problem. I can also see the SOGo login page at https://mydomain.mytld:12345/SOGo, but after the login it tries to redirect me to https://mydomain.mytld/SOGo/so/myuser@m … ytld/Mail. How can I properly change port for SOGo so that it redirects to https://mydomain.mytld:12345/SOGo/so/my … mytld/Mail instead?

----

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

2

Re: How to change port for SOGo

You need to update the port number in /etc/nginx/templates/sogo.tmpl.

3 (edited by rocwhite 2018-04-29 23:56:44)

Re: How to change port for SOGo

ZhangHuangbin wrote:

You need to update the port number in /etc/nginx/templates/sogo.tmpl.

Thanks for the pointer! I changed

    proxy_set_header x-webobjects-server-url  https://$host;

to

     proxy_set_header x-webobjects-server-url  https://$host:12443;

and it works.