Hello,
one design problem of the old and the new webfrontend is, that users aren't able to edit their own rules.
I assume, this is based on source code restrictions and not changeable because PHP only utilizes COM.
Anyway, then let's change the sourcecode.
If normal "Users" should be always able to edit their rules, or only if configured, or if there's a "poweruser" role in future which is able to to that, is discussable.
I know, that hMailserver's development is very slow, and it'll take years before this change could be found in a release. But I'd like to discuss it here before adding an issue to github.
Without request no change.
Cheers Greg
REQUEST: Allow Users to edit their own rules
- jimimaseye
- Moderator
- Posts: 10053
- Joined: 2011-09-08 17:48
Re: REQUEST: Allow Users to edit their own rules
Surely having users able to maintain their own rules at hms level is the same as them putting in message rules at the client level. Also some actions available in the rules are dangerous in the wrong hands and should only be considered by a responsible administrator (such as modifying headers, creating copies and sending or moving to public folders.
How do you see the benefits of giving users this access instead of at client level (which still allows them to delete, auto respond or move to folder)?
How do you see the benefits of giving users this access instead of at client level (which still allows them to delete, auto respond or move to folder)?
5.7 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829
Re: REQUEST: Allow Users to edit their own rules
Works for me.
In the config.php file you have a setting to allow that.
In the config.php file you have a setting to allow that.
Code: Select all
/*
The rule_editing_level setting defines who should be allowed
to edit rules. By default, only the server administrator is
allowed to change the rules.
You can change this setting if you want domain administrators
or normal users to be able to edit rules. If you give end-users
access to rule editing, you should be aware that these users
may be able to set up rules which will cause problems on the
server. As an example, they may be able to set up rules which
generates endless loops of messages.
Only give end-users or domain administrators rights to rules if
you trust them to use it wisely.
If you give domain administrators and end-users access to rules,
they will only be allowed to edit account-level rules. Server wide
rules are only accessible by the server administrator.
Possible values:
0 - All users on the server should be allowed access.
1 - Domain administrators and server administrators should be
allowed access.
2 - Only server administrators should be allowed access.
*/
$hmail_config['rule_editing_level'] = 2;
HMS 5.6.8 B2534.28 on Windows Server 2019 Core VM.
HMS 5.6.9 B2641.67 on Windows Server 2016 Core VM.
HMS 5.6.9 B2641.67 on Windows Server 2016 Core VM.
Re: REQUEST: Allow Users to edit their own rules
My users can do it in their webmail...
I found an awesome swede on GitHub that made a Roundcube plugin for editing hmailserver user rules AND ... I can have webmail on 'nix and hMail on 'doze.
I found an awesome swede on GitHub that made a Roundcube plugin for editing hmailserver user rules AND ... I can have webmail on 'nix and hMail on 'doze.
SørenR.
Woke is Marxism advancing through Maoist cultural revolution.
Woke is Marxism advancing through Maoist cultural revolution.
Re: REQUEST: Allow Users to edit their own rules
HMS 5.6.8 B2534.28 on Windows Server 2019 Core VM.
HMS 5.6.9 B2641.67 on Windows Server 2016 Core VM.
HMS 5.6.9 B2641.67 on Windows Server 2016 Core VM.
Re: REQUEST: Allow Users to edit their own rules
I also use your remote password driver
SørenR.
Woke is Marxism advancing through Maoist cultural revolution.
Woke is Marxism advancing through Maoist cultural revolution.