Roundcube identities

Greetings community, I have a query about the roundcube; I have a user created in my server and I have added several false identities, then when I create a message I accept to send with any of the identities, how to avoid sending without requesting identification ?, the problem is that a user from his account can send As if it were someone else and that can bring me problems.

adjunto imagen.

Hi @playmepe,
You can restrict users by editing /etc/roundcubemail/config.inc.php file

// Set identities access level:
// 0 - many identities with the possibility to edit all params
// 1 - many identities with the possibility to edit all params but not email address
// 2 - one identity with the possibility to edit all params
// 3 - one identity with the possibility to edit all params but not email address
// 4 - one identity with the ability to edit only signature
$ Config [ā€˜identities_levelā€™] = 0;

Replace 0 with 4

1 Like

Do not edit the file directly. Use templates

cd /etc/e-smith/templates-custom
mkdir etc
mkdir etc/roundcubemail
mkdir etc/roundcubemail/config.inc.php
cd etc/roundcubemail/config.inc.php
cp /etc/e-smith/templates/etc/roundcubemail/config.inc.php/40SYSTEM .
vi 40SYSTEM

find and change

$ Config ['identities_level'] = 0;

with

$ Config ['identities_level'] = 4;

save (:wq) and expand template

expand-template /etc/roundcubemail/config.inc.php

2 Likes

Thanks for the answers, this is solved with this, but I handle alias so before creating an account I need to change $ Config [ā€˜identities_levelā€™] = 0; And then switch back to $ Config [ā€˜identities_levelā€™] = 4; Is there any option in rouncube or nethserver that does this automatically?

Greetings.

I think itā€™s the only way.
For simplicity you can directly edit the file config.inc.php

vi /etc/roundcubemail/config.inc.php

Putting

$ Config [ā€˜identities_levelā€™] = 0;

Crete identities (alias)
And restore the file with

expand-template /etc/roundcubemail/config.inc.php

I looked for an alternative way. I found a way that seems to work:
Leaving the value

$ Config [ā€˜identities_levelā€™] = 4

You can edit the rows of the identity table in the roundcubemail database (mysql) to create new identities.
I tried it by phpmyadmin and it works fine

Columns are easy to understand.
Tell us if you need more information :wink:

1 Like

Thanks to everyone, for the moment Iā€™ll edit it manually $ Config [ā€˜identities_levelā€™] = 4, after creating new users.