Re: Server responded: -ERR Login failed

peterc100 wrote:

I like the program but there needs to be more checks on the login to say exactly where the probelm is.

True, and it would be nice if more info was logged.  Currently, my logs/ directory contains 1 empty file so it's useless for debugging IMAP failures.

My problem is this:

If I telnet to the IMAP port (143) and login via the telnet interface things work (using a dovecot server that supports IMAP4v1).  If I login via the atmail form it fails.  Dovecot is configured to log me in with a local username (bob) rather than a a full email address (bob@example.com) so I'm wondering if that's my problem.  Can I have atmail not use the "@example.com" when logging in?

+ -

Re: Server responded: -ERR Login failed

There is some configuration problems with your Email server if you are getting errors like these and you can confirm you are typing the correct password...

I struggled with these when I started developing mail servers and working with AtMail... it takes time..
I can't tell you for sure, but maybe it has to do with your ports (also firewalls) and or internet connection... (is your email server on the same server as your AtMail install?)...are you using HTTPS?

lots of things like I said can lead to this... ERR usually means bad password...maybe your PHP is parsing incorrectly (i've seen that scenario before)...The SESSION may be set wrong...or you have passed limit of connections etc...

I could go on and on...I'm glad to help if you can give more information.

+ -

Re: Server responded: -ERR Login failed

gwar9999 wrote:

  Can I have atmail not use the "@example.com" when logging in?

Not quite.... You can remove the need to type in this field, but it will still have the TLDN hard coded into the script...

If you are using the webmail locally you could possibly remove this feature and re-write the script to not append anything...

gwar9999 wrote:

Currently, my logs/ directory contains 1 empty file so it's useless for debugging IMAP failures

This isn't really used in AtMail, the logging you should be paying attention to is on your server end (since it handles your requests, and the runtime etc)...I have never even looked at that folder on AtMail, for this reason.

Last edited by tensioncore (04-25-2009 1:52 pm GMT)

+ -

Re: Server responded: -ERR Login failed

I get the same error. I have atmail running on the same server as dovecot/postfix. Will not let me login as a system user (OS X). I can login to remote servers ok using atmail. Roundcube and Squirrelmail don't have a problem with local login. Would like to use atmail, just isn't possible in this setup.

+ -

Re: Server responded: -ERR Login failed

I found it easier to hack on ATMail than to reconfigure my IMAP servers

Edit libs/IMAP_Client.php
        function login($user, $pass)
        {
                list($user, $crap) = split("@", $user, 2);
                $this->user = $user;

Add in the underlined code, it simply strips the @domain part of the variable before attempting to log in to the server.

Then you can edit html/login-light.html and use <input type=hidden value="your mailserver name"> in the appropriate place. Basically change the input type from text to hidden and hardcode in your values there.

It's worked for me, mind you I've only just started playing with ATMail. If anyone has a more elegant solution, lets have it.

+ -

Re: Server responded: -ERR Login failed

@Brian

This is exactly what I was looking for, all my problems are now solved

Thanks for sharing

+ -

Re: Server responded: -ERR Login failed

peterc100 wrote:

I like the program but there needs to be more checks on the login to say exactly where the probelm is.

True, and it would be nice if more info was logged.  Currently, my logs/ directory contains 1 empty file so it's useless for debugging IMAP failures.

My problem is this:

If I telnet to the IMAP port (143) and login via the telnet interface things work (using a dovecot server that supports IMAP4v1).  If I login via the atmail form it fails.  Dovecot is configured to log me in with a local username (bob) rather than a a full email address (bob@example.com) so I'm wondering if that's my problem.  Can I have atmail not use the "@example.com" when logging in?

+ -

Re: Server responded: -ERR Login failed

There is some configuration problems with your Email server if you are getting errors like these and you can confirm you are typing the correct password...

I struggled with these when I started developing mail servers and working with AtMail... it takes time..
I can't tell you for sure, but maybe it has to do with your ports (also firewalls) and or internet connection... (is your email server on the same server as your AtMail install?)...are you using HTTPS?

lots of things like I said can lead to this... ERR usually means bad password...maybe your PHP is parsing incorrectly (i've seen that scenario before)...The SESSION may be set wrong...or you have passed limit of connections etc...

I could go on and on...I'm glad to help if you can give more information.

+ -

Re: Server responded: -ERR Login failed

gwar9999 wrote:

  Can I have atmail not use the "@example.com" when logging in?

Not quite.... You can remove the need to type in this field, but it will still have the TLDN hard coded into the script...

If you are using the webmail locally you could possibly remove this feature and re-write the script to not append anything...

gwar9999 wrote:

Currently, my logs/ directory contains 1 empty file so it's useless for debugging IMAP failures

This isn't really used in AtMail, the logging you should be paying attention to is on your server end (since it handles your requests, and the runtime etc)...I have never even looked at that folder on AtMail, for this reason.

Last edited by tensioncore (04-25-2009 1:52 pm GMT)

+ -

Re: Server responded: -ERR Login failed

I get the same error. I have atmail running on the same server as dovecot/postfix. Will not let me login as a system user (OS X). I can login to remote servers ok using atmail. Roundcube and Squirrelmail don't have a problem with local login. Would like to use atmail, just isn't possible in this setup.

+ -

Re: Server responded: -ERR Login failed

I found it easier to hack on ATMail than to reconfigure my IMAP servers

Edit libs/IMAP_Client.php
        function login($user, $pass)
        {
                list($user, $crap) = split("@", $user, 2);
                $this->user = $user;

Add in the underlined code, it simply strips the @domain part of the variable before attempting to log in to the server.

Then you can edit html/login-light.html and use <input type=hidden value="your mailserver name"> in the appropriate place. Basically change the input type from text to hidden and hardcode in your values there.

It's worked for me, mind you I've only just started playing with ATMail. If anyone has a more elegant solution, lets have it.

+ -

Re: Server responded: -ERR Login failed

@Brian

This is exactly what I was looking for, all my problems are now solved

Thanks for sharing

+ -

Re: Server responded: -ERR Login failed

After a couple hours trying to solve this I found this and it solved my login issues as well.
I'm not sure if this is environment specific but if its not I would think this code should be updated in the released versions.

I'm running CentOS 5 w/ Sendmail, Postfix, Dovecot, and AtMail.

Now I just have to sort out my SMTP auth issues, but at least I can access my email from the webclient now. I would like to add my thanks for sharing.

+ -

Re: Server responded: -ERR Login failed

Thanks For the help

Potty Training 3 Year Old
Numark DJ Equipment

+ -