New user mailbox permission

2014-08-20 Thread Gionatan Danti
Hi all, I have a problem with my Dovecot installation. First, some informations: - OS: CentOS 6.5 x86_64 - Dovecot: dovecot-2.0.9-7.el6.x86_64 Config: mail_location = sdbox:~/dbox user_query = SELECT username, password, 'vmail' as uid, 'vmail' as gid, '/var/vmail/%d/%n' as home, CONCAT('*:storag

How to configure read-only access during a migration?

2014-08-20 Thread Jeffrey Tunison
Hi. I would appreciate your advice about these TWO PROBLEMS: === Find the simplest way to A) configure a Dovecot 2.2.10 IMAP server to access (existing) email users' (mbox-format) mail folders in read-only mode. B) Do the above wh

Re: LMTP re-reading all messages

2014-08-20 Thread Florent Bautista
Thank you a lot Timo, I think it solved my problem. I set up an SQL dict. But according to the documentation, Dovecot is decreasing number of bytes and number of messages from row, but in my case, it sums up (I have the total number of bytes and the total number of messages in table). Is it OK ?

Re: antispam plugin crash

2014-08-20 Thread Thomas Witt
On 20/08/14 14:55, Steffen Kaiser wrote: > On Tue, 19 Aug 2014, Thomas Witt wrote: > > Please see Timo's advice in the thread "Re: Fatal: master: > service(imap): child 28145 killed with signal 11 (core dumped) -- > started happening after upgrade last night" "Maybe the problem in your > case is t

Re: Panic: file istream.c: line 167 with 2.2.13 + istream.c/.h from dovecot-2-2-dffc6dd2be0d

2014-08-20 Thread Toni Mattila
Hi, On 20.8.2014 16:58, Timo Sirainen wrote: I still can't reproduce. And I don't understand how it could get into that state. Can you still easily reproduce it with some specific mail? If so, could you send the mail to me (maybe with all the actual sensitive content replaced with 'x' letters

Panic at virtual folder fts-search-serialize.c

2014-08-20 Thread Janette Kelm
Hi all, I'm using dovecot 2.2.13 with virtual folders and fts-solr (see attached dovecot-n.conf). At using virtual folder with fts, the dovecot crashes with following panic: Aug 20 10:49:43 imap(...): Panic: file fts-search-serialize.c: line 63 (fts_search_deserialize_add_idx): assertion fai

Re: Dovecot v2.2 FTS is not indexing "text/html" emails...

2014-08-20 Thread Akash
Please ignore. This seems to be a issue with using indexes created by Dovecot v1 with v2. When I deleted the old indexes and created fresh with v2, results were as expected. On Wed, Aug 20, 2014 at 6:27 PM, Timo Sirainen wrote: > On 04 Aug 2014, at 19:16, Akash wrote: > >> Thus if a mail is like

Assertion in istream.c::167 in POP3 mode when maildir content has wrong S value (using 2.2.13)

2014-08-20 Thread Rolf Eike Beer
Hi, the affected machine is running 2.2.13 on Gentoo x86_64. For me it looks like the old size is still in some struct or whereever even after the file has been renamed. I see that there are many commits following 2.2.13, is that possibly already fixed or do I need to dig in the code? The orig

Re: Panic: file istream.c: line 167 with 2.2.13 + istream.c/.h from dovecot-2-2-dffc6dd2be0d

2014-08-20 Thread Timo Sirainen
On 22 Jul 2014, at 09:20, Toni Mattila wrote: > Any further ideas on this one or suggestions how to provide more info? I still can't reproduce. And I don't understand how it could get into that state. Can you still easily reproduce it with some specific mail? If so, could you send the mail to

Re: 2.2.13 + hg: Panic: file ioloop.c: line 39 (io_add_file): assertion failed: (fd >= 0)

2014-08-20 Thread Timo Sirainen
On 25 Jul 2014, at 14:12, Toni Mattila wrote: > Jul 25 14:12:38 dovecot: pop3(c...@so.red): Error: UIDL: File name lookup > failed: Message was expunged > Jul 25 14:12:38 dovecot: pop3(c...@so.red): Disconnected: POP3 UIDLs couldn't > be listed top=187/356348, retr=0/0, del=0/1207, size=7893461

Re: [Patch] mail_log plugin supports remote, local ip addresses

2014-08-20 Thread Timo Sirainen
On 05 Aug 2014, at 14:07, Vitaliy T wrote: > In attached file you will find patch for mail_log plugin to output > local, remote ip addresses. It may be usefull for somebody. You could do this also by adding %l or %r to mail_log_prefix.

Re: Dovecot v2.2 FTS is not indexing "text/html" emails...

2014-08-20 Thread Timo Sirainen
On 04 Aug 2014, at 19:16, Akash wrote: > Thus if a mail is like this: > > Content-Type: text/html > > He is very good. > > It isn't shown in search by the squat indexes created using dovecot > v2.2.13. I have done further testing on some sample emails which confirmed > this behavior. I can't

Re: antispam plugin crash

2014-08-20 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 19 Aug 2014, Thomas Witt wrote: Please see Timo's advice in the thread "Re: Fatal: master: service(imap): child 28145 killed with signal 11 (core dumped) -- started happening after upgrade last night" "Maybe the problem in your case is that

Re: preserving flags for shared mailbox when migrating from cyrus to dovecot

2014-08-20 Thread Jogi Hofmüller
Hi, Am 2014-08-20 14:16, schrieb Timo Sirainen: > I think you can first migrate the shared mailbox's mails as whatever > user. Then use doveadm sync -1 (and maybe -m shared/foo to sync only > the one mailbox) to migrate the message flags. Just to make sure I got you right: The shared mailbox ha

Re: doveadm proxy list

2014-08-20 Thread Timo Sirainen
On 10 Aug 2014, at 19:30, Claus wrote: > i have configured my dovecot-proxy with "shutdown_clients = no" and > "service_count = 1" for a "default_process_limit = 5000" and > "default_client_limit = 25000". > I don't know if this is a prefered setup for so many users/concurrent > sessions but s

Re: auth_username_translation and LTMP problem

2014-08-20 Thread Timo Sirainen
On 16 Aug 2014, at 00:14, Arkadiusz Miśkiewicz wrote: > auth_username_translation = @= > > protocol lmtp { > auth_username_translation = > } > > This can be set but that doesn't work. dovecot seems to be still doing > translation even for lmtp. Fixed: http://hg.dovecot.org/dovecot-2.2/rev/c

Re: Mail Archiving/Lucene Indexes/mbox

2014-08-20 Thread Larry Rosenman
Any new ideas on this? On Fri, Aug 1, 2014 at 9:22 AM, Larry Rosenman wrote: > Yes, I do. > > thebighonker.lerctr.org /home/ler $ doveconf -n > # 2.2.13: /usr/local/etc/dovecot/dovecot.conf > # OS: FreeBSD 10.0-STABLE amd64 > auth_default_realm = lerctr.org > auth_mechanisms = plain login > aut

Re: LMTP re-reading all messages

2014-08-20 Thread Timo Sirainen
On 13 Aug 2014, at 10:24, Florent Bautista wrote: > I have a little problem with Dovecot 2.1.17 and MailDir accounts. > > I was using a shared file system (MooseFS), and all was pretty stable. > > Now I'm switching to CephFS, and Dovecot LMTP have problem to deliver mails. > > Very often, on l

Re: Segfault with indexer-worker using Tika/Solr

2014-08-20 Thread Timo Sirainen
On 14 Aug 2014, at 15:02, G H wrote: > Using Dovecot 2.2.13 with Tika 1.5 on Centos 5 64bit > > > Tika is throwing an exception for some reason, which seems to be causing > Dovecot's indexer to segfault. I'm using mdbox/gzipped compressed mail and > private indexes for the shared folder. I'm

Re: BUG: Solr FTS engine appends domain name to index records

2014-08-20 Thread Timo Sirainen
On 14 Aug 2014, at 15:26, G H wrote: > Some more information: Using the doveadm search command, the domain name is > included in the user key in the search sent to Solr. IMAP appears to be the > odd man out here. That means your passdb/userdb is configured to drop the domain for IMAP, but not

Re: preserving flags for shared mailbox when migrating from cyrus to dovecot

2014-08-20 Thread Timo Sirainen
On 20 Aug 2014, at 13:39, Jogi Hofmüller wrote: > Despite all the progress we are making in our attempt to make the > migration as smooth and transparent for our users there are still some > important unsolved issues. One thing that I can't figure out is how to > preserve a user's flags that s/h

Re: Trouble getting public folders working

2014-08-20 Thread Daniel Parthey
Am 19.08.2014 15:47, schrieb Bjarne Mark Kondrup: > 1. I cannot get shared folders to work with pr. user settings. What i > want is a public folder that all my users can see but each user marks > mail as read individually. Atm no matter how i set it up if user1 marks > a mail as read, then user2 wi

preserving flags for shared mailbox when migrating from cyrus to dovecot

2014-08-20 Thread Jogi Hofmüller
Dear all, Despite all the progress we are making in our attempt to make the migration as smooth and transparent for our users there are still some important unsolved issues. One thing that I can't figure out is how to preserve a user's flags that s/he has for mail in a shared mailbox. So far we

Re: Huge difference between the lucene index size created by v2.1 and v2.2

2014-08-20 Thread Timo Sirainen
Just this one. The previous one was a mistake. On 20 Aug 2014, at 13:31, Akash wrote: > So should I now be trying just this patch or both (including the one > you posted before) ? > > On Wed, Aug 20, 2014 at 4:54 PM, Timo Sirainen wrote: >> Actually that same header indexing behavior was alrea

Re: rebuilding indexes for dovecot pop3

2014-08-20 Thread Timo Sirainen
On 18 Aug 2014, at 08:48, Arkadiusz Miśkiewicz wrote: > > Hi. > > doveadm -D fetch -u login \ >'imap.envelope imap.bodystructure size.virtual date.received' '*' > > according to mail archives allows to regenerate indexes and precache > specified > headers for imap usage. > > > What hea

Re: Huge difference between the lucene index size created by v2.1 and v2.2

2014-08-20 Thread Akash
So should I now be trying just this patch or both (including the one you posted before) ? On Wed, Aug 20, 2014 at 4:54 PM, Timo Sirainen wrote: > Actually that same header indexing behavior was already in v2.1. But I found > the real problem now: http://hg.dovecot.org/dovecot-2.2/rev/febedba15c7

Re: Huge difference between the lucene index size created by v2.1 and v2.2

2014-08-20 Thread Timo Sirainen
Actually that same header indexing behavior was already in v2.1. But I found the real problem now: http://hg.dovecot.org/dovecot-2.2/rev/febedba15c7e That bug was actually already in v2.1, but because memory was always allocated from stack it wasn't causing as many problems. On 18 Aug 2014, at

Re: Fatal: master: service(imap): child 28145 killed with signal 11 (core dumped) -- started happening after upgrade last night

2014-08-20 Thread Timo Sirainen
On 18 Aug 2014, at 17:30, Ben Johnson wrote: > Ironically, the very reason for which I replaced my distro's source > repos with > > deb http://xi.rename-it.nl/debian/ stable-auto/dovecot-2.2 main > deb-src http://xi.rename-it.nl/debian/ stable-auto/dovecot-2.2 main These are just nightly builds

Re: Problems with dovecot 2.2.13 and monit

2014-08-20 Thread Teemu Huovila
On 08/17/2014 11:56 PM, Marius wrote: > Teemu Huovila dovecot.fi> writes: > >> >> On 06/16/2014 03:35 PM, Hanno Böck wrote:>> => the problem is caused by > dovecot 2.2.13 bug ... its >> behaviour is inconsistent (LOGOUT in non-authenticated state works per RFC requirement if no SSL is