Solved

Cannot figure out how to log in using IMAP4 via Telnet

Posted on 2008-10-23
11
829 Views
Last Modified: 2013-11-29
In an effort to test a larger problem for another user, I am trying to log in to my IMAP4 server running on Exchange Server 2003 via a telnet window connecting to the standard port 143. I do as follows from a cmd window:

>> telnet MyServerIP 143
* OK Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.7638.1 (servername.domain.fullyQualifiedDomain.com) ready.
>> ? LOGIN domain/myUsername myPassword
? NO Logon failure: unknown user name or bad password.

What am I doing wrong? All documents I find online say this is out I log in. I have tried all variations of capitalization, with domain, without domain, with fqdn, without, etc. I know my username/password, obviously, but why will it not connect? I have users actually connecting to the IMAP server via their cell phones so I know the server is working, functional, and authenticating somehow, somewhere.
0
Comment
Question by:alan2938
  • 6
  • 5
11 Comments
 
LVL 3

Expert Comment

by:Waleij
ID: 22791097
Use this

>01 login usernamne password
01 OK LOGIN completed.
>02 select INBOX
* 14 EXIST
* 14 RECENT
* FLAGS etc etc....

/Waleij
0
 
LVL 3

Expert Comment

by:Waleij
ID: 22791169
Here is a longer "how to"

Testing IMAP Using Telnet

That was a lot of text and a lot of concepts to swallow. Its actually pretty easy to do, though. In this project well walk you through checking your IMAP server with Telnet quickly and easily. Youll need to have password authentication enabled on your IMAP server for this to work correctly. Remember to replace your actual information for the italicized items in the example steps. 1. First, telnet into your mail server on port 143.

   telnet my-mail-server.my-domain.com

2. Login to the IMAP server now using your real username and password. Remember to prefix each IMAP command with a unique prefix. Weve used two-digit numbers in the example below, but any unique string will work.

  01 login my-username my-password

3. Make INBOX the active target for the following steps. You can use any mail folder that you know is on your system here, but INBOX is guaranteed to exist by default and is adequate for testing the server.

  02 select INBOX

4. If youve made it this far, you probably have a pretty good indication that IMAP is responding properly (or not, as the case may be). Just for thoroughness, well continue and actually pull a message up. Use the fetch command, followed by a message number, and the specifier rfc822. You dont really have to use the rfc822 flag, but itll make the output much easier to read.

  03 fetch 03
 
5. Log out when youre finished.

  04 logout
0
 
LVL 1

Author Comment

by:alan2938
ID: 22791225
My problem is that I am getting the error "unknown user name or bad password." when I put in my user/pass that I know works (because I log into my system using it every day). So I cannot get beyond the first step you gave me.
0
 
LVL 3

Expert Comment

by:Waleij
ID: 22791250
Did you use

01 Login yourusernamne yourpassword

Not just "Login yourusername yourpassword"

/Waleij

0
 
LVL 1

Author Comment

by:alan2938
ID: 22796020
Yes. I have tried it with that, without that, with mydomain/myusername, without mydomain/, all variations. It doesn't make sense why I can't get it to log in when it obviously works for other users.
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 3

Expert Comment

by:Waleij
ID: 22796361
Sorry for asking but are you allowed to use IMAP4 with your user?
Take a look under user properties in Exchange and Exchange Features.

Have u tested to create a new user for ex. a "testimap" user and login in?
0
 
LVL 1

Author Comment

by:alan2938
ID: 22796443
Yes, all permissions are set correctly. I actually am trying to add the user to my Outlook profile as an IMAP4 connection and it keeps coming back asking for the user/pass over and over. I reset the password on the user so I am certain I have the correct information.
0
 
LVL 3

Expert Comment

by:Waleij
ID: 22796615
Have u looked in the Event Viewer under Security? Do u get Failure Audit, for that user?
0
 
LVL 1

Author Comment

by:alan2938
ID: 22796725
No, no Failure Audits throughout the entire log. Are there access logs I can view somewhere to see if it is telling me unknown user or password?
0
 
LVL 1

Author Comment

by:alan2938
ID: 22797573
Ok, so I narrowed it down. User accounts that are the same as their email addresses can log in and work fine. Those which are different do not.

For example, I created a test user called "same" with password 1234 and email address same@mydomain.com. If I try to log in to IMAP by typing:
01 LOGIN same 1234  ... it works.

I created another test user called "different" with password 1234 and email address testing@mydomain.com. If I try to log in to IMAP by typing:
01 LOGIN different 1234  ... I got "unknown user name or bad password". If I try:
01 LOGIN testing 1234 ... I got "NO The specified directory service attribute or value does not exist."

Ideas?
0
 
LVL 1

Accepted Solution

by:
alan2938 earned 0 total points
ID: 22797758
Ok, fixed it. If the "alias" field under the Exchange General tab different from the username, you have to either change it to be the same or log in with:

LOGIN domain/username/alias password
0

Featured Post

Are your corporate email signatures appalling?

Is it scary how unprofessional your email signatures look? Do users create their own terrible designs and give themselves stupid job titles? You can make this a lot easier for yourself by choosing an email signature management solution from Exclaimer today.

Join & Write a Comment

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
This video discusses moving either the default database or any database to a new volume.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now