Skip Menu |

This queue is for tickets about the Mail-IMAPClient CPAN distribution.

Report information
The Basics
Id: 2832
Status: resolved
Priority: 0/
Queue: Mail-IMAPClient

People
Owner: DJKERNEN__NO_SOLICITING__ [...] cpan.org
Requestors: EHolstege [...] gwsmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



From: "Holstege, Eric" <EHolstege [...] gwsmail.com>
To: "'bug-Mail-IMAPClient [...] rt.cpan.org'" <bug-Mail-IMAPClient [...] rt.cpan.org>
Subject: Mail::IMAP, NT login != mailbox name, how to do this
Date: Fri, 20 Jun 2003 14:15:58 -0700
I am trying to use the Mail::IMAP Perl module on Win2000 My Windows NT login name is 'eholsteg' and my actual mailbox name is 'eholstege' - extra 'e' (in the sense that my email address is eholstege@gwsmail.com) I have tried using both User => 'eholsteg' and User => 'eholstege' in the New method. The first fails New with: 1 NO Logon failure: unknown user name or bad password. the second 1 NO There is no such mailbox on this server The code is: $imap = Mail::IMAPClient->new( Server => '10.1.0.24', User => 'EHolsteg', Password=>'mypassword', Uid => 1, # optional Debug => 1, Showcredentials =>1, ); Is there a way or need to specify the login name as distinct from the email account name? Thanks in advance -Eric ------------------------------------------ User => mailbox name Using Mail::IMAPClient version 2.1.3 and perl version 5.6.1 (5.006001) Mail::IMAPClient not using Fast_IO; not available on this platform at c:\docume~1\eholsteg\desktop\e ric\src\imap\imaptest2.pl line 14 Read: * OK Microsoft Exchange IMAP4rev1 server version 5.5.2653.23 (exchange.bindco.com) ready Connect: Received this from readline: 0/OUTPUT/* OK Microsoft Exchange IMAP4rev1 server version 5.5. 2653.23 (exchange.bindco.com) ready Sending: 1 Login "XXXXXXXXX" "XXXXXXXXX" Sent 33 bytes Read: 1 NO Logon failure: unknown user name or bad password. ------------------------------------------ User => Win2000 account name Using Mail::IMAPClient version 2.1.3 and perl version 5.6.1 (5.006001) Mail::IMAPClient not using Fast_IO; not available on this platform at c:\docume~1\eholsteg\desktop\e ric\src\imap\imaptest2.pl line 14 Read: * OK Microsoft Exchange IMAP4rev1 server version 5.5.2653.23 (exchange.bindco.com) ready Connect: Received this from readline: 0/OUTPUT/* OK Microsoft Exchange IMAP4rev1 server version 5.5. 2653.23 (exchange.bindco.com) ready Sending: 1 Login "XXXXXXXXX" "XXXXXXXXX" Sent 32 bytes Read: 1 NO There is no such mailbox on this server ------------------------------------------
I suggest logging in from the command line; once you know what works there you should be able to implement it in code. For example, try this: telnet 10.1.0.24 143 0 LOGIN eholstege <password> You may also want to see what types of logins are supported; ie: 0 CAPABILITY My understanding is that not all exchange servers are configured to allow plain text authentication. You may want to take a look at Mark Bush's Authen::NTLM module, which was designed to work with Mail::IMAPClient to allow authentication to an exchange server. -- Dave K.