Roundcube, default config for "identities access level"

shenzy

Well-Known Member
Apr 27, 2008
73
3
58
Chile
cPanel Access Level
Root Administrator
Hello,
In rundcube config the option identities access level is set to 0 by default after some upgrade...
With the option identities_level in 0, the user of webmail can modify the "sender mail addres", and this is not secure.
In my server i use the option 1 or 3, but after some automatic upgrade.. the option is in 0 again.
Is it possible to leave this option set to a value 1 or 3, and it is not modified after an upgrade performed by the whm?

// Set identities access level:
// 0 - many identities with possibility to edit all params
// 1 - many identities with possibility to edit all params but not email address
// 2 - one identity with possibility to edit all params
// 3 - one identity with possibility to edit all params but not email address
// 4 - one identity with possibility to edit only signature
$rcmail_config['identities_level'] = 0;
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Hello :)

You could ensure this change is preserved by using the "postupcp" file (or hooking into the upcp event). EX:

Code:
touch /usr/local/cpanel/scripts/postupcp
chmod 755 /usr/local/cpanel/scripts/postupcp
Then, using the text editor of your choice, add and entry like this to the /usr/local/cpanel/scripts/postupcp file:

Code:
replace "$rcmail_config['identities_level'] = 0;" "$rcmail_config['identities_level'] = 1;" -- /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php
Thank you.
 

shenzy

Well-Known Member
Apr 27, 2008
73
3
58
Chile
cPanel Access Level
Root Administrator
Update:
Now, in roundcube the config file is: /usr/local/cpanel/base/3rdparty/roundcube/config/config.inc.php
and the option identities level is: $config['identities_level']