Returning error response to the client from passdb (with dict protocol)

2017-09-11 Thread Nagy, Attila
Hi, When using a passdb with (UNIX socket) dict protocol, I can return a JSON with fields. When I want to deny the user, I can send a JSON like this: {"fail":true} which yields (on POP) a friendly -ERR [AUTH] Authentication failed. Is it possible to return the response text itself? I want to

Re: Is it possible to disable pipelining in imapc?

2017-09-11 Thread Nagy, Attila
On 09/11/2017 03:01 PM, Aki Tuomi wrote: On 11.09.2017 15:56, Nagy, Attila wrote: On 09/11/2017 12:12 PM, Aki Tuomi wrote: Is there some reason you can't use normal proxy instead of imap backend? That is,return proxy, host=imap_backend, port=1430? There seems to be no pipeline se

Re: Is it possible to disable pipelining in imapc?

2017-09-11 Thread Nagy, Attila
On 09/11/2017 12:12 PM, Aki Tuomi wrote: Is there some reason you can't use normal proxy instead of imap backend? That is,return proxy, host=imap_backend, port=1430? There seems to be no pipeline setting currently for imapc in v2.2. Yes, because it's a dumb IMAP server, which doesn't implement a

Re: Is it possible to disable pipelining in imapc?

2017-09-11 Thread Nagy, Attila
On 09/11/2017 11:14 AM, Aki Tuomi wrote: On 11.09.2017 11:59, Nagy, Attila wrote: On 09/11/2017 10:42 AM, Sami Ketola wrote: On 11 Sep 2017, at 11.24, Nagy, Attila wrote: I use dovecot with a broken IMAP server (which doesn't properly implement command pipelining amongst others) as an

Re: Is it possible to disable pipelining in imapc?

2017-09-11 Thread Nagy, Attila
On 09/11/2017 10:42 AM, Sami Ketola wrote: On 11 Sep 2017, at 11.24, Nagy, Attila wrote: I use dovecot with a broken IMAP server (which doesn't properly implement command pipelining amongst others) as an imapc backend. Dovecot issues the above command sequence (SELECT and UID FETCH pipe

Re: Is it possible to disable pipelining in imapc?

2017-09-11 Thread Nagy, Attila
On 09/11/2017 09:17 AM, Aki Tuomi wrote: On 08.09.2017 15:29, Nagy, Attila wrote: On 09/08/2017 01:53 PM, Aki Tuomi wrote: On 08.09.2017 14:50, Nagy, Attila wrote: Hi, I've a broken IMAP server, which doesn't support pipelining and fails on dovecot's attempt to do this ([

Re: Is it possible to disable pipelining in imapc?

2017-09-08 Thread Nagy, Attila
On 09/08/2017 01:53 PM, Aki Tuomi wrote: On 08.09.2017 14:50, Nagy, Attila wrote: Hi, I've a broken IMAP server, which doesn't support pipelining and fails on dovecot's attempt to do this ([C] is dovecot's imapc, [S] is the IMAP server): [C] 24 LOGIN "user"

Is it possible to disable pipelining in imapc?

2017-09-08 Thread Nagy, Attila
Hi, I've a broken IMAP server, which doesn't support pipelining and fails on dovecot's attempt to do this ([C] is dovecot's imapc, [S] is the IMAP server): [C] 24 LOGIN "user" "pass" [S] 23 OK [C] 25 SELECT "INBOX" [C] 23 UID FETCH 2 (INTERNALDATE) [S] 25 OK [S] 23 BAD No mailbox selected Sa

Re: Dict protocol changes string

2017-03-13 Thread Nagy, Attila
Hi, On 03/13/2017 09:25 AM, Aki Tuomi wrote: On 28.02.2017 17:59, Nagy, Attila wrote: On 09/23/2016 08:05 AM, Aki Tuomi wrote: On 29.07.2016 15:35, Nagy, Attila wrote: I use pass and userdb with dict protocol in a similar way: key passdb { key = passdb^MAuth-User: %u^MAuth-Pass: %w

Re: v2.2.28 released

2017-03-07 Thread Nagy, Attila
On 03/06/2017 11:30 PM, Timo Sirainen wrote: On 6 Mar 2017, at 9.17, Tom Sommer wrote: On 2017-02-24 14:34, Timo Sirainen wrote: http://dovecot.org/releases/2.2/dovecot-2.2.28.tar.gz http://dovecot.org/releases/2.2/dovecot-2.2.28.tar.gz.sig Are there any plans to do a bugfix-release, that in

Re: Dict protocol changes string

2017-02-28 Thread Nagy, Attila
On 09/23/2016 08:05 AM, Aki Tuomi wrote: On 29.07.2016 15:35, Nagy, Attila wrote: I use pass and userdb with dict protocol in a similar way: key passdb { key = passdb^MAuth-User: %u^MAuth-Pass: %w^MAuth-Protocol: %s^MClient-IP: %r format = json } (^M is an \r character, inserted with vi

Re: imapc fetch optimization

2016-09-27 Thread Nagy, Attila
On 07/02/2015 04:22 PM, Nagy, Attila wrote: On 05/04/15 17:45, Timo Sirainen wrote: On 04 May 2015, at 16:59, Nagy, Attila wrote: Hi, On 05/04/15 10:59, Timo Sirainen wrote: On 28 Apr 2015, at 23:49, Nagy, Attila wrote: Hi, imapc does a lot of UID FETCH $UID (BODY.PEEK[]), which is nice

Dict protocol changes string

2016-07-29 Thread Nagy, Attila
Hi, I use pass and userdb with dict protocol in a similar way: key passdb { key = passdb^MAuth-User: %u^MAuth-Pass: %w^MAuth-Protocol: %s^MClient-IP: %r format = json } (^M is an \r character, inserted with vi CTRL-v + enter) Until 2.2.24 this has worked, but 2.2.25 seems to convert that

Re: WP8/Windows 10 mail app can't login, tries double auth

2016-04-28 Thread Nagy, Attila
On 04/28/16 21:27, Joseph Tam wrote: Attila Nagy writes: Are there anybody who could make WP8 (and W10 desktop clients it seems) devices working with Dovecot's POP3 server? The conversation looks like this: S +OK ready C CAPA S +OK S CAPA S TOP S UIDL S RESP-CODES S PIPELINING S AUTH-RESP-CODE

Re: WP8/Windows 10 mail app can't login, tries double auth

2016-04-27 Thread Nagy, Attila
On 04/27/16 14:54, Nagy, Attila wrote: The only solution here seems to be giving back -ERR to the client's AUTH command, which makes it try USER instead. I'm not aware of any configuration options which makes this possible. Or a client workaround option to allow any USER/PASS c

WP8/Windows 10 mail app can't login, tries double auth

2016-04-27 Thread Nagy, Attila
Hi, Are there anybody who could make WP8 (and W10 desktop clients it seems) devices working with Dovecot's POP3 server? The conversation looks like this: S +OK ready C CAPA S +OK S CAPA S TOP S UIDL S RESP-CODES S PIPELINING S AUTH-RESP-CODE S USER S SASL PLAIN S . C AUTH S +OK S PLAIN S . C A

Re: imapc tries to fetch uid 0

2016-03-30 Thread Nagy, Attila
On 03/29/16 19:41, Timo Sirainen wrote: On 19 Feb 2016, at 17:12, Nagy, Attila wrote: Hi, This is a capture from an imapc client session (which is triggered by a message, received via LMTP): * OK [CAPABILITY IMAP4rev1 NAMESPACE] Ready 2 LOGIN "uid" "pass" 2 OK LO

Re: v2.2.22 released

2016-03-19 Thread Nagy, Attila
On 03/16/16 09:27, Timo Sirainen wrote: http://dovecot.org/releases/2.2/dovecot-2.2.22.tar.gz http://dovecot.org/releases/2.2/dovecot-2.2.22.tar.gz.sig + Added doveadm HTTP API: See http://wiki2.dovecot.org/Design/DoveadmProtocol/HTTP + virtual plugin: Mailbox filtering can now be done b

imapc tries to fetch uid 0

2016-02-19 Thread Nagy, Attila
Hi, This is a capture from an imapc client session (which is triggered by a message, received via LMTP): * OK [CAPABILITY IMAP4rev1 NAMESPACE] Ready 2 LOGIN "uid" "pass" 2 OK LOGIN succeeded 1 LIST "" "" * LIST (\Noselect) "/" "" 1 OK LIST completed 3 APPEND "INBOX" {568} + Ready for 568 octets

Re: RFC: HTTP based storage API

2016-02-12 Thread Nagy, Attila
On 02/11/16 03:50, David Niklas wrote: On 08 Feb 2016, at 11:01, Nagy, Attila wrote: Nearly every popular programming language has an LMTP/POP/IMAP implementation, most of them suck in many different ways. I don't know any server or library which provides a well-established, compa

Re: RFC: HTTP based storage API

2016-02-08 Thread Nagy, Attila
On 02/08/16 11:44, Marcus Rueckert wrote: that sounds like s3 API based backend. also note that dovecot comes with some "non local mail storage plugins" in the commercial part: ``` In this release, we support Windows Azure, Amazon S3, Scality and Dropbox systems. ``` so that should come close

Re: RFC: HTTP based storage API

2016-02-08 Thread Nagy, Attila
On 02/08/16 12:07, Timo Sirainen wrote: On 08 Feb 2016, at 12:56, Nagy, Attila wrote: On 02/08/16 11:16, Timo Sirainen wrote: Oh, you were thinking about ability to provide IMAP/etc support for other random servers, and have Dovecot act as kind of a middleware and translate the requests

Re: RFC: HTTP based storage API

2016-02-08 Thread Nagy, Attila
On 02/08/16 11:16, Timo Sirainen wrote: On 08 Feb 2016, at 11:59, Timo Sirainen wrote: On 08 Feb 2016, at 11:01, Nagy, Attila wrote: Hi, Nearly every popular programming language has an LMTP/POP/IMAP implementation, most of them suck in many different ways. I don't know any serv

RFC: HTTP based storage API

2016-02-08 Thread Nagy, Attila
Hi, Nearly every popular programming language has an LMTP/POP/IMAP implementation, most of them suck in many different ways. I don't know any server or library which provides a well-established, compatible protocol frontend with an open backend API, which could be used to easily make a custom

userdb prefetch doesn't work with imapc (2.2.18)

2015-09-30 Thread Nagy, Attila
Hi, I have the following config in dovecot 2.2.18: # doveconf -n userdb passdb userdb { driver = prefetch } passdb { args = host=127.0.0.1 port=1430 default_fields = userdb_imapc_user=%u userdb_imapc_password=%w driver = imap } I guess it should cause a single login to the backend IMAP s

Re: imapc fetch optimization

2015-07-02 Thread Nagy, Attila
On 05/04/15 17:45, Timo Sirainen wrote: On 04 May 2015, at 16:59, Nagy, Attila wrote: Hi, On 05/04/15 10:59, Timo Sirainen wrote: On 28 Apr 2015, at 23:49, Nagy, Attila wrote: Hi, imapc does a lot of UID FETCH $UID (BODY.PEEK[]), which is nice, because it works even with the dumbest IMAP

Re: imapc fetch optimization

2015-05-04 Thread Nagy, Attila
On 05/04/15 17:47, Timo Sirainen wrote: Also if you want imapc to use the full set of features with latest Dovecot, use: imapc_features=rfc822.size fetch-headers search After that it shouldn't be fetching BODY.PEEK[] anymore unless the body was actually wanted to be fetched. Very nice, and als

Re: imapc fetch optimization

2015-05-04 Thread Nagy, Attila
On 05/04/15 17:45, Timo Sirainen wrote I'm aware of that, but it doesn't, or at least not always. For example Thunderbird issues this: 13 UID fetch 333574:333601,333630:333801 (UID RFC822.SIZE FLAGS BODY.PEEK[HEADER.FIELDS (From To Cc Bcc Subject Date Message-ID Priority X-Priority References N

Re: imapc fetch optimization

2015-05-04 Thread Nagy, Attila
Hi, On 05/04/15 10:59, Timo Sirainen wrote: On 28 Apr 2015, at 23:49, Nagy, Attila wrote: Hi, imapc does a lot of UID FETCH $UID (BODY.PEEK[]), which is nice, because it works even with the dumbest IMAP server, altough it really kills performance, especially on high latency lines. I

imapc fetch optimization

2015-04-28 Thread Nagy, Attila
Hi, imapc does a lot of UID FETCH $UID (BODY.PEEK[]), which is nice, because it works even with the dumbest IMAP server, altough it really kills performance, especially on high latency lines. I wonder: if IMAP servers can effectively handle boundless fetches (like a list with all wanted UIDs

[PATCH] Make Delivered-To optional

2015-01-13 Thread Nagy, Attila
Hi, I've read at least one e-mail on this list about making delivered-to in lmtpd optional, but now I need this too, so I made a patch. The default remains as is now (enabled). Rationale: I would like to dsync users and I have catchall POP mailboxes (meaning: a single mailbox gets the mails

mdbox GUID

2015-01-04 Thread Nagy, Attila
Hi, The dbox page says: "Each message has a 128 bit globally unique identifier (GUID)" I guess this is what guid_128_generate() generates. Is this believed to be really globally unique? As far as I can tell, in the current architecture they are -given there are enough time precision-, because