1

Topic: Change Sogo access url

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Ubuntu 16.4.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Can we change the way to access sogo webmail by chaining the url from http://servername/sogo to http://servername/anything?

2

Re: Change Sogo access url

If it is a "pure" install (i.e. you've installed using the iredmail script and Nginx was configured by it) it should be easy:

0) backup /etc/nginx/templates/sogo.tmpl  ;-)
1) modify /etc/nginx/templates/sogo.tmpl to to change the top URL
2) restart Nginx, verify that the new url works, repeat 1-2 until working ;-)
3) change /var/www/index.html to point to the correct new URL if you need to automatically redirect top-level users to the web interface


Hope that helps,
Alex

3

Re: Change Sogo access url

Thank you for your response.
I tried this, and the link works, but the login always fails.
Any ideas?
BR

4

Re: Change Sogo access url

good.dr.ahmad wrote:

I tried this, and the link works, but the login always fails.

Please show us your /etc/nginx/templates/sogo.tmpl.
Also related error log in both SOGo and Dovecot log files.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

5

Re: Change Sogo access url

Can you give me the locations of SOGo and Dovecot logs locations in Ubuntu 16.04
BR

6

Re: Change Sogo access url

FYI: http://www.iredmail.org/docs/file.locations.html

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

7

Re: Change Sogo access url

Kindly see the attachments.
I included govmail.tmpl in the configuration files.

8

Re: Change Sogo access url

You should just modify 2 lines in sogo.tmpl:

location ^~ /SOGo {
location ^~ /SOGo/Microsoft-Server-ActiveSync {

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

9

Re: Change Sogo access url

It did not work, and it gives unhandeled error.