The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Pre-configure Horde for all users.

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

  1. EneTar

    EneTar Well-Known Member

    Joined:
    Dec 19, 2015
    Messages:
    51
    Likes Received:
    1
    Trophy Points:
    8
    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:
    51
    Likes Received:
    1
    Trophy Points:
    8
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page