Re: [Dovecot] best way to activate quota

2012-09-11 Thread Alessio Cecchi
Il 12/09/2012 00:28, Timo Sirainen ha scritto: On 12.9.2012, at 1.21, Gábor Lénárt wrote: Sorry to jump into this topic, but can I ask why? Is dict quota is superior over Maildir++ quota in performance in general or it is "only" about the fact, that it's better in the case like above: activati

[Dovecot] Strip backslash from usernames

2012-09-11 Thread Dominic Malolepszy
Hi, Is there a way to strip a backslash if it exists at the start of username like \u...@example.com within the Dovecot LDA? I am using Dovecot 2.1.9 with a LDAP backend, so I cannot do any sort of SQL trickery. Dominic.

Re: [Dovecot] Dovecot 1.x POP3 to Dovecot 2.x POP3 mbox to Maildir best transfer program/method

2012-09-11 Thread Timo Sirainen
On 12.9.2012, at 1.39, Tim E. wrote: > Sorry for the delay. I have tried and failed to use dsync properly. What > would the format and usage of the command be? > I have all my old Mbox mail file called user onto the new server under > /home/trans and used dsync as follows: > > dsync -v -u user

Re: [Dovecot] Dovecot 1.x POP3 to Dovecot 2.x POP3 mbox to Maildir best transfer program/method

2012-09-11 Thread Tim E.
Sorry for the delay. I have tried and failed to use dsync properly. What would the format and usage of the command be? I have all my old Mbox mail file called user onto the new server under /home/trans and used dsync as follows: dsync -v -u user backup u...@domain.com All I get back is the usag

Re: [Dovecot] best way to activate quota

2012-09-11 Thread Timo Sirainen
On 12.9.2012, at 1.21, Gábor Lénárt wrote: >>> I'm planning to activate quota control in dovecot, with maildir quota >>> backend. I have about 70k users in my system directed to 4 backend servers >>> (with a director to ensure that a user is always directed to the same >>> server). >>> >>>

Re: [Dovecot] best way to activate quota

2012-09-11 Thread Gábor Lénárt
On Tue, Sep 11, 2012 at 07:20:02PM +0300, Timo Sirainen wrote: > On 7.9.2012, at 13.11, Angel L. Mateo wrote: > > > Hello, > > > > I'm planning to activate quota control in dovecot, with maildir quota > > backend. I have about 70k users in my system directed to 4 backend servers > > (with a

Re: [Dovecot] TIMO HELP! director ring wont stay connected

2012-09-11 Thread Timo Sirainen
On 3.9.2012, at 21.26, Kelsey Cummings wrote: > >Sep 3 09:22:42 b.director. b dovecot: director: Error: Director > >10.10.10.71:9321/right disconnected > >Sep 3 09:22:45 a.director. a dovecot: director: Error: Director > >10.10.10.37:9321/left disconnected > >Sep 3 09:22:49 b.director. b dove

Re: [Dovecot] dsync issue: "Server sent invalid input: Error parsing input: Unexpected ')'"

2012-09-11 Thread Gábor Lénárt
Hi, On Tue, Sep 11, 2012 at 08:47:23PM +0300, Timo Sirainen wrote: [...] > > Is it possible that the problem about ')' is caused by this line? > > I'm not sure if it's because of that line, but there are ways to make it > break with that error message. These fix it: I just guessed it was, as th

Re: [Dovecot] Found bug on doing IMAP search with UTF8 chars

2012-09-11 Thread Timo Sirainen
On 11.9.2012, at 19.29, A.L.E.C wrote: > On 09/11/2012 06:19 PM, Timo Sirainen wrote: > >> The error is that Roundcube doesn't send the string to Dovecot as UTF8 (or >> alternatively specify the correct charset). Even with the crashfix the >> search won't work. > > This is surprising. Can you

Re: [Dovecot] Dovecot 1.x POP3 to Dovecot 2.x POP3 mbox to Maildir best transfer program/method

2012-09-11 Thread Timo Sirainen
On 7.9.2012, at 22.32, Tim E. wrote: > I have a box running Dovecot 1.x POP3 only server using mbox format. I want > to port the mail over to a Centos 6.3 box running a Dovecot 2.x POP3 only > server using Maildir format. The main thing I want to do is support > XUID/read/unread status so the

Re: [Dovecot] Wrong quota calculation

2012-09-11 Thread Timo Sirainen
On 8.9.2012, at 18.07, Cibest ML wrote: > - Message delivered by LMTP > Quota name TypeValue Limit > User quota STORAGE 2653 524288 > User quota MESSAGE 1 - > > - quota recalc > Quota name TypeValue Limit > User quota STORAGE 5307 524288 > User quota MESSAGE 2 - Quo

[Dovecot] v2.1 memory usage

2012-09-11 Thread Timo Sirainen
v2.1's imap/pop3 processes are linked with OpenSSL by default, because of imapc/pop3c storages. I wonder if you notice any actual (system-global) memory usage reduction when compiling without those and you have thousands of imap processes? ./configure --with-storages=mdbox sdbox maildir mbox cy

Re: [Dovecot] [PATCH] Generalize HMAC implementation

2012-09-11 Thread Florian Zeitz
Am 11.09.2012 18:02, schrieb Timo Sirainen: > On 4.9.2012, at 21.25, Florian Zeitz wrote: > >> Hello everyone and Timo in particular, >> >> about a year ago I implemented a SHA-1 variant of the HMAC(-MD5) present >> in Dovecot. >> I had always disliked this a bit, because it replicates a lot of co

Re: [Dovecot] FTS indexing

2012-09-11 Thread Ralf Hildebrandt
* Timo Sirainen : > > I fucked up royally: I somehow managed to have fts but not fts_lucene > > in my list of plugins... > > It should log errors about that if plugin { fts=lucene } I think? Well, I somehow managed to sprinkle the plugin lines in such a way that no error was triggered. Now I put

Re: [Dovecot] FTS indexing

2012-09-11 Thread Timo Sirainen
On 11.9.2012, at 20.04, Ralf Hildebrandt wrote: > * Ralf Hildebrandt : > >> OK; I'll try that. Where do I finde the lucene index? I didn't find >> any trace of ~%s/Maildir/lucene-indexes so I was worried and tried to >> create the directories. > > I fucked up royally: I somehow managed to have f

Re: [Dovecot] dsync issue: "Server sent invalid input: Error parsing input: Unexpected ')'"

2012-09-11 Thread Timo Sirainen
On 10.9.2012, at 14.33, Gábor Lénárt wrote: > dsync(migtest@office): Error: imapc(imap-sunw-old.servers.intra:143): Server > sent invalid input: Error parsing input: Unexpected ')' > * OK [CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS > CHILDREN BINARY UNSELECT SORT LANGUAGE XSE

Re: [Dovecot] FTS indexing

2012-09-11 Thread Ralf Hildebrandt
* Ralf Hildebrandt : > OK; I'll try that. Where do I finde the lucene index? I didn't find > any trace of ~%s/Maildir/lucene-indexes so I was worried and tried to > create the directories. I fucked up royally: I somehow managed to have fts but not fts_lucene in my list of plugins... -- Ralf Hil

Re: [Dovecot] FTS indexing

2012-09-11 Thread Ralf Hildebrandt
* Timo Sirainen : > On 11.9.2012, at 19.23, Ralf Hildebrandt wrote: > > > I'm reacreating all FTS indices on all my users' INBOX folders: > > mkdir ~%s/Maildir/lucene-indexes && chown %s:users > > ~%s/Maildir/lucene-indexes > > You shouldn't need to do this. It's created automatically. Also by

Re: [Dovecot] FTS indexing

2012-09-11 Thread Timo Sirainen
On 11.9.2012, at 19.23, Ralf Hildebrandt wrote: > I'm reacreating all FTS indices on all my users' INBOX folders: > mkdir ~%s/Maildir/lucene-indexes && chown %s:users ~%s/Maildir/lucene-indexes You shouldn't need to do this. It's created automatically. Also by "recreating" do you mean that the u

Re: [Dovecot] dovecot/log not running

2012-09-11 Thread Ben Johnson
On 9/11/2012 12:23 PM, Timo Sirainen wrote: > Something's very wrong. I have no idea what. doveconf -n output might help. > > On 7.9.2012, at 14.39, Mark Hinch wrote: > >> I'm running 2.1.7 as downloaded/installed by Debian (and >> then appropriately setup for my config, ...). It almost >> work

Re: [Dovecot] Found bug on doing IMAP search with UTF8 chars

2012-09-11 Thread A.L.E.C
On 09/11/2012 06:19 PM, Timo Sirainen wrote: > The error is that Roundcube doesn't send the string to Dovecot as UTF8 (or > alternatively specify the correct charset). Even with the crashfix the search > won't work. This is surprising. Can you provide more info about this issue? -- Aleksander

Re: [Dovecot] Quota less mailbox with mdbox

2012-09-11 Thread Timo Sirainen
On 7.9.2012, at 13.43, Héctor Moreno Blanco wrote: > Currently we have dovecot 2.0.10 with Maildir as mailbox system. We want to > migrate to mdbox. > > The migration is simple and easy, but there are some configuration settings > we cannot set to work properly. > > In our dovecot with Maildir

[Dovecot] FTS indexing

2012-09-11 Thread Ralf Hildebrandt
I'm reacreating all FTS indices on all my users' INBOX folders: mkdir ~%s/Maildir/lucene-indexes && chown %s:users ~%s/Maildir/lucene-indexes doveadm index -u %s -q INBOX In "ps auxwww" I'm seeing this: tbudkevy 29186 3.7 0.0 6616 3056 ?S18:11 0:15 dovecot/indexer-worker [tsc

Re: [Dovecot] dovecot/log not running

2012-09-11 Thread Timo Sirainen
Something's very wrong. I have no idea what. doveconf -n output might help. On 7.9.2012, at 14.39, Mark Hinch wrote: > I'm running 2.1.7 as downloaded/installed by Debian (and > then appropriately setup for my config, ...). It almost > works. I can send/receive email from thunderbird, squirrelmai

Re: [Dovecot] best way to activate quota

2012-09-11 Thread Timo Sirainen
On 7.9.2012, at 13.11, Angel L. Mateo wrote: > Hello, > > I'm planning to activate quota control in dovecot, with maildir quota > backend. I have about 70k users in my system directed to 4 backend servers > (with a director to ensure that a user is always directed to the same server). >

Re: [Dovecot] Found bug on doing IMAP search with UTF8 chars

2012-09-11 Thread Timo Sirainen
On 7.9.2012, at 10.30, Weinreich, Nico wrote: > I'm using Roundcube 0.9git as mail frontend and have installed Dovecot 2.1.7 > on Debian Squeeze. When searching for mail via Roundcube and the keyword > contains "special" chars (like german umlauts), then Dovecot seems to die > when the folder d

Re: [Dovecot] Memory leak by getting the virtual size of a IMAP folder

2012-09-11 Thread Timo Sirainen
On 6.9.2012, at 19.19, Dafan Zhai wrote: > I think I have fixed this bug. The 'virtual_size_add_new' function in > src/lib-storage/index/index-status.c creates a 'search_args' object and > forgets to free it at the end. The function does call the > 'mailbox_search_deinit' function but 'mailbox_

Re: [Dovecot] Resynchronization of indexes (or Warning: Maildir Scanning took seconds)

2012-09-11 Thread Timo Sirainen
On 5.9.2012, at 15.07, Angel L. Mateo wrote: > El 05/09/12 13:50, Timo Sirainen escribió: >> On 5.9.2012, at 14.40, Angel L. Mateo wrote: >> >>> Sep 3 12:35:49 myotis32 dovecot: imap(): Warning: Maildir: >>> Scanning took 62 seconds (9516 readdir()s, 0 >>> rename()s to cur/, why=0x80) >>> >>

Re: [Dovecot] [PATCH] Generalize HMAC implementation

2012-09-11 Thread Timo Sirainen
On 4.9.2012, at 21.25, Florian Zeitz wrote: > Hello everyone and Timo in particular, > > about a year ago I implemented a SHA-1 variant of the HMAC(-MD5) present > in Dovecot. > I had always disliked this a bit, because it replicates a lot of code. > This patch generalizes the HMAC function to ta

Re: [Dovecot] Trouble implementing Antispam plug-in for Dovecot

2012-09-11 Thread Ben Johnson
On 9/10/2012 9:14 PM, Ben Morrow wrote: > At 3PM -0400 on 10/09/12 Ben Johnson wrote: >> >> So, I setup a development environment that mimics the production >> environment in question. >> >> Must I install Dovecot from source to install Antispam from source? >> >> Because I installed Dovecot usin

Re: [Dovecot] Possible mbox corruption if mail is saved with wrong Content-Length header (2.1.6)

2012-09-11 Thread Timo Sirainen
On 3.9.2012, at 17.11, Jost Krieger wrote: >>> imap(x1234567): Error: Cached message size larger than expected (6796 > >>> 2844) >> >> This looks like it does. Existing emails must not be changed, IMAP >> protocol forbids it (and Dovecot internals don't support it either). >> The only safe way t

Re: [Dovecot] dovecot proxy ssl-parameter from database?

2012-09-11 Thread Timo Sirainen
On 3.9.2012, at 16.32, Daniel Funke wrote: > So far all works fine. My question is the TLS or noTLS connection from the > client to the proxy. How can I make the ssl-parameter user-dependant? clients > to the old courier server should work without or with tls through the proxy > and clients to

Re: [Dovecot] Syntax for doveadm auth cache

2012-09-11 Thread Timo Sirainen
On 3.9.2012, at 14.16, Angel L. Mateo wrote: > Moreover... according to previous mails (thread > http://www.dovecot.org/list/dovecot/2012-June/066691.html) there is a patch > to remove a specific user entry from cache. This patch I think is included in > dovecot 2.1.9 (which I'm running)

Re: [Dovecot] Alerts when process limits are met

2012-09-11 Thread Timo Sirainen
On 1.9.2012, at 11.10, David Anderson wrote: > I've not found the answer to this question anywhere - please forgive me if I > overlooked. > > I'd like to be able to be automatically alerted if process limits are hit > (e.g. max POP3 logins). > > Is there a way that I can configure a script to

Re: [Dovecot] ACL MySQL dict: to_user==from_user entries

2012-09-11 Thread Timo Sirainen
On 29.8.2012, at 15.44, Roland Rosenfeld wrote: > But after "SETACL INBOX user@domain lrwstipekxacd" I see a new entry > in my imap_acl_shares table where to_user and from_user both contain > the value "user@domain". > > Does it make sense to run a daily cron job, that removes all entries > with

Re: [Dovecot] imap_idle_notify_interval

2012-09-11 Thread Andreas Meyer
Hi! Timo Sirainen wrote: > On 11.9.2012, at 17.00, Andreas Meyer wrote: > > > protocol imap { > > imap_idle_notify_interval = 29 mins > > mail_max_userip_connections = 10 > > mail_plugins = " quota imap_quota autocreate" > > } > > > > > > doveconf |grep idle shows me the following outp

Re: [Dovecot] imap_idle_notify_interval

2012-09-11 Thread Timo Sirainen
On 11.9.2012, at 17.00, Andreas Meyer wrote: > protocol imap { > imap_idle_notify_interval = 29 mins > mail_max_userip_connections = 10 > mail_plugins = " quota imap_quota autocreate" > } > > > doveconf |grep idle shows me the following output: > imap_idle_notify_interval = 2 mins > imap

[Dovecot] imap_idle_notify_interval

2012-09-11 Thread Andreas Meyer
Hi! I want to change the imap_idle_notify_interval t0 29 minutes and have edited the 20-imap.conf with imap_idle_notify_interval = 29 mins and restarted the server. doveconf -n shows me this: protocol imap { imap_idle_notify_interval = 29 mins mail_max_userip_connections = 10 mail_plug

Re: [Dovecot] Expire plugin with multiple mail servers

2012-09-11 Thread Timo Sirainen
On 11.9.2012, at 12.41, Ramón Frontera wrote: > Hello we are running Dovecot 2.1.9 and I want to configure expire plugin. > We have 2 proxies with director and 4 mail servers. > > I have configured expire plugin on a single mail server and it works Ok. > I don't konw how to configure with 4 mail

Re: [Dovecot] Is it possible to save only some messages compressed to mdbox? (2.1.6)

2012-09-11 Thread Jost Krieger
On Thu, Aug 23, 2012 at 11:08:38PM +0300, Timo Sirainen wrote: > > On 20.8.2012, at 16.06, Jost Krieger wrote: > > > So here's the questions: > > > > 1. Is it possible to have compressed/uncompressed mails mixed in an > > mdbox? > > Yes. Compression is detected on a per-mail basis. > > > 2.

Re: [Dovecot] Expire plugin with multiple mail servers

2012-09-11 Thread Robert Schetterer
Am 11.09.2012 11:41, schrieb Ramón Frontera: > Hello we are running Dovecot 2.1.9 and I want to configure expire plugin. > We have 2 proxies with director and 4 mail servers. > > I have configured expire plugin on a single mail server and it works Ok. > I don't konw how to configure with 4 mail se

[Dovecot] Expire plugin with multiple mail servers

2012-09-11 Thread Ramón Frontera
Hello we are running Dovecot 2.1.9 and I want to configure expire plugin. We have 2 proxies with director and 4 mail servers. I have configured expire plugin on a single mail server and it works Ok. I don't konw how to configure with 4 mail servers and 2 proxies. My first idea is create on each m