Re: squirrelmail error message issue.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: squirrelmail error message issue.

Rajesh M-3
paul

squirrelmail version : Version: 1.4.22

dovecot version : 2.2.7

i followed your advice and here is the response from the server

A LOGIN [hidden email] 111
A NO [AUTHENTICATIONFAILED] Authentication failed.
B LOGOUT
Connection closed by foreign host.

dovecot log file shows as follows

Jan 15 07:21:35 imap-login: Info: Aborted login (auth failed, 1 attempts in 14 secs): user=<[hidden email]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<PV7GF6cM3wB/AAAB>

the error squirrelmail shows is : connection dropped by imap server. query logout.

rajesh


----- Original Message -----
From: Paul Lesniewski [mailto:[hidden email]]
To: [hidden email]
Sent: Mon, 8 Dec 2014 14:19:57 -0800
Subject: Re: [SM-USERS] squirrelmail error message issue.

>> hi
>>
>> i am using dovecot for pop3 and imap along with qmail toaster
>>
>> i had recently changed over from a 32 bit system to a 64 bit system.
>>
>> i use squirrelmail.
>>
>> the issue i face is that when the user inserts an invalid password then
>> the
>> message he gets is connection dropped by imap server  (instead of invalid
>> userid or password)
>>
>> such a message confuses the user.
>>
>> my earlier 32 bit version used to give the correct message
>>
>> i am posting this issue here because i am not sure if this is
>> squirrelmail
>> issue or a dovecot issue.
>
> Probably a Dovecot issue.  The answer is in your logs.
>

> paul
>
> thanks for your reply
>
> i intentionaly put the wrong password and checked the dovecot log and the
> message i got was
>
> # tail -f /var/log/dovecot.log | grep "[hidden email]"
> Nov 25 08:47:46 imap-login: Info: Aborted login (auth failed, 1 attempts in
> 2 secs): user=<[hidden email]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1,
> secured, session=<xObTWqYIwgB/AAAB>
>
> but in the squirrelmail login page instead of the message "unknown user or
> password incorrect" i get the message
>
> ERROR: Connection dropped by IMAP server.
> Query: LOGOUT
>
>
> in my old server where it is working correctly dovecot logs shows the error
>
> Nov 25 14:46:12 imap-login: Info: Aborted login (auth failed, 1 attempts):
> user=<"[hidden email]">, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
>> and squirrelmail gives the error : "unknown user or password incorrect"
> which is correct.
>
> is there any other place i need to check or some other config file (either
> squirrelmail or dovecot) that i need to modify
>
> could you kindly guide me
At the command line:

telnet localhost 143 (or whatever port your Dovecot server is listening on)
A LOGIN [hidden email] wwwww
B LOGOUT

See what the IMAP response is to line A.  It is probably not giving a
valid response such as "NO login failed."  If it's giving a "BAD"
response, you need to fix your Dovecot settings.

--
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [hidden email]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [hidden email]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
Reply | Threaded
Open this post in threaded view
|

Re: squirrelmail error message issue.

Paul Lesniewski
Please don't top-post and please quote your replies!  What a mess.

>>>> i am using dovecot for pop3 and imap along with qmail toaster
>>>>
>>>> i had recently changed over from a 32 bit system to a 64 bit system.
>>>>
>>>> i use squirrelmail.
>>>>
>>>> the issue i face is that when the user inserts an invalid password then
>>>> the
>>>> message he gets is connection dropped by imap server  (instead of
>>>> invalid
>>>> userid or password)
>>>>
>>>> such a message confuses the user.
>>>>
>>>> my earlier 32 bit version used to give the correct message
>>>>
>>>> i am posting this issue here because i am not sure if this is
>>>> squirrelmail
>>>> issue or a dovecot issue.
>>>
>>> Probably a Dovecot issue.  The answer is in your logs.
>>>
>>>
>>> paul
>>>
>> thanks for your reply
>>
>> i intentionaly put the wrong password and checked the dovecot log and the
>> message i got was
>>
>> # tail -f /var/log/dovecot.log | grep "[hidden email]"
>> Nov 25 08:47:46 imap-login: Info: Aborted login (auth failed, 1 attempts
>> in
>> 2 secs): user=<[hidden email]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1,
>> secured, session=<xObTWqYIwgB/AAAB>
>>
>> but in the squirrelmail login page instead of the message "unknown user
>> or
>> password incorrect" i get the message
>>
>> ERROR: Connection dropped by IMAP server.
>> Query: LOGOUT
>>
>>
>> in my old server where it is working correctly dovecot logs shows the
>> error
>>
>> Nov 25 14:46:12 imap-login: Info: Aborted login (auth failed, 1
>> attempts):
>> user=<"[hidden email]">, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
>>> and squirrelmail gives the error : "unknown user or password incorrect"
>> which is correct.
>>
>> is there any other place i need to check or some other config file
>> (either
>> squirrelmail or dovecot) that i need to modify
>>
>> could you kindly guide me
>
> At the command line:
>
> telnet localhost 143 (or whatever port your Dovecot server is listening on)
> A LOGIN [hidden email] wwwww
> B LOGOUT
>
> See what the IMAP response is to line A.  It is probably not giving a
> valid response such as "NO login failed."  If it's giving a "BAD"
> response, you need to fix your Dovecot settings.
>
> squirrelmail version : Version: 1.4.22
>
> dovecot version : 2.2.7
>
> i followed your advice and here is the response from the server
>
> A LOGIN [hidden email] 111
> A NO [AUTHENTICATIONFAILED] Authentication failed.
> B LOGOUT
> Connection closed by foreign host.
>
> dovecot log file shows as follows
>
> Jan 15 07:21:35 imap-login: Info: Aborted login (auth failed, 1 attempts in
> 14 secs): user=<[hidden email]>, method=PLAIN, rip=127.0.0.1,
> lip=127.0.0.1, secured, session=<PV7GF6cM3wB/AAAB>
>
> the error squirrelmail shows is : connection dropped by imap server. query
> logout.

Looks fine - standard Dovecot response.  I just tested here and
SquirrelMail reports the correct message to the user based on the same
response.  You'll have to dig around and see why your installation of
Dovecot is dropping when talking to SquirrelMail.  Maybe tcpdump or
ngrep will help you.  Make sure there's no proxy in the middle.

--
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [hidden email]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users