1

Topic: How to disable the possibility to change sender identity in Roundcube?

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: Ubuntu 14.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

Hallo,

how can I disable the possibility in Roundcube to change the sender identity? We are using iRedMail in our school and some pupils found out that they can send an email which looks like it was coming from someone else, which might cause problems.

Thanks in advance!

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by alex42 2016-04-28 01:12:13)

Re: How to disable the possibility to change sender identity in Roundcube?

Found the solution for disabling the possibility to add identities by adding this to the roundcube-config (/opt/www/rouncubemail/config/config.inc.php):

$config['identities_level'] = 4;

The different levels I've found here:

// 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

Is there an easy way to find the identities the pupils have already created and which don't belong to their account in the database and delete them?

3

Re: How to disable the possibility to change sender identity in Roundcube?

alex42 wrote:

Is there an easy way to find the identities the pupils have already created and which don't belong to their account in the database and delete them?

Check SQL table: roundcubemail.identities.

4

Re: How to disable the possibility to change sender identity in Roundcube?

I've found a solution. Had to use the MySQl shell:

mysql -u user -p roundcubemail

and then I've searched for entries in the table identities which have in the column 'del' a higher entry then 0 (I've realized that these entries have been added later.

mysql> SELECT * FROM identities WHERE del = 0;

and then I've deleted these entries by doing:

mysql> DELETE FROM identities WHERE del > 0;