Re: STAT command failure

2017-10-24 Thread Andrew Charnley
On Tue, 24 Oct 2017 14:31:11 -0700 (PDT)
Joseph Tam <jtam.h...@gmail.com> wrote:

> Andrew Charnley <a...@igaro.com> writes:
> 
> >>> Regarding STAT which appears to have an issue with Dovecot:-
> >>>
> >>> [23:50:46] POP< +OK Dovecot ready.
> >>> [23:50:46] POP> USER x
> >>> [23:50:46] POP< +OK
> >>> [23:50:46] POP> PASS 
> >>> [23:50:46] POP< +OK Logged in.
> >>> [23:50:46] POP> STAT
> >>> [23:50:46] POP< -ERR Unknown command:  
> >>
> >> user x
> >> pass ***
> >> stat  
> >
> > I can confirm this works.  
> 
> > 2. Likely an issue with CLAWS email.  
> 
> If you can arrange a network capture of a non-SSL remote CLAWS
> connection, try checking whether there's a hidden character (NULL,
> .etc.) being sent.
> 
> It's also telling that it works for some accounts, and not for others.
> Try rebuilding the user's index cache by removing it (save a copy!)
> and see if that makes it work.  If it does, you can send the buggy
> caches to the developer and see if they can figure it out.
> 
> Joseph Tam <jtam.h...@gmail.com>

Hi Joseph,

Which user index file to you refer to?

Regards,

Andrew


Re: STAT command failure

2017-10-24 Thread Andrew Charnley
Hi,

I can confirm this works.

So two issues here;

1. Dovecot logging is useless - there is no logging or stderr output

2. Likely an issue with CLAWS email.

I'm conversing with the CLAWS support group to see what they think.

Regards,

Andrew




On Tue, 24 Oct 2017 07:28:00 +0200 (CEST)
Steffen Kaiser <skdove...@smail.inf.fh-brs.de> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On Mon, 23 Oct 2017, Andrew Charnley wrote:
> 
> > Regarding STAT which appears to have an issue with Dovecot:-
> >
> > [23:50:46] POP< +OK Dovecot ready.
> > [23:50:46] POP> USER x
> > [23:50:46] POP< +OK
> > [23:50:46] POP> PASS 
> > [23:50:46] POP< +OK Logged in.
> > [23:50:46] POP> STAT
> > [23:50:46] POP< -ERR Unknown command:  
> 
> This response usually has the offending command behind the colon - at 
> least in Dovecot v2.2
> 
> BTW: could you launch a secure connection, e.g. from the mail server
> 
> telnet localhost 110
> 
> then type in the commands yourself:
> 
> user x
> pass ***
> stat
> 
> - -- 
> Steffen Kaiser
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1
> 
> iQEVAwUBWe7PYHz1H7kL/d9rAQKI4Af7Bn/6d5UQnINGPMSdkQgNyy5h0cWHvsmQ
> U8guJnwtlEcLe0MdJD++vrM6jVeFBjgNqZrqD5Je9dei2GaNz8ti4iwr3WEi2k3I
> rkBjznX2Z2bIxpXIFjA3T4I0xSnJ7ohv3qhk1ixebpiNzi9MoA53OYre3r/ghsq8
> px6L/vMpuyQ0hiztQKyMpNUBtCE4Y/epG0R5Qy5u1VqQY4giJvSWKWdT0dE4XTkZ
> MNUt+d+/RlGTFHc6iiw+mDCUEzOnwIhuTEd25TJhh5Gm/8FS4zu1ayqHoRiRE0gB
> uTE2C842BSEuN0yUVucWc35ZWra4yW59Ugf+9OYJbU5LjBwF4Bkrqw==
> =H1JT
> -END PGP SIGNATURE-


STAT command failure

2017-10-23 Thread Andrew Charnley
Hi,

Regarding STAT which appears to have an issue with Dovecot:-

[23:50:46] POP< +OK Dovecot ready.
[23:50:46] POP> USER x
[23:50:46] POP< +OK
[23:50:46] POP> PASS 
[23:50:46] POP< +OK Logged in.
[23:50:46] POP> STAT
[23:50:46] POP< -ERR Unknown command: 

I have enabled the logging as previously instructed for pop3 however
this is only up to the point of login. After this there is no further
information. Login is successful.

Other commands are working fine, I can use Evolution which doesn't use
STAT and access email fine. The issue only came to light due to an
attempt to change to Claws email.

Strangely one of my four accounts on the same server does work. There
is no difference in the settings and I've tried recreating them on both
Claws and the server. The Claws team are 100% sure it's a Dovecot issue.

This is the latest version available with Centos 7 so not the most
up-to-date but I can't see anything in the logs which would suggest a
change for 2.2.

Regards,

Andrew


STAT command error

2017-10-04 Thread Andrew Charnley
Hi,

Unsure if my previous message made it through as didn't see it on
a digest.

I'm using Claws Email and 3 of 4 email accounts keep giving;

[10:50:45] POP< +OK Dovecot ready.
[10:50:45] POP> USER sales
[10:50:45] POP< +OK
[10:50:45] POP> PASS 
[10:50:45] POP< +OK Logged in.
[10:50:45] POP> STAT
[10:50:45] POP< -ERR Unknown command: 
*** error occurred on POP session
*** Error occurred while processing mail.

I've turned on as much logging as I can find in Dovecot but nothing
useful is coming out, it honestly does believe STAT is invalid - I can
see the connection close rather than disconnect.

It's strange how it works for one account but not others, the settings
are identical - I went through them with a fine tooth comb.

Any suggestions appreciated. 

Regards,

Andrew


POP3 STAT command broken (race condition?)

2017-10-01 Thread Andrew Charnley
Hi,

4x POP3 over SSL. I login manually using SSL client and issue STAT
command - all work.

Claws-mail works for one account persistently, the other three always
fail. There are no differences between the accounts other than
username/pass so I have been unable to determine why this occurs. Also,
Evolution works as it uses LIST not STAT.

Claws reports:

[12:30:40] POP< +OK
[12:30:40] POP> PASS 
[12:30:40] POP< +OK Logged in.
[12:30:40] POP> STAT
[12:30:40] POP< -ERR Unknown command: 
*** error occurred on POP session
*** Error occurred while processing mail.

Perhaps there's a race between logging in and issuing commands? 

Andrew