Evgeniy Berdnikov <[email protected]> writes:

> On Tue, Oct 21, 2014 at 06:00:17PM +0800, Eric Abrahamsen wrote:
>> What I just noticed is that the authenticate string that isync is
>> sending to dovecot:
>> 
>> ZXJpY0BwYXBlci1yZXB1YmxpYy5vcmcAZXJpYwBQUndvcms=
>> 
>> Which is being rejected, is the correct string *minus* the null
>> characters. Ie isync is sending the results of 
>> 
>> echo -en "[email protected]" | base64
>> 
>> while what works with dovecot is:
>> 
>> echo -en "\[email protected]\0PRwork" | base64
>
>  Тhe last string evaluates to "AGVyaWNAcGFwZXItcmVwdWJsaWMub3JnAFBSd29yaw==".
>
>  The first ZXJpY0BwYXBlci1yZXB1YmxpYy5vcmcAZXJpYwBQUndvcms= is decoded to
>
>    [email protected] \0 eric \0 PRwork
>
>  This string is evidently different to "\[email protected]\0PRwork".
>  So the original strings (and their base64 forms, of cause) are different.
>
>  Then, look for PassCmd description in man page. I suspect your script
>  produces irrelevant data.

Ah, you're right, I had looked too hastily. Isync is indeed sending
"[email protected]\0eric\0PRwork" to the dovecot server.

It looks like this will end up being a dovecot configuration issue. I'm
using dovecot virtual users to handle multiple email domains/users. The
dovecot docs say:

"The PLAIN mechanism's authentication format is: <authorization ID> NUL
<authentication ID> NUL <password>. Authorization ID is the username who
you want to log in as, and authentication ID is the username whose
password you're giving. If you're not planning on doing a master user
login, you can either set both of these fields to the same username, or
leave the authorization ID empty."

So it's just a matter of getting the right usernames into the right
slots.

I'm going with LOGIN for the time being, but will ask on the dovecot
list.

Sorry for all the noise!

Eric


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to