Re: Problem with Dovecot and BlackBerry

2017-04-06 Thread Michael Slusarz
> On April 4, 2017 at 5:07 AM Luca Bertoncello  wrote:
> 
> Hi all,
> 
> i've got a strange behaviour with a BlackBerry Classic Phone (BBOS
> 10.3.2.2876) in combination with Dovecot 2.2.13 while trying to fetch
> mails.
> 
> Before burying myself into debugging sessions, i try to get an
> understanding if the following is a Client- or a Server-specific error
> in the behaviour:
> 
> CIGA8 UID FETCH 10009:10035 (UID FLAGS) (CHANGEDSINCE NOMODSEQ)
> CIGA8 BAD Error in IMAP command UID FETCH: Invalid CHANGEDSINCE modseq.

That's a broken client.

https://tools.ietf.org/html/rfc7162#section-3.1.4.1

"CHANGEDSINCE :  The CHANGEDSINCE FETCH modifier allows
   the client to further subset the list of messages described by the
   sequence set.  The information described by message data items is
   only returned for messages that have a mod-sequence bigger than
   ."

michael


Re: Problem with Dovecot and BlackBerry

2017-04-06 Thread Aki Tuomi


On 06.04.2017 07:50, li...@lazygranch.com wrote:
> On Tue, 04 Apr 2017 11:07:26 +
> Luca Bertoncello  wrote:
>
>> Hi all,
>>
>> i've got a strange behaviour with a BlackBerry Classic Phone (BBOS  
>> 10.3.2.2876) in combination with Dovecot 2.2.13 while trying to
>> fetch mails.
>>
>> Before burying myself into debugging sessions, i try to get an  
>> understanding if the following is a Client- or a Server-specific
>> error in the behaviour:
>>
>> CIGA8 UID FETCH 10009:10035 (UID FLAGS) (CHANGEDSINCE NOMODSEQ)
>> CIGA8 BAD Error in IMAP command UID FETCH: Invalid CHANGEDSINCE
>> modseq.
>>
>> Following the full conversation.
>> 
>> * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID
>> ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5
>> AUTH=CRAM-MD5] Dovecot on xxx ready.
>> CIGA1 CAPABILITY
>> * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
>> IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5
>> CIGA1 OK Pre-login capabilities listed, post-login capabilities have
>> more. CIGA2 ID ("os" "BlackBerry 10" "os-version" "10.3.2.2876"
>> "vendor" "rim" "device" "Classic" "name" "bbimap")
>> * ID ("name" "Dovecot")
>> CIGA2 OK ID completed.
>> CIGA3 LOGIN xxx xxx
>> * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
>> IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS
>> THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT
>> CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE
>> QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS
>> SPECIAL-USE BINARY MOVE CIGA3 OK Logged in
>> CIGA4 CAPABILITY
>> * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
>> IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS
>> THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT
>> CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE
>> QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS
>> SPECIAL-USE BINARY MOVE CIGA4 OK Capability completed.
>> CIGA5 LIST "" ""
>> * LIST (\Noselect) "." ""
>> CIGA5 OK List completed.
>> CIGA6 LIST "" "*"
>> * LIST (\HasNoChildren) "." folder_a
>> * LIST (\HasNoChildren) "." folder_b
>> * LIST (\HasNoChildren) "." folder_c
>> * LIST (\HasNoChildren) "." sent-mail
>> * LIST (\HasNoChildren) "." folder_d
>> * LIST (\HasNoChildren) "." folder_e
>> * LIST (\HasNoChildren \Trash) "." Trash
>> * LIST (\HasNoChildren \Drafts) "." Drafts
>> * LIST (\HasNoChildren) "." folder_f
>> * LIST (\HasNoChildren) "." folder_g
>> * LIST (\HasNoChildren) "." INBOX
>> CIGA6 OK List completed.
>> CIGA7 SELECT INBOX (CONDSTORE)
>> * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
>> * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)]  
>> Flags permitted.
>> * 7 EXISTS
>> * 0 RECENT
>> * OK [UIDVALIDITY 1391686038] UIDs valid
>> * OK [UIDNEXT 10036] Predicted next UID
>> * OK [HIGHESTMODSEQ 1608] Highest
>> CIGA7 OK [READ-WRITE] Select completed (0.000 secs).
>> CIGA8 UID FETCH 10009:10035 (UID FLAGS) (CHANGEDSINCE NOMODSEQ)
>> CIGA8 BAD Error in IMAP command UID FETCH: Invalid CHANGEDSINCE
>> modseq. CIGA9 LOGOUT
>> * BYE Logging out
>> CIGA9 OK Logout completed.
>> 
>>
>> Thanks in advance!
>>
>> Luca Bertoncello
>> (lucab...@lucabert.de)
> Is that the dovecot.log file?
>
> Here is what  I get:
>
> # dovecot --version
> 2.2.28 (bed8434)
>
> bbos 10.3.3.2205
>
>
> Sanitized log file below. I'd appreciate the moderator removing my post
> if I let something slip.
>
> Apr 06 04:01:02 imap-login: Info: Login: user=, 
> method=PLAIN, rip=myip, lip=myserver, mpid=77887, TLS, session=
> Apr 06 04:01:02 imap(m...@mydomain.com): Debug: Added userdb setting: 
> plugin/=yes
> Apr 06 04:01:02 imap(m...@mydomain.com): Debug: Effective uid=1003, gid=1003, 
> home=/var/mail/vhosts/mydomain.com/me
> Apr 06 04:01:02 imap(m...@mydomain.com): Debug: Namespace inbox: 
> type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, 
> subscriptions=yes location=maildir:~
> Apr 06 04:01:02 imap(m...@mydomain.com): Debug: maildir++: 
> root=/var/mail/vhosts/mydomain.com/me, index=, indexpvt=, control=, 
> inbox=/var/mail/vhosts/mydomain.com/me, alt=
> Apr 06 04:01:04 auth: Debug: client in: AUTH1   PLAIN   service=imap  
>   secured session=differentcharslip=myserver rip=myip   
> lport=143
> rport=47037 local_name=www.mydomain.com   resp=lotsofchars= (previous 
> base64 data may contain sensitive data)

It would seem like a bug in your Blackberry email client, it should not
do this.

CIGA8 UID FETCH 10009:10035 (UID FLAGS) (CHANGEDSINCE NOMODSEQ)

The CHANGEDSINCE expects some numeric value, not NOMODSEQ.

Aki


Re: Problem with Dovecot and BlackBerry

2017-04-05 Thread li...@lazygranch.com
On Tue, 04 Apr 2017 11:07:26 +
Luca Bertoncello  wrote:

> Hi all,
> 
> i've got a strange behaviour with a BlackBerry Classic Phone (BBOS  
> 10.3.2.2876) in combination with Dovecot 2.2.13 while trying to
> fetch mails.
> 
> Before burying myself into debugging sessions, i try to get an  
> understanding if the following is a Client- or a Server-specific
> error in the behaviour:
> 
> CIGA8 UID FETCH 10009:10035 (UID FLAGS) (CHANGEDSINCE NOMODSEQ)
> CIGA8 BAD Error in IMAP command UID FETCH: Invalid CHANGEDSINCE
> modseq.
> 
> Following the full conversation.
> 
> * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID
> ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5
> AUTH=CRAM-MD5] Dovecot on xxx ready.
> CIGA1 CAPABILITY
> * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
> IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5
> CIGA1 OK Pre-login capabilities listed, post-login capabilities have
> more. CIGA2 ID ("os" "BlackBerry 10" "os-version" "10.3.2.2876"
> "vendor" "rim" "device" "Classic" "name" "bbimap")
> * ID ("name" "Dovecot")
> CIGA2 OK ID completed.
> CIGA3 LOGIN xxx xxx
> * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
> IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS
> THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT
> CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE
> QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS
> SPECIAL-USE BINARY MOVE CIGA3 OK Logged in
> CIGA4 CAPABILITY
> * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
> IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS
> THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT
> CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE
> QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS
> SPECIAL-USE BINARY MOVE CIGA4 OK Capability completed.
> CIGA5 LIST "" ""
> * LIST (\Noselect) "." ""
> CIGA5 OK List completed.
> CIGA6 LIST "" "*"
> * LIST (\HasNoChildren) "." folder_a
> * LIST (\HasNoChildren) "." folder_b
> * LIST (\HasNoChildren) "." folder_c
> * LIST (\HasNoChildren) "." sent-mail
> * LIST (\HasNoChildren) "." folder_d
> * LIST (\HasNoChildren) "." folder_e
> * LIST (\HasNoChildren \Trash) "." Trash
> * LIST (\HasNoChildren \Drafts) "." Drafts
> * LIST (\HasNoChildren) "." folder_f
> * LIST (\HasNoChildren) "." folder_g
> * LIST (\HasNoChildren) "." INBOX
> CIGA6 OK List completed.
> CIGA7 SELECT INBOX (CONDSTORE)
> * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
> * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)]  
> Flags permitted.
> * 7 EXISTS
> * 0 RECENT
> * OK [UIDVALIDITY 1391686038] UIDs valid
> * OK [UIDNEXT 10036] Predicted next UID
> * OK [HIGHESTMODSEQ 1608] Highest
> CIGA7 OK [READ-WRITE] Select completed (0.000 secs).
> CIGA8 UID FETCH 10009:10035 (UID FLAGS) (CHANGEDSINCE NOMODSEQ)
> CIGA8 BAD Error in IMAP command UID FETCH: Invalid CHANGEDSINCE
> modseq. CIGA9 LOGOUT
> * BYE Logging out
> CIGA9 OK Logout completed.
> 
> 
> Thanks in advance!
> 
> Luca Bertoncello
> (lucab...@lucabert.de)

Is that the dovecot.log file?

Here is what  I get:

# dovecot --version
2.2.28 (bed8434)

bbos 10.3.3.2205


Sanitized log file below. I'd appreciate the moderator removing my post
if I let something slip.

Apr 06 04:01:02 imap-login: Info: Login: user=, 
method=PLAIN, rip=myip, lip=myserver, mpid=77887, TLS, session=
Apr 06 04:01:02 imap(m...@mydomain.com): Debug: Added userdb setting: 
plugin/=yes
Apr 06 04:01:02 imap(m...@mydomain.com): Debug: Effective uid=1003, gid=1003, 
home=/var/mail/vhosts/mydomain.com/me
Apr 06 04:01:02 imap(m...@mydomain.com): Debug: Namespace inbox: type=private, 
prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes 
location=maildir:~
Apr 06 04:01:02 imap(m...@mydomain.com): Debug: maildir++: 
root=/var/mail/vhosts/mydomain.com/me, index=, indexpvt=, control=, 
inbox=/var/mail/vhosts/mydomain.com/me, alt=
Apr 06 04:01:04 auth: Debug: client in: AUTH1   PLAIN   service=imap
secured session=differentcharslip=myserver rip=myip   lport=143
rport=47037 local_name=www.mydomain.com   resp=lotsofchars= (previous 
base64 data may contain sensitive data)


Problem with Dovecot and BlackBerry

2017-04-04 Thread Luca Bertoncello

Hi all,

i've got a strange behaviour with a BlackBerry Classic Phone (BBOS  
10.3.2.2876) in combination with Dovecot 2.2.13 while trying to fetch  
mails.


Before burying myself into debugging sessions, i try to get an  
understanding if the following is a Client- or a Server-specific error  
in the behaviour:


CIGA8 UID FETCH 10009:10035 (UID FLAGS) (CHANGEDSINCE NOMODSEQ)
CIGA8 BAD Error in IMAP command UID FETCH: Invalid CHANGEDSINCE modseq.

Following the full conversation.

* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE  
IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5]  
Dovecot on xxx ready.

CIGA1 CAPABILITY
* CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE  
STARTTLS AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5

CIGA1 OK Pre-login capabilities listed, post-login capabilities have more.
CIGA2 ID ("os" "BlackBerry 10" "os-version" "10.3.2.2876" "vendor"  
"rim" "device" "Classic" "name" "bbimap")

* ID ("name" "Dovecot")
CIGA2 OK ID completed.
CIGA3 LOGIN xxx xxx
* CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE  
SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT  
MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS  
LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES  
WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE

CIGA3 OK Logged in
CIGA4 CAPABILITY
* CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE  
SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT  
MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS  
LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES  
WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE

CIGA4 OK Capability completed.
CIGA5 LIST "" ""
* LIST (\Noselect) "." ""
CIGA5 OK List completed.
CIGA6 LIST "" "*"
* LIST (\HasNoChildren) "." folder_a
* LIST (\HasNoChildren) "." folder_b
* LIST (\HasNoChildren) "." folder_c
* LIST (\HasNoChildren) "." sent-mail
* LIST (\HasNoChildren) "." folder_d
* LIST (\HasNoChildren) "." folder_e
* LIST (\HasNoChildren \Trash) "." Trash
* LIST (\HasNoChildren \Drafts) "." Drafts
* LIST (\HasNoChildren) "." folder_f
* LIST (\HasNoChildren) "." folder_g
* LIST (\HasNoChildren) "." INBOX
CIGA6 OK List completed.
CIGA7 SELECT INBOX (CONDSTORE)
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)]  
Flags permitted.

* 7 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1391686038] UIDs valid
* OK [UIDNEXT 10036] Predicted next UID
* OK [HIGHESTMODSEQ 1608] Highest
CIGA7 OK [READ-WRITE] Select completed (0.000 secs).
CIGA8 UID FETCH 10009:10035 (UID FLAGS) (CHANGEDSINCE NOMODSEQ)
CIGA8 BAD Error in IMAP command UID FETCH: Invalid CHANGEDSINCE modseq.
CIGA9 LOGOUT
* BYE Logging out
CIGA9 OK Logout completed.


Thanks in advance!

Luca Bertoncello
(lucab...@lucabert.de)