Hello.
I’m trying to share an IMAP folder with another user (admin), and I’ve noticed that email usernames do not include a domain part.
I’ve confirmed my suspicions by installing WebTop, and sharing works correctly, resulting in ACL set to ‘admin’ username, and you can subscribe to that IMAP folder on admin account after that.
But Roundcube ACL plugin just appends domain for you, if you don’t specify it, which results in not working share.
I’ve tried editing the acl.php file inside the container, /home/roundcubemail1/.local/share/containers/storage/volumes/html/_data/plugins/acl/acl.php
and commenting out this line: $user .= '@' . rcube_utils::idn_to_ascii(preg_replace('/^@/', '', $realm));
But changes don’t persist after restart.
Is there some way that I can override this file without loosing the ability to update and control the app via admin panel?
I have some experience with docker-compose and I can imagine that you could just mount the file directly,
but running podman with runagent on another user is a bit complicated to understand.
Thank you.
ACLs are working perfectly fine now.
Here is a complete solution, in case someone stumbles upon this topic:
Make a copy of acl.php from your container to state folder: cp /home/roundcubemail1/.local/share/containers/storage/volumes/html/_data/plugins/acl/acl.php /home/roundcubemail1/.config/state/acl.php
Edit the new file and comment out these lines in action_save() function: