1

Topic: iRedMail + SOGo multiple domains

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
0.9.2
- Linux/BSD distribution name and version:
Ubuntu 14.10 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
MySQL
- Web server (Apache or Nginx):
Apache
- Manage mail accounts with iRedAdmin-Pro?
No
- Related log if you're reporting an issue:
====

How to configure SOGo in iRedMail to allow mutiple domain login pages.
I have primary.com, secondary.com, other.com

I can log in with no issues using primary.com/SOGo, but when I try to log in from secondary.com/SOGo (or other.com/SOGo), the login page redirects to primary.com/SOGo/so/user@secondary.com/Mail instead of login in.

----

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

2

Re: iRedMail + SOGo multiple domains

Do you have virtual host for secondary.com? if yes, please try to copy SOGo related settings in virtual host setting of primary.com to virtual host setting of secondary.com.

3

Re: iRedMail + SOGo multiple domains

Hi Zhang, unfortunately this did not work.

4

Re: iRedMail + SOGo multiple domains

How do you configure primary.com, secondary.com and other.com in Apache?

5

Re: iRedMail + SOGo multiple domains

Using virtual hosts and sites-avaliable.

6

Re: iRedMail + SOGo multiple domains

Could you please show us your Apache config?

7

Re: iRedMail + SOGo multiple domains

andrzej wrote:

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
0.9.2
- Linux/BSD distribution name and version:
Ubuntu 14.10 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
MySQL
- Web server (Apache or Nginx):
Apache
- Manage mail accounts with iRedAdmin-Pro?
No
- Related log if you're reporting an issue:
====

How to configure SOGo in iRedMail to allow mutiple domain login pages.
I have primary.com, secondary.com, other.com

I can log in with no issues using primary.com/SOGo, but when I try to log in from secondary.com/SOGo (or other.com/SOGo), the login page redirects to primary.com/SOGo/so/user@secondary.com/Mail instead of login in.

Hi, I am new to this - so far made it ok, but got stuck on exactly same issue.

I have tried modifying

  RequestHeader set "x-webobjects-server-port" "443"
  RequestHeader set "x-webobjects-server-name" "yourhostname"
  RequestHeader set "x-webobjects-server-url" "https://yourhostname"

in SOGo.conf

i have set this to my main domain, and now i am able to log in to SOGo using my main domain. But when I try to log in from secondary domain,it redirects to primary domain - primary.com/SOGo/so/user@secondary.com/Mail

I am not running 2 separate sites in Apache - I just want for 2 domains to point to exactly same place. Works for roundcube, but SOGo is not happy.

Can anyone help?

What do you need from me?

8

Re: iRedMail + SOGo multiple domains

Comment out below line, restart Apache service and try again:

  RequestHeader set "x-webobjects-server-url" "https://yourhostname"

By the way, please always create a new forum topic for your own question, do not hijack other's thread.

9

Re: iRedMail + SOGo multiple domains

I reported this issue to SOGo team:
https://github.com/inverse-inc/sogo/issues/119

10

Re: iRedMail + SOGo multiple domains

ZhangHuangbin wrote:

Comment out below line, restart Apache service and try again:

  RequestHeader set "x-webobjects-server-url" "https://yourhostname"

By the way, please always create a new forum topic for your own question, do not hijack other's thread.

Hi

Thanks for advice, and I didnt mean to hijack the thread, apologies.

After commenting out above line it works, but connection does not go secure, just stays domain.com/SOGo/...
instead
https://domain.com/SOGo/....

11

Re: iRedMail + SOGo multiple domains

You see there's setting 'x-webobjects-server-port' in the same SOGo Apache config file? make sure it's enabled, and its value should be 443 (https).