[Dovecot] IMAP clients can't connect while dovecot 2.0.9 is configured for LDAP

2014-05-02 Thread Matthew Badeau
Good evening, Currently, it’s using mySQL for the passdb and userdb. This works fine but when I switch to LDAP it starts having problems. I’m trying to set up dovecot to use LDAP as its userdb and passdb. I’ve read the docs but I think I may be missing something obvious or I didn’t understand

Re: [Dovecot] CONTEXT=SORT

2014-05-02 Thread Michael M Slusarz
Quoting Michael M Slusarz : 5 UID SORT RETURN (PARTIAL 1:10) (SUBJECT) UTF-8 UNDELETED * ESEARCH (TAG "5") UID PARTIAL (1:10 NIL) 5 OK Sort completed (0.000 secs). Well duh. Maybe I should actually look at the results. This is obviously wrong (this mailbox has 13 undeleted messages, so NIL

[Dovecot] CONTEXT=SORT

2014-05-02 Thread Michael M Slusarz
Any reason this is not listed in the CAPABILITY string? I see it listed as a TODO here: http://wiki2.dovecot.org/Roadmap But it seems to work fine (as of 2.2.12): 1 UID SORT RETURN (CONTEXT COUNT) (SUBJECT) UTF-8 UNDELETED * ESEARCH (TAG "1") UID COUNT 12 1 OK Sort completed (0.000 secs). 2 UI

Re: [Dovecot] BINARY FETCH conversion issue

2014-05-02 Thread Michael M Slusarz
Quoting Timo Sirainen : On 30.4.2014, at 0.27, Michael M Slusarz wrote: Not sure if this is an example of Cyrus' QP decoder being more robust (or lenient) than Dovecot's. Or whether this is intentional to return NIL for this kind of bad data. It was kind of intentional. Dovecot's istrea

Re: [Dovecot] core dump in mail_cache_header_fields_read()

2014-05-02 Thread Wesley Huang
Hi Timo, The patch works. With the error log we identified a corrupted cache file for the Trash folder (not the cache file for the inbox we previously suspected). After having this cache removed, we don't see the error any more. Thanks again! Cheers, Wesley On 14-05-02 12:03 PM, Wesley

[Dovecot] User not found when using shadow for passdb

2014-05-02 Thread John J. Stimson III
I am getting "user unknown" when trying to connect to the dovecot server using IMAP. The client gets an authentication failed message and does not download mail. The host system uses shadow passwords in /etc/shadow. I would like to use the same passwords for IMAP sessions, so I have set the pass

Re: [Dovecot] core dump in mail_cache_header_fields_read()

2014-05-02 Thread Wesley Huang
Hi Timo, Thanks. Let me port in the bug fix and test it. FYI, previously when the problem occurred, I deleted the dovecot index and let dovecot regenerate the index, but it didn't help. Cheers, Wesley On 14-05-02 05:13 AM, Timo Sirainen wrote: On 23.4.2014, at 21.43, Wesley Huang wrote:

Re: [Dovecot] Segfault in auth (when talked to by postfix lda)

2014-05-02 Thread Darac Marjal
On Fri, May 02, 2014 at 11:40:58AM +0300, Timo Sirainen wrote: > On 25.4.2014, at 17.53, Darac Marjal wrote: > > > I'm seeing a segfault in dovecot 2.2.12 (debian package 1:2.2.12-2). I > > can log into dovecot fine with mutt, but the segfaults seem to occur > > when postfix (2.11.0, debian packa

Re: [Dovecot] output of doveconf in conflict with order of settings in conf.d/*-*.conf files

2014-05-02 Thread Timo Sirainen
On 2.5.2014, at 15.59, Timo Sirainen wrote: >> imap: Error: Can't load plugin imap_stats_plugin: Plugin stats must be >> loaded also (you must set: mail_plugins=$mail_plugins stats) >> >> If I move the line "mail_plugins = $mail_plugins stats" from 99-stats.conf >> into 15-stats.conf, the outp

Re: [Dovecot] maildir compressed message fix patch

2014-05-02 Thread Christian Rohmann
On 02.05.2014 12:49, Timo Sirainen wrote: > On 24.4.2014, at 23.54, Richard Platel wrote: >> When a compressed maildir message has a bad S= size in its filename it puts >> the user in an unrecoverable state, since maildir's do_fix_size function >> just does a stat() on the maildir file and sav

Re: [Dovecot] output of doveconf in conflict with order of settings in conf.d/*-*.conf files

2014-05-02 Thread Timo Sirainen
On 17.2.2014, at 10.58, Steffen Kaiser wrote: > I wanted to enable stats, so I added the settings from > http://wiki2.dovecot.org/Statistics into conf.d/99-stats.conf: > > mail_plugins = $mail_plugins stats > protocol imap { > mail_plugins = $mail_plugins imap_stats > } > plugin { > # how oft

Re: [Dovecot] ID command and dovecot

2014-05-02 Thread Timo Sirainen
On 19.2.2014, at 15.15, Jernej Porenta wrote: > we are seeing some strange issues with IMAP ID command using latest Roundcube > builds on dovecot 2.2.10 responding "Input buffer full, aborting". > > Roundcube webmail connects to IMAP server and issues ID command first with > some long argument

Re: [Dovecot] maildir compressed message fix patch

2014-05-02 Thread Timo Sirainen
On 24.4.2014, at 23.54, Richard Platel wrote: > When a compressed maildir message has a bad S= size in its filename it puts > the user in an unrecoverable state, since maildir's do_fix_size function just > does a stat() on the maildir file and saves the compressed size in the > filename. Thes

Re: [Dovecot] zlib maildir reindex broken

2014-05-02 Thread Timo Sirainen
On 24.4.2014, at 0.51, Richard Platel wrote: > I posted to the list about this a while ago but never got a response, I have > a bit more information now. > > Dovecot 2.2.12 and other 2.2 versions are broken when using zlib and maildir. > If messages are re-indexed, the INTERNALDATE of all mes

Re: [Dovecot] 2.2.12: Panic: file mail-index.c: line 380 (mail_index_keywords_unref): assertion failed: (keywords->refcount > 0)

2014-05-02 Thread Timo Sirainen
On 23.2.2014, at 17.56, Leho Kraav wrote: > I upgraded 2.1 -> 2.2 something like a week ago because I needed INDEXPVT. > Not sure if this crash started immediately or not, noticed it today looking > at journalctl. > > Backtrace http://bpaste.net/raw/181944/ and pasted below. .. > #4 0x7f6

Re: [Dovecot] Finding memory leaks

2014-05-02 Thread Timo Sirainen
On 12.3.2014, at 15.30, Philipp Brüll wrote: > I try to find a memory leak in a dovecot plugin that I develop. In > order to find it, it would be helpful to print the total amount of > memory that is currently allocated. This print could than spread over > the source code and the memory consumpti

Re: [Dovecot] LMTP error

2014-05-02 Thread Charles Marcus
On 5/1/2014 7:17 PM, Joseph Tam wrote: This setting: first_valid_uid = 1010 will need to be changed to "0", Worst ... advice ... ever. Please do NOT EVER suggest to anyone else to EVER do that. or better yet, as others have suggested, alias root to some user with UID within 1010..1020

Re: [Dovecot] Imap user via proxy with starttls - how to rawlogs on proxy ?

2014-05-02 Thread Timo Sirainen
On 17.3.2014, at 10.57, askforstatus wrote: > Is there any way to log user imap dialog with starttls when going via > dovecot acting as imap proxy ? > My intention is to log each and every user command similar to rawlogs > feature. > As per my current imap proxy config pre-login working like a ch

Re: [Dovecot] Not backing up cache files

2014-05-02 Thread Timo Sirainen
On 26.3.2014, at 10.05, Jesus Cea wrote: > I am using mdbox for dovecot storage. > > I wonder if I could skip "dovecot.index.cache" files and, in general, > "*.cache" files when doing mail backup. Those files are big and change > frequently. What I feel from reading documentation [1][2] is that

Re: [Dovecot] BUG dovecot and nginx

2014-05-02 Thread Timo Sirainen
Not sure without seeing the actual traffic logs, but there are some broken IMAP servers (including some version of Zimbra, or maybe it's nginx) that don't respond to Dovecot when it pipelines multiple commands. See if returning proxy_nopipelining=y in passdb fixes this. On 1.4.2014, at 13.09, T

Re: [Dovecot] Rebuilding message guid in sdbox

2014-05-02 Thread Timo Sirainen
On 8.4.2014, at 15.44, Renaud Allard wrote: > I am running dovecot 2.2.12 > Current mail storage is sdbox and I am trying to compress all emails, which > works fine, except for a few old mailboxes. > > If I run the following dsync command > "dsync -u flea -o "mail_plugins=zlib" mirror maildir:~

Re: [Dovecot] Dovecot Director and MasterUsers

2014-05-02 Thread Timo Sirainen
On 8.4.2014, at 16.54, Daniel Parthey wrote: > the Dovecot Director determines the backend host in some way by hashing the > username: > > http://wiki2.dovecot.org/Director > > For normal logins usern...@example.org, the director always gets the same hash > for the same username and ensures th

Re: [Dovecot] BUG: Authentication client sent unknown handshake command

2014-05-02 Thread Timo Sirainen
On 16.4.2014, at 17.48, Jean-Yves Moulin wrote: > After a kernel upgrade, while using the same dovecot binaries (they were > working perfectly until today), I'm experiencing this error (more log at the > end of my email): > > BUG: Authentication client sent unknown handshake command: > REQUES

Re: [Dovecot] core dump in mail_cache_header_fields_read()

2014-05-02 Thread Timo Sirainen
On 23.4.2014, at 21.43, Wesley Huang wrote: > We're seeing a core dump for a user connecting from IPHONE. The user mail are > in NFS mount. > > Program terminated with signal 11, Segmentation fault. > #0 0x7fca22f0ca85 in mail_cache_header_fields_read > (cache=cache@entry=0x7fca24a04f70)

Re: [Dovecot] segfault with shared namespace version > 2.1.16

2014-05-02 Thread Timo Sirainen
On 17.4.2014, at 3.05, Tom Lieuallen wrote: > We're currently running 2.1.16. I've been wanting to update to a 2.2.X > version, but have been running into problems, even with the latest (2.2.12). > I'm not sure at what version this issue appeared, but I believe I've tried > 2.2.10, 2.2.11, a

Re: [Dovecot] Segfault in auth (when talked to by postfix lda)

2014-05-02 Thread Timo Sirainen
On 25.4.2014, at 17.53, Darac Marjal wrote: > I'm seeing a segfault in dovecot 2.2.12 (debian package 1:2.2.12-2). I > can log into dovecot fine with mutt, but the segfaults seem to occur > when postfix (2.11.0, debian package 2.11.0-1+b1) tries to deliver a > message. .. > #0 auth_fields_find_i

[Dovecot] When the subject portion of an e-mail contains a control character, dovecot.sieve terminates unexpectatedly.

2014-05-02 Thread Atsuko Tanaka
Hello. We have currently set dovecot.sieve to insert the text "[SPAM]" at the beginning of an e-mail's subject when it's X-Spam-Score is above 80%. After we set our system as stated the following errors occur: 1) When an e-mail's subject contains control characters like [Ctrl+V|^V], dovecot.sieve

Re: [Dovecot] BINARY FETCH conversion issue

2014-05-02 Thread Timo Sirainen
On 30.4.2014, at 0.27, Michael M Slusarz wrote: > Given this test message, with admittedly incorrect QP encoding: .. > Dovecot 2.2 returns this: > > C: 5 UID FETCH 4464 (BINARY.PEEK[1]) > S: * 1 FETCH (UID 4464 BINARY[1] NIL) > S: 5 OK Fetch completed. > > Contrast with, e.g., Cyrus 2.4: > > C

Re: [Dovecot] nfs flush/fsync config settings problem

2014-05-02 Thread Timo Sirainen
Fixed: http://hg.dovecot.org/dovecot-2.2/rev/9b53f6bf0427 But you shouldn't use mail_nfs_*=yes settings in any case. If you use multiple Dovecot servers, you should use Dovecot director and then you can keep using mail_nfs_*=no. If you use only a single Dovecot server then mail_nfs_*=no works f

Re: [Dovecot] crash while fts searching a virtual folder

2014-05-02 Thread Timo Sirainen
On 25.4.2014, at 15.24, Matthias Rieber wrote: > searching a virtual folder crashes dovecot quite often. I'm using dovecot > 2.2.12. Here's the backtrace: > > #5 0x7fc1d6774ed9 in level_scores_add_vuids (br=0x2413ab8, > level=0x1c0c2e0, vbox=0x170c950) at fts-search.c:81 http://hg.doveco

Re: [Dovecot] Assert Crash with HG 49e9d9743f6e

2014-05-02 Thread Thomas Leuxner
* Timo Sirainen 2014.05.02 08:29: > > Apr 26 07:40:40 spectre dovecot: imap(t...@leuxner.net): Panic: file > > mail-storage.c: line 1836 (mailbox_transaction_begin): assertion failed: > > (box->opened) > > Thanks, fixed: http://hg.dovecot.org/dovecot-2.2/rev/501a19fc2747 > > Hopefully the las