Re: [Dovecot] Assert Crash with HG 49e9d9743f6e

2014-05-02 Thread Timo Sirainen
On 26.4.2014, at 8.50, Thomas Leuxner t...@leuxner.net wrote: New crash most likely related to Virtual plugin again: 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:

Re: [Dovecot] Assert Crash with HG 49e9d9743f6e

2014-05-02 Thread Thomas Leuxner
* Timo Sirainen t...@iki.fi 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

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

2014-05-02 Thread Timo Sirainen
On 25.4.2014, at 15.24, Matthias Rieber ml-dove...@zu-con.org 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

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

Re: [Dovecot] BINARY FETCH conversion issue

2014-05-02 Thread Timo Sirainen
On 30.4.2014, at 0.27, Michael M Slusarz slus...@curecanti.org 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.,

[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] Segfault in auth (when talked to by postfix lda)

2014-05-02 Thread Timo Sirainen
On 25.4.2014, at 17.53, Darac Marjal mailingl...@darac.org.uk 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

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 t...@engr.orst.edu 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

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 hu...@utsc.utoronto.ca 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

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 j...@baaz.fr 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:

Re: [Dovecot] Dovecot Director and MasterUsers

2014-05-02 Thread Timo Sirainen
On 8.4.2014, at 16.54, Daniel Parthey d.part...@metaways.de 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

Re: [Dovecot] Rebuilding message guid in sdbox

2014-05-02 Thread Timo Sirainen
On 8.4.2014, at 15.44, Renaud Allard ren...@allard.it 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

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,

Re: [Dovecot] Not backing up cache files

2014-05-02 Thread Timo Sirainen
On 26.3.2014, at 10.05, Jesus Cea j...@jcea.es 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

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 askforsta...@gmail.com 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

Re: [Dovecot] LMTP error

2014-05-02 Thread Charles Marcus
On 5/1/2014 7:17 PM, Joseph Tam jtam.h...@gmail.com 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

Re: [Dovecot] Finding memory leaks

2014-05-02 Thread Timo Sirainen
On 12.3.2014, at 15.30, Philipp BrĂ¼ll bru...@simiatech.com 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

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 l...@kraav.com 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

Re: [Dovecot] zlib maildir reindex broken

2014-05-02 Thread Timo Sirainen
On 24.4.2014, at 0.51, Richard Platel rpla...@tucows.com 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

Re: [Dovecot] maildir compressed message fix patch

2014-05-02 Thread Timo Sirainen
On 24.4.2014, at 23.54, Richard Platel rpla...@tucows.com 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

Re: [Dovecot] ID command and dovecot

2014-05-02 Thread Timo Sirainen
On 19.2.2014, at 15.15, Jernej Porenta jernej.pore...@arnes.si 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

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 skdove...@smail.inf.fh-brs.de 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 }

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 rpla...@tucows.com 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

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 t...@iki.fi 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

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 mailingl...@darac.org.uk 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

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

[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

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

Re: [Dovecot] BINARY FETCH conversion issue

2014-05-02 Thread Michael M Slusarz
Quoting Timo Sirainen t...@iki.fi: On 30.4.2014, at 0.27, Michael M Slusarz slus...@curecanti.org 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

[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 UID

Re: [Dovecot] CONTEXT=SORT

2014-05-02 Thread Michael M Slusarz
Quoting Michael M Slusarz slus...@curecanti.org: 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