Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Pre-configure Horde for all users.

Discussion in 'E-mail Discussion' started by EneTar, Dec 26, 2015.

  1. EneTar

    EneTar Well-Known Member

    Joined:
    Dec 19, 2015
    Messages:
    137
    Likes Received:
    9
    Trophy Points:
    18
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Can I preconfigure Horde and set some preferences for all accounts/domains before they login for the first time? For example I want to set deleted messages to go at the trash folder and some other preferences.

    I noticed that Horde is installed in /usr/local/cpanel/base/horde/

    Which file should I edit to do what I want and will this file get overwritten after an update? I went to /usr/local/cpanel/base/horde/config/prefs.php and I saw this
    So should I create the file in /usr/local/cpanel/base/horde/config/prefs.d/prefs.local.php and write there my php code to override prefs.php ?

    Is the above correct, which way do you follow?
     
  2. EneTar

    EneTar Well-Known Member

    Joined:
    Dec 19, 2015
    Messages:
    137
    Likes Received:
    9
    Trophy Points:
    18
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    The solution to this is to create a prefs.local.php for every application in HORDE for example

    /config/prefs.local.php
    /imp/config/prefs.local.php
    and set there the values like
    Code:
    $_prefs['use_trash']['value'] = 1;
    Each value has to be defined in the correct prefs.local.php.
    To see examples and which values they can accept see the prefs.php.dist or prefs.php of each config folder
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,809
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    I am happy to see you were able to determine a solution. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice