<div dir="ltr"><div><span style="font-family:arial,sans-serif;font-size:13px">Hello List(s), ...</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
When using saslauthd for authentication with a remote imap server, in this case perdition IMAP4, there seems to be a compatibility issue.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
After LOGIN, perdition is sending the CAPABILITY tag before the OK.</div><div style="font-family:arial,sans-serif;font-size:13px">saslauthd expects an OK, but receives the CAPABILITY first and then closes the connection.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><div><br></div><div><div>saslauthd[8454] :do_auth : auth failure: [user=<a href="mailto:x@test.d250.hu" target="_blank">x@test.d250.hu</a>] [service=imap] [realm=]</div>
<div>[mech=rimap] [reason=[ALERT] Unexpected response from remote authentication server]<br></div></div><div><br></div><div>I was able to alter the last lines of auth_rimap.c, and hack this out, but this should be implemented properly.</div>
<div><br></div><div>I assume, perdition behaves standard compliant within the IMAP4 protocol, however it could send the combined "a OK [CAPABILITY ... ]" as dovecot does. Is there a technical reason for the two separate messages? I was not able to manipulate this behavior with configuration arguments.</div>
<div><br>saslauthd on the other hand could read the CAPABILITY tag, skip it, and process the next tag to read an OK, and then close the connection, with the Unexpected response error eventually.<br><br></div><div>I'm not sure which is the more standard compliant approach, but if my assumption is correct, auth_rimap.c should be modified for increased compatibility.</div>
<div><br></div><div>Thank you, ...</div><div>Greetings,</div></div></div>-- <br><div dir="ltr"><div style="text-align:left"><font size="4">Király </font><span style="font-size:large">István</span></div><div style="text-align:left">
<font>+36 209 753 758</font></div><div style="text-align:left"><font><a href="mailto:LaKing@D250.hu" target="_blank">LaKing@D250.hu</a></font></div><div style="text-align:left"><a href="http://d250.hu" target="_blank"><img src="http://laking.d250.hu/lab.png"></a><br>
</div></div>
</div>