On 3/16/21 7:21 AM, Neil Price wrote:
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):

   *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.

So if I use this command I will connect to my own Inbox as the Admin user:

   imtest -a admin -u nic imap.example.com

Cheers,
    -nic

--
Nic Bernstein                               [email protected]
https://www.nicbernstein.com
https://www.linkedin.com/in/nic-b-26577a178/


------------------------------------------
Cyrus: Info
Permalink: 
https://cyrus.topicbox.com/groups/info/T855cd3af79064722-Mbccb2fdb76b38602eef57045
Delivery options: https://cyrus.topicbox.com/groups/info/subscription

Reply via email to