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?

----

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

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.

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

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 {

9

Re: Change Sogo access url

It did not work, and it gives unhandeled error.

10

Re: Change Sogo access url

Hello,

Same I tested with some custom url /xyz instead of /sogo
Login Page loads fine with new URL /xyz but while trying to login it gives unhandled error.

Please suggest

good.dr.ahmad wrote:

It did not work, and it gives unhandeled error.

11

Re: Change Sogo access url

Hello,

Can anyone take action on this issue?

Were you able to remove the sogo attachment at the end of the url?