Is there any way to do this in cyrus-imap? Something like the equivalent of Dovecot's "auth_master_user_separator"
Most Cyrus command line tools which interact with mailboxes will accept both the -a and -u flags, which mean Authenticate as and Authorize as, and each takes a userid as their arguments.
For example, this is from the manpage for imtest(8):
So if I use this command I will connect to my own Inbox as the Admin user:imtest [ -t keyfile ] [ -p port ] [ -m mechanism ] [ -a userid ] [ -u userid ] [ -k num ] [ -l num ] [ -r realm ] [ -f file ] [ -n num ] [ -s ] [ -q ] [ -c ] [ -i ] [ -z ] [ -v ] [ -I file ] [ -x file ] [ -X file ] [ -w passwd ] [ -o option=value ] hostname ...
-a
userid
Userid to use for authentication; defaults to the current user. This is the userid whose password or credentials will be presented to the server for verification.
-u
userid
Userid to use for authorization; defaults to the current user. This is the userid whose identity will be assumed after authentication.
Cheers,imtest -a admin -u nic imap.example.com
-nic
-- Nic Bernstein nic@xxxxxxxxxxxxxxxx https://www.nicbernstein.com https://www.linkedin.com/in/nic-b-26577a178/