Author Topic: "a001 NO LOGIN failed" in on line 0  (Read 56850 times)

Offline svedman

  • Newbie
  • *
  • Posts: 8
"a001 NO LOGIN failed" in on line 0
« on: October 11, 2007, 12:28:43 PM »
RoundCube works for all my IMAP accounts except one: imap.registrar.no. I cannot understand why, because this IMAP server works fine with other applications, including web-based ones.

The error message in the log when I try to log in doesn't really say much either:

Code: [Select]
IMAP Error: Authentication for [sensored e-mail address] failed (LOGIN): "a001 NO LOGIN failed" in on line 0
Does this suggest that RoundCube is not sending the credentials correctly to some IMAP servers? Unfortunately I do not know the software this specific server is running. Does anyone know how I can find that out?

Would anyone like to share their thoughts on this?

Regards,
Øyvind

Offline hcl

  • Jr. Member
  • **
  • Posts: 14
Re: "a001 NO LOGIN failed" in on line 0
« Reply #1 on: October 18, 2007, 09:49:56 PM »
Hi,

http://www.courier-mta.org/imap/]Courier-IMAP http://www.courier-mta.org/imap/[/url] is an IMAP server. Having an IMAP server is a prerequisite to be able run a IMAP-client WebMail system like RoudCube.
you must check IMAP/IMAPS is running or not ?
if you run with linux box, try this :

[step 1]
$nmap localhost |grep 143
or
$nmap localhost |grep 443

[step 2]
$telnet localhost 143

#this sample on mybox
telnet localhost 143
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc. See COPYING for distribution information.
a login hcl@mydomain.tld mypassword
a OK LOGIN Ok.
a logout
Connection closed by foreign host

# you can show log in e.g /var/log/maillog

I'm use RoundCube with:
Linux 2.6.18-8.el5 (Centos 5)
QMAIL 1.03
MySQL 14.12 Distrib 5.0.22
Courier-IMAP-4.0.2
Apache/2.2.3
Clamav 0.91.2 with SIMCAN 1.3.1

Offline svedman

  • Newbie
  • *
  • Posts: 8
Re: "a001 NO LOGIN failed" in on line 0
« Reply #2 on: October 19, 2007, 06:09:57 AM »
Thank you for your answer!

I tried nmap, but got the error message:

Code: [Select]
nexthost: Failed to determine dst MAC address for target imap.registrar.no
I Telnet'ed into the server, and this is what I got (sensored):

Code: [Select]
$ telnet imap.registrar.no 143
Trying 213.179.58.79...
Connected to smtp.netclient.no.
Escape character is '^]'.
* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS] JIMAP at 19-10-2007 09:31:23 +0000 (GMT)
a login [email]hcl@mydomain.tld[/email] mypassword
a OK [CAPABILITY IMAP4REV1 IDLE MAILBOX-REFERRALS BINARY STARTTLS UNSELECT SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND] User [email]hcl@mydomain.tld[/email] authenticated
a logout
* BYE JIMAP server terminating connection
a OK LOGOUT completed
Connection closed by foreign host.

Is the reply from the server unexpected / in an unexpected format for RoundCube?

Is it the server or RoundCube that is "buggy" here?

Offline hcl

  • Jr. Member
  • **
  • Posts: 14
Re: "a001 NO LOGIN failed" in on line 0
« Reply #3 on: October 21, 2007, 09:42:06 PM »
Hi, are you running on hosting ? or own server ? for IMAP, i see a trouble with Authentication library (authdaemon). Or if you running with hosting, tell your hosting administrator. a sample fixed, restart 'authdaemon' and try login with webmail.

and don't forget check main config RC for TCP/Port IMAP on $rcmail_config ['default_host'] and ['default_port']

test create a new account for test it out, don't use old mail account, It could be that you don’t have the mail server setup properly, or maybe the permissions of the files were set improperly. I would have to first check to make sure that A, you are logging in properly (You might need to use username@domain.com or simply username)

and also you can try login from Outlook express client. if Outlook express is ok, something a wrong on your RC setting :)

I'm use RoundCube with:
Linux 2.6.18-8.el5 (Centos 5)
QMAIL 1.03
MySQL 14.12 Distrib 5.0.22
Courier-IMAP-4.0.2
Apache/2.2.3
Clamav 0.91.2 with SIMCAN 1.3.1

Offline svedman

  • Newbie
  • *
  • Posts: 8
Re: "a001 NO LOGIN failed" in on line 0
« Reply #4 on: October 23, 2007, 02:56:22 PM »
The server is with an external host.

I am able to connect with Opera and other webmail software (such as Squirrel Mail), which is why I think it might be a bug in RC.

I did create new accounts for testing, as you suggested, to make sure I had the correct settings, and they worked with the other software; but not RC.

The connection port is correctly put in RC's main.inc.php, and I have gone over the other RC settings to make sure everything is correct. I am using the full e-mail address as user name, and this is also correct from the mail provider.

So, I think I will report this as a bug?

Offline svedman

  • Newbie
  • *
  • Posts: 8
Re: "a001 NO LOGIN failed" in on line 0
« Reply #5 on: October 23, 2007, 02:59:00 PM »

Offline Epij

  • Newbie
  • *
  • Posts: 2
Re: "a001 NO LOGIN failed" in on line 0
« Reply #6 on: October 25, 2007, 08:01:36 AM »
I have the same issue and still no solution:

Code: [Select]
IMAP Error: Authentication for <user> failed (LOGIN): &quot;a001 NO LOGIN failed&quot; in on line 0
IMAP Error: Authentication for <user@domain.tld> failed (LOGIN): &quot;a001 NO LOGIN failed&quot; in on line 0

When i try this, posted from hcl:
Code: [Select]
[step 2] from hcl
$telnet localhost 143

#this sample on mybox
telnet localhost 143
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc. See COPYING for distribution information.
a login [email]hcl@mydomain.tld[/email] mypassword
a OK LOGIN Ok.
a logout
Connection closed by foreign host

# you can show log in e.g /var/log/maillog

I get:
Code: [Select]
# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc. See COPYING for distribution information.
a login [email]user@domain.tld[/email] password
a NO Login failed.

/var/log/mail.log shows:
Code: [Select]
Oct 25 13:52:02 hostname imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 25 13:52:18 hostname imapd: LOGIN FAILED, user=user@domain.tld, ip=[::ffff:127.0.0.1]
Oct 25 13:53:36 hostname imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 25 13:53:36 hostname imapd: LOGIN FAILED, user=user@domain.tld, ip=[::ffff:127.0.0.1]
Oct 25 13:53:41 hostname imapd: Disconnected, ip=[::ffff:127.0.0.1], time=5
Oct 25 13:53:46 hostname imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 25 13:53:46 hostname imapd: LOGIN FAILED, user=user, ip=[::ffff:127.0.0.1]
Oct 25 13:53:51 hostname imapd: Disconnected, ip=[::ffff:127.0.0.1], time=5

when i try to send mails via telnet localhost 25 they are sent and received and everything works fine
Is there no solution, is this maybe even a bug ?
please excuse my bad english

Offline svedman

  • Newbie
  • *
  • Posts: 8
Re: "a001 NO LOGIN failed" in on line 0
« Reply #7 on: October 25, 2007, 11:25:18 AM »
Quote from: Epij
I get:
Code: [Select]
# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc. See COPYING for distribution information.
a login [email]user@domain.tld[/email] password
a NO Login failed.

If you're not able to log in via Telnet either, I'm not sure it is the same problem as mine. I was able to log in via Telnet, but not RC.

I do hope you're using your actual username and password with Telnet? ;)

Offline Epij

  • Newbie
  • *
  • Posts: 2
Re: "a001 NO LOGIN failed" in on line 0
« Reply #8 on: October 25, 2007, 11:53:18 AM »
yes i login witht the real username, code above was just edited to post here :)

Offline svedman

  • Newbie
  • *
  • Posts: 8
Re: "a001 NO LOGIN failed" in on line 0
« Reply #9 on: October 28, 2007, 03:51:05 AM »

Offline Fiver

  • Newbie
  • *
  • Posts: 1
Re: "a001 NO LOGIN failed" in on line 0
« Reply #10 on: November 29, 2007, 02:04:33 PM »
I'm not sure whether you ever sorted this out, but I received the identical error when first trying to setup roundcube. It was because I had set the email domain in main.inc.php. The following setting:

// Automatically add this domain to user names for login
// Only for IMAP servers that require full e-mail addresses for login
// Specify an array with 'host' => 'domain' values to support multiple hosts
$rcmail_config['username_domain'] = '';

If this is not left blank, it can cause the precise error you described.

Cheers,
Fiver

Offline svedman

  • Newbie
  • *
  • Posts: 8
Re: "a001 NO LOGIN failed" in on line 0
« Reply #11 on: November 29, 2007, 02:21:46 PM »
The setting you're referring to is blank in my configuration, and my issue is still unresolved.

My bug report was dismissed because I am unable to provide a test account.

Offline Brun

  • Newbie
  • *
  • Posts: 1
"a001 NO LOGIN failed" in on line 0
« Reply #12 on: December 24, 2008, 11:44:04 AM »
Quote
root@serverinet:/var/log# nmap localhost |grep 143
Warning: Hostname localhost resolves to 2 IPs. Using 127.0.0.1.
143/tcp open imap

but
Quote
root@serverinet:/var/log# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2008 Double Precision, Inc. See COPYING for distribution information.
a login brun@lim.if.ua password
* BYE [ALERT] Fatal error: lim.if.ua/brun/: No such file or directory
Connection closed by foreign host.

Error that the service does not automatically creates a directory. Made for example. Where is wrong?

Offline topanga

  • Newbie
  • *
  • Posts: 1
"a001 NO LOGIN failed" in on line 0
« Reply #13 on: August 31, 2009, 03:32:32 PM »
hi the same problem i need hepl