1

Topic: SOGO Multiple Domains

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):   1.3.1 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:  ubuntu 20.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  Mysql
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?  Yes, iRedAdmin 1.2 (not Pro)
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,

Looking for some help, I have a multi domain ( 2 domaina st the moment, and 3rd one is expected soon) email server  setup, and all is working well, each domain has it's own url to log in like mail.domain2.com, mail.domain2.com, mail.domain3.com.

I am now trying to seup SOGO to use mutiple domians but only for a couple of the sogo options like SOGoPageTitle and SOGoFaviconRelativeURL so as they are domain specific.

The user and login configurations are common to all domains for now, unless I ahve to change them to make this work.

DOMAIN1
URL:      https://mail.domain1.net
user id: user@domain1.net 

DOMAIN2
URL:      https://mail.domain2.info
user id: user@domain2.info

I have changed the login module to see if this works.
This is what I have done so far but does not seem to work.

domains = {
        domain1.net = {
            SOGoMailDomain = domain1.net;
            SOGoLoginModule = Calendar;
            SOGoPageTitle = "INS .NET Email";
            SOGoFaviconRelativeURL = "https://mail.domain1.net/img/favicon.png";
            id = INS_NET;
        };
        domain2.info = {
            SOGoMailDomain = domain2.info;
            SOGoLoginModule = Mail;
            SOGoPageTitle = "INS .INFO Email";
            SOGoFaviconRelativeURL = "https://www.domain2.net/img/favicon.png";
            id = INS_info;
        };
    };

Can some please tell me what I am missing to make this work?

Also as side question is it possible to change the logo and colors on the login page based on the domain, if not possible, then how can they be changed to a non-branded logo and different color shceme.

Thanks in advance for your help.

George

----

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

2

Re: SOGO Multiple Domains

I don't think SOGo supports custom global variables in the `domains = {}` section - official document doesn't mention this. You'd better get confirm from SOGo team in mailing list or bug tracker, or ask them to implement this.
FYI: https://sogo.nu/support.html

3

Re: SOGO Multiple Domains

Hi,

Thanks for the update, I will get in touch with them.

Thanks again.