[Dovecot] importing plain mboxes to dovecot maildirs

2012-03-16 Thread Radim Kolar
Is there way to import old plain mboxes via dsync? It complains about lack of index files: ponto:(admin)~>dsync mirror mbox:~/mail dsync(admin): Error: Failed to sync mailbox sent-mail: Mailbox GUIDs are not permanent without index files dsync(admin): Error: Failed to sync mailbox saved-message

Re: [Dovecot] Update problem from 1.2 => 2.0.19 and recommended imap storage

2012-03-16 Thread Gerhard Wiesinger
On Fri, 16 Mar 2012, Timo Sirainen wrote: On 16.3.2012, at 8.02, Gerhard Wiesinger wrote: Calling imap still fails as non root: imap /usr/bin/ld: cannot open output file /usr/local/bin/.libs/2612-lt-imap: Permission denied collect2: ld returned 1 exit statusn Huh? That looks like imap is run

Re: [Dovecot] auth tcp socket, Authentication client gave a PID 7542 of existing connection

2012-03-16 Thread Alex Ha
On Fri, Mar 16, 2012 at 9:14 PM, Timo Sirainen wrote: > On 16.3.2012, at 22.00, Alex Ha wrote: > >> dovecot: auth: Error: BUG: Authentication client gave a PID 7542 of >> existing connection > > Oh, right, PIDs of course aren't unique when you're using multiple servers. > Try if the attached patc

Re: [Dovecot] auth tcp socket, Authentication client gave a PID 7542 of existing connection

2012-03-16 Thread Timo Sirainen
On 16.3.2012, at 22.00, Alex Ha wrote: > dovecot: auth: Error: BUG: Authentication client gave a PID 7542 of > existing connection Oh, right, PIDs of course aren't unique when you're using multiple servers. Try if the attached patch fixes your troubles. If it does, I'll commit it to hg. tcp-a

[Dovecot] auth tcp socket, Authentication client gave a PID 7542 of existing connection

2012-03-16 Thread Alex Ha
Hi Dovecot-list! My setup consists of a dovecot server with lmtp delivery and 3 postfix mta servers in front. Previously the mtas authenticated (SASL) through the courier-authdaemond software to our mysql database. To get support for more password formats i migrated to dovecot for SASL authentific

Re: [Dovecot] POP3 Performance

2012-03-16 Thread Kelsey Cummings
On 03/16/12 10:54, Timo Sirainen wrote: Another thing our existing POP3 servers did was batch all of the deletes until after the +OK... was returned from quit. This doesn't reduce server load but has the impression of creating faster response times to the clients. You mean deleting the messa

Re: [Dovecot] Just in time AV scanning

2012-03-16 Thread Timo Sirainen
On 16.3.2012, at 19.52, Kelsey Cummings wrote: > On 03/16/12 08:30, Ed W wrote: >> 2) Extremely racey, but if you were on maildir you could use some kind >> of pre-login scripting to kick off a scan on login. Touch some lock file >> so that you can tell when last scanned and only scan if the defin

Re: [Dovecot] POP3 Performance

2012-03-16 Thread Timo Sirainen
On 16.3.2012, at 19.49, Kelsey Cummings wrote: > On 03/16/12 06:07, Timo Sirainen wrote: >> Maildir isn't very good for POP3, especially if the POP3 clients delete the >> mails after download. With Dovecot you could look into switching to >> multi-dbox format, which would have much better perfor

Re: [Dovecot] Just in time AV scanning

2012-03-16 Thread Kelsey Cummings
On 03/16/12 08:30, Ed W wrote: 2) Extremely racey, but if you were on maildir you could use some kind of pre-login scripting to kick off a scan on login. Touch some lock file so that you can tell when last scanned and only scan if the definitions have been updated since you last scanned? I thin

Re: [Dovecot] POP3 Performance

2012-03-16 Thread Kelsey Cummings
On 03/16/12 06:07, Timo Sirainen wrote: Maildir isn't very good for POP3, especially if the POP3 clients delete the mails after download. With Dovecot you could look into switching to multi-dbox format, which would have much better performance. Timo, can you explain why Maildir isn't a good f

Re: [Dovecot] Problem copying e-mails to IMAP - Dovecot 2.1.2

2012-03-16 Thread e-frog
On 16.03.2012 18:00, wrote Timo Sirainen: On 16.3.2012, at 18.16, e-frog wrote: On 16.03.2012 16:05, wrote Timo Sirainen: On Fri, 2012-03-16 at 17:00 +0300, Odhiambo Washington wrote: Mar 16 13:33:23 jaribu dovecot: imap(w...@kictanet.or.ke): Error: Corrupted dbox file /var/spool/virtual/ki

Re: [Dovecot] Problem copying e-mails to IMAP - Dovecot 2.1.2

2012-03-16 Thread Timo Sirainen
On 16.3.2012, at 18.16, e-frog wrote: > On 16.03.2012 16:05, wrote Timo Sirainen: >> On Fri, 2012-03-16 at 17:00 +0300, Odhiambo Washington wrote: > Mar 16 13:33:23 jaribu dovecot: imap(w...@kictanet.or.ke): Error: Corrupted > dbox file /var/spool/virtual/kictanet.or.ke/wash/mdbox/sto

[Dovecot] v2.1.3 released

2012-03-16 Thread Timo Sirainen
http://dovecot.org/releases/2.1/dovecot-2.1.3.tar.gz http://dovecot.org/releases/2.1/dovecot-2.1.3.tar.gz.sig Do not use v2.1.2 with multi-dbox format, it's broken. I didn't notice that a small optimization I did a few days ago broke mdbox in some situations (when mdbox first created a new m.X f

Re: [Dovecot] [Solved] Another hint from the clue box 8-) imapc/imap proxy user mailbox server location

2012-03-16 Thread Ed W
On 16/03/2012 15:45, Charles Marcus wrote: On 2012-03-16 11:22 AM, Ed W wrote: If the answer is that he will write a Z-Push/Activesync module for SOGo then I'm all ears! I have been watching SOGo for some time and the main thing I would miss is that every phone I have ever owned has largely li

Re: [Dovecot] Problem copying e-mails to IMAP - Dovecot 2.1.2

2012-03-16 Thread e-frog
On 16.03.2012 16:05, wrote Timo Sirainen: On Fri, 2012-03-16 at 17:00 +0300, Odhiambo Washington wrote: Mar 16 13:33:23 jaribu dovecot: imap(w...@kictanet.or.ke): Error: Corrupted dbox file /var/spool/virtual/kictanet.or.ke/wash/mdbox/storage/m.4(around offset=894): msg header has bad magic va

Re: [Dovecot] Problem copying e-mails to IMAP - Dovecot 2.1.2

2012-03-16 Thread Timo Sirainen
On 16.3.2012, at 17.57, Odhiambo Washington wrote: >> imaptest host=localhost user=testuser pass=testpass >> >> Maybe I should set up a FreeBSD VM to try this myself. Or if anyone else >> can report that they can reproduce this problem that would be helpful.. >> > Must I edit src/settings.h to r

Re: [Dovecot] Problem copying e-mails to IMAP - Dovecot 2.1.2

2012-03-16 Thread Odhiambo Washington
On Fri, Mar 16, 2012 at 18:05, Timo Sirainen wrote: > On Fri, 2012-03-16 at 17:00 +0300, Odhiambo Washington wrote: > > > > Mar 16 13:33:23 jaribu dovecot: imap(w...@kictanet.or.ke): Error: > > > Corrupted > > > > dbox file /var/spool/virtual/ > kictanet.or.ke/wash/mdbox/storage/m.4(around

Re: [Dovecot] [Solved] Another hint from the clue box 8-) imapc/imap proxy user mailbox server location

2012-03-16 Thread Charles Marcus
On 2012-03-16 11:22 AM, Ed W wrote: If the answer is that he will write a Z-Push/Activesync module for SOGo then I'm all ears! I have been watching SOGo for some time and the main thing I would miss is that every phone I have ever owned has largely limited/broken Funambol based sync and annoyin

Re: [Dovecot] Just in time AV scanning

2012-03-16 Thread Ed W
On 15/03/2012 10:33, Timo Sirainen wrote: On Wed, 2012-03-14 at 16:51 -0700, Kelsey Cummings wrote: I'm curious if anyone has any plugins for AV integration directly into dovecot. Our old pop servers have been scanning messges as they're moved from new->cur in the inbox and, at least where use

Re: [Dovecot] [Solved] Another hint from the clue box 8-) imapc/imap proxy user mailbox server location

2012-03-16 Thread Timo Sirainen
On Fri, 2012-03-16 at 15:22 +, Ed W wrote: > > I also learned something very interesting yesterday concerning SOGo > > and dovecot during a sales call with a SOGo rep, but I'll wait and see > > if Timo cares to chime in on this one... ;) > > > > If the answer is that he will write a Z-Push/A

Re: [Dovecot] [Solved] Another hint from the clue box 8-) imapc/imap proxy user mailbox server location

2012-03-16 Thread Ed W
On 14/03/2012 10:58, Charles Marcus wrote: On 2012-03-13 6:29 PM, Terry Carmen wrote: I'm going to hope everything is OK for a while, since my goal is to retire all the old Exchange servers and move all the users to dovecot/maildir within the next couple of months. However it's always nice to

Re: [Dovecot] ldapi support

2012-03-16 Thread Timo Sirainen
On Fri, 2012-03-16 at 15:39 +0200, Nikolaos Milas wrote: > Hi, > > Quick question: Does Dovecot support ldapi (i.e. via Unix Sockets) > connections for LDAP lookups (user, password, auth etc.) or only > ldap/ldaps (over TCP)? > > If yes, how do we specify ldapi://localhost in Dovecot configurat

Re: [Dovecot] Problem copying e-mails to IMAP - Dovecot 2.1.2

2012-03-16 Thread Timo Sirainen
On Fri, 2012-03-16 at 17:00 +0300, Odhiambo Washington wrote: > > > Mar 16 13:33:23 jaribu dovecot: imap(w...@kictanet.or.ke): Error: > > Corrupted > > > dbox file /var/spool/virtual/kictanet.or.ke/wash/mdbox/storage/m.4(around > > > offset=894): msg header has bad magic value > > > Ok. I have been

Re: [Dovecot] Problem copying e-mails to IMAP - Dovecot 2.1.2

2012-03-16 Thread Odhiambo Washington
On Fri, Mar 16, 2012 at 17:11, Giles Coochey wrote: > On 16/03/2012 14:00, Odhiambo Washington wrote: > >> On Fri, Mar 16, 2012 at 16:24, Timo Sirainen wrote: >> >> On Fri, 2012-03-16 at 13:51 +0300, Odhiambo Washington wrote: >>> I have a situation where I need to migrate e-mails from Out

Re: [Dovecot] dovecot and systemd

2012-03-16 Thread Michal Hlavinka
On 03/15/2012 03:05 PM, Timo Sirainen wrote: On Thu, 2012-03-15 at 14:34 +0100, Michal Hlavinka wrote: What exactly should happen when dovecot.conf does not match dovecot.socket configuration? Dovecot's systemd code was written by one of you Redhat guys. I had some similar thoughts when I appl

Re: [Dovecot] Problem copying e-mails to IMAP - Dovecot 2.1.2

2012-03-16 Thread Giles Coochey
On 16/03/2012 14:00, Odhiambo Washington wrote: On Fri, Mar 16, 2012 at 16:24, Timo Sirainen wrote: On Fri, 2012-03-16 at 13:51 +0300, Odhiambo Washington wrote: I have a situation where I need to migrate e-mails from Outlook 2011 (Mac) Personally I would just use readpst to export the stan

Re: [Dovecot] imaptest: performance testing

2012-03-16 Thread Charles Marcus
On 2012-03-16 9:17 AM, Timo Sirainen wrote: imaptest is mainly meant to test server correctness (i.e. for me to test that Dovecot is bugfree). It spends a lot of time checking and tracking things that is irrelevant when you simply want to load the server. You could add no_tracking parameter to g

Re: [Dovecot] Problem copying e-mails to IMAP - Dovecot 2.1.2

2012-03-16 Thread Odhiambo Washington
On Fri, Mar 16, 2012 at 16:24, Timo Sirainen wrote: > On Fri, 2012-03-16 at 13:51 +0300, Odhiambo Washington wrote: > > I have a situation where I need to migrate e-mails from Outlook 2011 > (Mac) > > to Apple Mail. Having looked at all options, I have resorted to the, > > perhaps, most difficult

Re: [Dovecot] Problem copying e-mails to IMAP - Dovecot 2.1.2

2012-03-16 Thread Odhiambo Washington
On Fri, Mar 16, 2012 at 16:24, Timo Sirainen wrote: > On Fri, 2012-03-16 at 13:51 +0300, Odhiambo Washington wrote: > > I have a situation where I need to migrate e-mails from Outlook 2011 > (Mac) > > to Apple Mail. Having looked at all options, I have resorted to the, > > perhaps, most difficult

[Dovecot] ldapi support

2012-03-16 Thread Nikolaos Milas
Hi, Quick question: Does Dovecot support ldapi (i.e. via Unix Sockets) connections for LDAP lookups (user, password, auth etc.) or only ldap/ldaps (over TCP)? If yes, how do we specify ldapi://localhost in Dovecot configuration files? Thanks, Nick

Re: [Dovecot] Problem copying e-mails to IMAP - Dovecot 2.1.2

2012-03-16 Thread Timo Sirainen
On Fri, 2012-03-16 at 13:51 +0300, Odhiambo Washington wrote: > I have a situation where I need to migrate e-mails from Outlook 2011 (Mac) > to Apple Mail. Having looked at all options, I have resorted to the, > perhaps, most difficult way: Create folders on the IMAP server, copy > e-mails into the

Re: [Dovecot] imaptest: performance testing

2012-03-16 Thread Timo Sirainen
On 16.3.2012, at 12.08, Nick Urbanik wrote: > Using head of imaptest with dovecot 2.1, I am attempting to put a > heavy load on the server, with insufficient success. > > I made 15000 user accounts, put them in to a file, one per line. Then > I ran imaptest with > > ./imaptest userfile=../../im

Re: [Dovecot] bug uni_utf8_str_is_valid(vname)

2012-03-16 Thread Timo Sirainen
On 16.3.2012, at 11.09, Jernej Porenta wrote: >>> Mar 6 13:37:17 machine dovecot: imap(username): Panic: file >>> mail-storage.c: line 628 (mailbox_alloc): assertion failed: >>> (uni_utf8_str_is_valid(vname)) >> .. > We tried version 2.1.2, which unfortunately does not fix the issue with weird >

Re: [Dovecot] replication howto

2012-03-16 Thread Matteo Cazzador
Hi, Solved! i add at my sql SELECT maildir, 1000 AS uid, 1000 AS gid, '/home/domini-posta/netlite.locale/matteo' as mail, '/home/domini-posta/netlite.locale/matteo' as home FROM mailbox WHERE username = 'matteo@netlite.locale' Now i've see first replication going!!! thank's everybody I hope

Re: [Dovecot] POP3 Performance

2012-03-16 Thread Timo Sirainen
On 16.3.2012, at 13.07, Mauricio López Riffo wrote: >We actually have a mail hosting solutions with aprox. 100 thousand of > email account, where about 90% of a customers use POP3 like email > configuration. About a few mounths (we perfomed a lot of migration throught > mbox email software

Re: [Dovecot] replication howto

2012-03-16 Thread Matteo Cazzador
Hi, with this changes first step is passed: I decomment this #dsync_remote_cmd = ssh -p 22 -l%{login} %{host} doveadm dsync-server -u%u -l%{lock_timeout} -n%{namespace} i active and add absolute path of doveadm dsync_remote_cmd = ssh -p 22 -l%{login} %{host} /usr/local/bin/doveadm dsync-server

Re: [Dovecot] POP3 Performance

2012-03-16 Thread Steve Campbell
On 3/16/2012 7:07 AM, Mauricio López Riffo wrote: Hi, We actually have a mail hosting solutions with aprox. 100 thousand of email account, where about 90% of a customers use POP3 like email configuration. About a few mounths (we perfomed a lot of migration throught mbox email software

Re: [Dovecot] Upgrading from 2.0.x to 2.1.x

2012-03-16 Thread Nikolaos Milas
On 16/3/2012 11:39 πμ, Morten Stevens wrote: See: http://wiki2.dovecot.org/Upgrading/2.1 Thank you Morten. This was exactly what I was looking for. By the way, searching in the wiki2 for "Upgrade" does not locate the upgrade pages, except "Upgrading/1.0". The pages are found when searching

Re: [Dovecot] replication howto

2012-03-16 Thread Matteo Cazzador
Hi, i obtain the same error Mar 16 13:02:01 Gentoo_cyrus_imap dovecot: dsync-local(matteo@netlite.locale): Error: remote: bash: doveadm: command not found Mar 16 13:02:01 Gentoo_cyrus_imap dovecot: dsync-local(matteo@netlite.locale): Error: read() from worker server failed: EOF i've create vmail

Re: [Dovecot] POP3 Performance

2012-03-16 Thread Jan-Frode Myklebust
One quick fix to try, if it's the login-time that's killing you, is to enable auth caching: http://wiki2.dovecot.org/Authentication/Caching that should offload your backend LDAP-servers from doing bind() on ever login, had a huge login performance impact for us. We use "auth_cache_size =

Re: [Dovecot] POP3 Performance

2012-03-16 Thread Robert Schetterer
Am 16.03.2012 12:07, schrieb Mauricio López Riffo: > Hi, > > We actually have a mail hosting solutions with aprox. 100 thousand > of email account, where about 90% of a customers use POP3 like email > configuration. About a few mounths (we perfomed a lot of migration > throught mbox email sof

Re: [Dovecot] Lack of external documentation?

2012-03-16 Thread Charles Marcus
On 2012-03-15 3:27 PM, Terry Carmen wrote: > On 2012-03-15 3:06 PM, Steve Campbell wrote: >> Does anyone know of any manuals/books that have been written that >> might introduce me to most of the stuff in dovecot? I'll be the first to admit that complex and specialized configurations are somet

[Dovecot] POP3 Performance

2012-03-16 Thread Mauricio López Riffo
Hi, We actually have a mail hosting solutions with aprox. 100 thousand of email account, where about 90% of a customers use POP3 like email configuration. About a few mounths (we perfomed a lot of migration throught mbox email software to Maildir with dovecot) but i can see that the perf

[Dovecot] Problem copying e-mails to IMAP - Dovecot 2.1.2

2012-03-16 Thread Odhiambo Washington
I have a situation where I need to migrate e-mails from Outlook 2011 (Mac) to Apple Mail. Having looked at all options, I have resorted to the, perhaps, most difficult way: Create folders on the IMAP server, copy e-mails into them from Outlook, connect Apple Mail and do the reverse. However, I have

[Dovecot] imaptest: performance testing

2012-03-16 Thread Nick Urbanik
Dear Folks, Using head of imaptest with dovecot 2.1, I am attempting to put a heavy load on the server, with insufficient success. I made 15000 user accounts, put them in to a file, one per line. Then I ran imaptest with ./imaptest userfile=../../imap-test-userlist-15001.txt clients=15001 pass

Re: [Dovecot] Upgrading from 2.0.x to 2.1.x

2012-03-16 Thread Morten Stevens
On 16.03.2012 10:26, Nikolaos Milas wrote: Hi, A quick question: Are there any incompatibilities in config settings among versions 2.0.x and 2.1.x (and subsequently v2.2.x)? That is, upgrading Dovecot 2.0.x to 2.1.x software, will also require changes of any config settings (as upgrading from v

[Dovecot] Upgrading from 2.0.x to 2.1.x

2012-03-16 Thread Nikolaos Milas
Hi, A quick question: Are there any incompatibilities in config settings among versions 2.0.x and 2.1.x (and subsequently v2.2.x)? That is, upgrading Dovecot 2.0.x to 2.1.x software, will also require changes of any config settings (as upgrading from v1.x to 2.0.x did)? Thanks, Nick

Re: [Dovecot] bug uni_utf8_str_is_valid(vname)

2012-03-16 Thread Jernej Porenta
On Mar 14, 2012, at 3:29 PM, Timo Sirainen wrote: > On Tue, 2012-03-06 at 14:28 +0100, Jernej Porenta wrote: >> Heya, >> >> We are expiriencing issues with dovecot 2.1.1 on Linux with weird >> filenames in home directory of username. We are using mbox IMAP >> folders, with no special changes (ma

Re: [Dovecot] replication howto

2012-03-16 Thread Matteo Cazzador
Hi, thank's everybody, today afternoon i apply the suggest and i test solution. I post the actual configuration that i will test: vmail users is present too, i create ssh-keygen for users vmail and relative home directory and permit ssh with no password with user vmail on two servers. Then i use

Re: [Dovecot] Update problem from 1.2 => 2.0.19 and recommended imap storage

2012-03-16 Thread Timo Sirainen
On 16.3.2012, at 8.02, Gerhard Wiesinger wrote: > After fixing configuration and other issues I'm still having one problem with > imap executable and pine: > less .pinerc > # Changed config: > #rsh-command=/usr/sbin/dovecot --exec-mail imap > rsh-command=/usr/local/bin/imap That's correct. > Ca