Zimbra to Scalix imapsync = 2 NO AUTHENTICATE failure

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

tony.hillaire

Zimbra to Scalix imapsync = 2 NO AUTHENTICATE failure

Postby tony.hillaire » Mon Apr 10, 2006 8:28 pm

gosync source

Code: Select all

[root@murphy ~]# cat gosync
imapsync \
   --host1 zimbra32bit.duxarea.com   \
   --user1 john.doe  \
   --password1 SecRet1  \
   --host2 scalix64bit.duxarea.com  \
   --user2 john.doe@duxarea.com  \
   --password2 SecRet2  \
   --noauthmd5  \
   --regexmess s/\\bSender:/X-Sender:/  \
   --exclude '^(Calendar|Contacts)$'  \
[root@murphy ~]#                           

Code: Select all

[root@murphy ~]# ./gosync
$RCSfile: imapsync,v $ $Revision: 1.168 $ $Date: 2006/04/02 01:49:10 $
Mail::IMAPClient version used here is 2.2.9
will try to use PLAIN authentication on host1
will try to use PLAIN authentication on host2
From imap server [zimbra32bit.duxarea.com] port [143] user [john.doe]
To   imap server [scalix64bit.duxarea.com] port [143] user [john.doe@duxarea.com]
Banner : * OK wifi.duxarea.com Zimbra IMAP4rev1 service ready
zimbra32bit.duxarea.com: no support for AUTHENTICATE PLAIN, using LOGIN
Banner : * OK Scalix IMAP server 10.0.1.3 ready on scalix64bit.duxarea.com
Error login : [scalix64bit.duxarea.com] with user [john.doe@duxarea.com] : 2 NO AUTHENTICATE failure, user name or password rejected
[root@murphy ~]#       


I'm not sure where to go from here, I'm duplicating this post from another area cause I'm not sure if anyone looks at a post in a topic that was already resolved for someone else.
I've tried several combos on the username for the scalix end of imapsync, the username2 as the full email address like above works in SWA, outlook, evolution and Kontact --- HELP :!: I need to get everyone off of zimbra ASAP

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Apr 10, 2006 9:19 pm

The first thing to try is a telnet session to the Scalix IMAP server and use the user2 credentials to login. This will test that that login works.

Cheers

Dave

tony.hillaire

Postby tony.hillaire » Mon Apr 10, 2006 10:52 pm

The login works in SWA, outlook, evolution and Kontact, telnet should work (as should imapsync)

Here's the telnet session:

Code: Select all

[root@scalix64bit ~]# telnet scalix64bit.duxarea.com 143
Trying 10.10.10.10...
Connected to scalix64bit.duxarea.com (10.10.10.10).
Escape character is '^]'.
* OK Scalix IMAP server 10.0.1.3 ready on scalix64bit.duxarea.com
a login john.doe@duxarea.com SecRet2
a OK LOGIN completed, now connected to scalix64bit.duxarea.com
b select Inbox
* 4 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1] UIDVALIDITY value
* OK [UIDNEXT 5] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft $Label1 $Label2 $Label3 $Label4 $Label5 $Forwarded Junk NonJunk $MdnSent)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft $Label1 $Label2 $Label3 $Label4 $Label5 $Forwarded Junk NonJunk $MdnSent)] flags will stay set
b OK [READ-WRITE] SELECT completed.
c capability
* CAPABILITY IMAP4 IMAP4rev1 X-SCALIX-1 X-SCALIX-2 X-SCALIX-3 X-SCALIX-4 X-DELEGATE X-SCALIX-FOLDER-STATUS ID IDLE LOGIN-REFERRALS NAMESPACE UIDPLUS ACL AUTH=CRAM-MD5 AUTH=GSSAPI AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5
c OK CAPABILITY completed
D LOGOUT
* BYE Scalix IMAP Server logging out
D OK LOGOUT completed
Connection closed by foreign host.
[root@scalix64bit ~]#

tony.hillaire

Postby tony.hillaire » Mon Apr 10, 2006 11:31 pm

Hmmm. OK by using --authuser2 with the admin login and --authmech2 PLAIN (which I'll need to do when I sync everyone anyway) it seemed to work but it didn't ... I'll look at it further but there are no transfered messages in the user account ... hopefully their not all in the admin account

tony.hillaire

Postby tony.hillaire » Tue Apr 11, 2006 1:15 am

tony.hillaire wrote:Hmmm. OK by using --authuser2 with the admin login and --authmech2 PLAIN (which I'll need to do when I sync everyone anyway) it seemed to work but it didn't ... I'll look at it further but there are no transfered messages in the user account ... hopefully their not all in the admin account

Doh! That's exactly what it did

Code: Select all

imapsync \
   --host1 zimbra.duxarea.com   \
   --user1 john.doe  \
   --authuser1 joe.admin \
   --authmech1 PLAIN \
   --password1 AdminPassword  \
   --host2 scalix.duxarea.com  \
   --user2 john.doe@duxarea.com  \
   --authuser2 scalix_admin@duxarea.com \
   --authmech2 PLAIN \
   --password2 ScalixAdminPassword  \
   --noauthmd5  \
   --regexmess s/\\bSender:/X-Sender:/  \
   --exclude '^(Calendar|Contacts)$'  \

Put all of john.doe's emails in scalix_admin's mail box

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue Apr 11, 2006 11:19 pm

Did you manage to resolve this ?

Cheers

Dave

tony.hillaire

Postby tony.hillaire » Wed Apr 12, 2006 1:11 am

No it's very strange, I don't understand why the user login doesn't work and when the authuser parameter is used the email is sent to the admins box and not the users. I modified the imapsync script to see if the password was getting munged but it looked OK, authuser looked very promising

tony.hillaire

Postby tony.hillaire » Wed Apr 12, 2006 2:13 am

Changing from PLAIN to LOGIN

Code: Select all

--authmech2 LOGIN

seems to be working ... I'll have to try a few accounts and see how it goes

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Wed Apr 12, 2006 3:11 am

Hi,

it could be that you have some OS packages missing; the IMAP server uses SASL for it's login mechanisms - including PLAIN - and as your hostname suggests that this is a 64 Bit OS, i believe we've seen some of those before. The installer doesn't currently check for correct existence of these packages on a 64 Bit system.

Please check the following thread
http://www.scalix.com/community/viewtopic.php?t=1331

Does this resolve the PLAIN login problem? Obviously this should be done independent of your imapsync success because other clients might want to use the PLAIN mechanism as well.

Curiosity kills the cat (and I'm a leo, actually... :-) ) - may I ask why you had to get off your old system in such as rush?

Thanks,
Florian.
Florian von Kurnatowski, Die Harder!

tony.hillaire

Postby tony.hillaire » Fri Apr 28, 2006 11:59 am

I've moved to the commercial version of Zimbra... it's an easier transition and all the AV and Anti Spam is already built in, Thanks anyway. The rush was due to a failing server (hardware failure) and the new server required a 64 bit OS, it should have worked with a 32 bit install but it didn't I believe it was because the CPU is a dual core


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 11 guests