Configure two vhosts with different Horde preferences?
Hi,
I have a VPS with Centos 7 64 bit, cPanel, WHM and root access.
I have two email domains on this server:
- domain1.com
- domain2.com
I need to set some default preferences for domain2.com, so I created the prefs.local.php files inside the config directory of Horde, Imp, Turba, etc:
- /usr/local/cpanel/base/horde/config/
- /usr/local/cpanel/base/horde/imp/config
- /usr/local/cpanel/base/horde/kronolith/config
- /usr/local/cpanel/base/horde/trean/config
- /usr/local/cpanel/base/horde/turba/config
And I have put inside them the snippets of code with the changes and it works well.
However, those changes affect also domain1.com.
So, I googled and found out that I should domain prefferences, and I must not use:
- prefs.local.php
But instead, I must use:
- prefs-domain1.com.php
- prefs-domain2.com.php
Also I must edit:
- /usr/local/cpanel/base/horde/config/conf.php
And change:
$conf['vhosts'> = false;
to:
$conf['vhosts'> = true;
And afterwards restart Apache:
systemctl restart httpd.service
However, this is not working in neither one of the domains.
What am I missing or doing wrong?
Can anybody tell me is the correct way of making this work?
-
After many hours, I've reached a solution, which is to login using a cPanel Horde bridge: and here: example of emails from domain1.com: freddie.mercury@domain1.com cristiano.ronaldo@domain1.com example of emails from domain2.com: freddie.mercury@domain2.com cristiano.ronaldo@domain2.com When: freddie.mercury@domain1.com freddie.mercury@domain2.com and cristiano.ronaldo@domain1.com cristiano.ronaldo@domain2.com log into Horde using this domain: and freddie.mercury@domain2.com cristiano.ronaldo@domain2.com log into Horde and have the customized settings inside file: - prefs-domain2.com.php they have to use the url: 0 -
One curious thing I have noticed is this: - the first time I log in (after restarting the browser) using the cPanel Horde bridge, the cPanel webmail top menu is missing see image 1 - I have to log out, and then log in again (without closing the browser), in order to see it see image 2 This is relevante because this menu has important links see image 3 I think cPanel team should take a look at this, because it may confuse some webmail users 0 -
Could someone please mark this thread as solved? Better still, how can I mark it as solved? 0 -
I've marked it as solved for you. 0 -
Just to add the following: - webmail.domain.tld is already configured by default to work as a bridge in cpanel So, just create the file: prefs-webmail.domain.tld.php and put the desired preferences inside it and it works 0 -
One curious thing I have noticed is this: - the first time I log in (after restarting the browser) using the cPanel Horde bridge, the cPanel webmail top menu is missing see image 1 - I have to log out, and then log in again (without closing the browser), in order to see it see image 2 This is relevante because this menu has important links see image 3 I think cPanel team should take a look at this, because it may confuse some webmail users
I've seen this was now fixed. The webmail top menu was replaced by a new link directly in the Horde menu named: "cPanel Webmail Home" This is good because: - is solves the stated issue - and because the removal of the webmail top menu now gives more free vertical space in the computer monitor. However, it has one bad thing: - before, we could see the user just looking at in the right upper corner - now, we can't see it - I think this could easily be solved just by adding the user information again This user information is very useful for people that use cpanel horde webmail for checking email on multiple domains and sometimes multiple users in the same email domain, like I do. A quick glance ate the top upper left corner immediately enables us to see the currently logged in user and may prevent mistakes. If this could be done, it would be nice. alt="20191116-072656.jpg">62105 alt="20191116-073053.jpg">621090
Please sign in to leave a comment.
Comments
6 comments