<div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px;">Thanks,</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px;"><br></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px;">my imapd.conf has already :</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px;"><br></div><div><font face="Arial"><span style="font-size: 13px;">admins: sonicle</span></font></div><div><font face="Arial"><span style="font-size: 13px;">sasl_mech_list: plain</span></font></div><div><font face="Arial"><span style="font-size: 13px;"><br></span></font></div><div><font face="Arial"><span style="font-size: 13px;">if I try an imap session with:</span></font></div><div><font face="Arial"><span style="font-size: 13px;"><br></span></font></div><div><font face="Arial"><span style="font-size: 13px;">A01 AUTHENTICATE PLAIN</span></font></div><div><font face="Arial"><span style="font-size: 13px;">+</span></font></div><div><font face="Arial"><span style="font-size: 13px;">xxxxxxxxxxxxxxx</span></font></div><div><font face="Arial"><span style="font-size: 13px;"><br></span></font></div><div><font face="Arial"><span style="font-size: 13px;">where xxxxxxx comes from 'echo -en "\0sonicle\0pass" | base64' , I get authenticated as sonicle.</span></font></div><div><font face="Arial"><span style="font-size: 13px;">Now, how do I switch to the desired user?</span></font></div><div><font face="Arial"><span style="font-size: 13px;">Once I understand how to do it via imap protocol, I need to replicate it in java code through:</span></font></div><div><font face="Arial"><span style="font-size: 13px;"><br></span></font></div><div><font face="Arial"><span style="font-size: 13px;">store.connect(host,143,user,pass);</span></font></div><div><font face="Arial"><span style="font-size: 13px;"><br></span></font></div><div><font face="Arial"><span style="font-size: 13px;">Thanks in advance!<br>Gabriele</span></font></div><div><font face="Arial"><span style="font-size: 13px;"><br></span></font><br><div id="wt-mailcard" style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px;"><div style="font-family: Arial;">----------------------------------------------------------------------------------------<br></div><div style="font-family: Arial;"><b>Sonicle S.r.l. </b>: <a href="http://www.sonicle.com/" target="_new">http://www.sonicle.com</a></div><div style="font-family: Arial;"><b>Music: </b><a href="http://www.gabrielebulfon.com/" target="_new">http://www.gabrielebulfon.com</a></div><div style="font-family: Arial;"><b>Quantum Mechanics : </b><a href="http://www.cdbaby.com/cd/gabrielebulfon" target="_new">http://www.cdbaby.com/cd/gabrielebulfon</a></div></div><tt style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px;"><br><br><br>----------------------------------------------------------------------------------<br><br>Da: Michael Menge via Info-cyrus <info-cyrus@lists.andrew.cmu.edu><br>A: info-cyrus@lists.andrew.cmu.edu <br>Data: 19 gennaio 2017 9.53.51 CET<br>Oggetto: Re: imap impersonate<br><br></tt><blockquote style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px; border-left: 2px solid rgb(0, 0, 128); margin-left: 5px; padding-left: 5px;"><tt><br>Quoting Gabriele Bulfon via Info-cyrus <info-cyrus@lists.andrew.cmu.edu>:<br><br>> Hi,<br>> is there any mechanism with Cyrus imap to impersonate another user?<br>> I've seen other imap servers scenarios where one may use plain  <br>> authentication and sending user as mailboxuser plus a separator plus  <br>> adminuser and use only adminpassword, to get access to the  <br>> mailboxuser as is (dovecot, exchange).<br>> Anything like this in Cyrus?<br>> Gabriele<br><br>Cyrus can use the PLAIN mech to allow admin access as the user.<br>You need to add plain to sasl_mech_list in imapd.conf<br>And the "admin" account has to be listed in admins or proxyservers<br>in imapd.conf<br><br>Regards,<br><br>    Michael<br><br><br>--------------------------------------------------------------------------------<br>M.Menge                                Tel.: (49) 7071/29-70316<br>Universität Tübingen                   Fax.: (49) 7071/29-5912<br>Zentrum für Datenverarbeitung          mail:  <br>michael.menge@zdv.uni-tuebingen.de<br>Wächterstraße 76<br>72074 Tübingen<br><br>----<br>Cyrus Home Page: http://www.cyrusimap.org/<br>List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/<br>To Unsubscribe:<br>https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus<br><br><br></tt></blockquote></div>