Currently, mail folders can be shared with Any authenticated User or individual users. (Any authenticated User shares the folder with all users on the same installation.)

I would like to share a mail folder with all users of the same domain. All users with same domain (e.g. @example.com) should have access to it, but not users from another domain (e.g. example2.org).
The question now is:
acl_anyone = allow needs to be removed from dovecot.conf.
It should be default, I guess.
It is disabled now. Docs were updated.
Most helpful comment
It is disabled now. Docs were updated.