Re: [Dovecot] Please advise on very fast search

2011-11-15 Thread Alexander Chekalin
Hello, Stan, > This is why I recommended mbox in the first place. If your only writes > to these mailbox files are appends of new messages, mbox is the best > format by far. It's faster at appending than any other format, and it's > faster for searching than any other. I now seriously consider

Re: [Dovecot] Deleting a mailbox and all its children

2011-11-15 Thread micah anderson
On Wed, 16 Nov 2011 03:15:02 +0200, Timo Sirainen wrote: > On 16.11.2011, at 3.04, Micah Anderson wrote: > > > I'm looking at scripting a mechanism to delete a mailbox, which is easy > > with 'doveadm mailbox delete' -- however it gets complicated when there > > are children of arbitrary depth, f

Re: [Dovecot] Getting started with sieve and conversion from procmail

2011-11-15 Thread Alex
Hi, >> procmail: Assigning "DELIVER=/usr/libexec/dovecot/deliver" >> procmail: Executing "/usr/libexec/dovecot/deliver,-m,xspamtest" >> procmail: Non-zero exitcode (75) from "/usr/libexec/dovecot/deliver" >> procmail: Rescue of unfiltered data succeeded >> procmail: Executing "/usr/libexec/dovecot

Re: [Dovecot] Deleting a mailbox and all its children

2011-11-15 Thread Timo Sirainen
On 16.11.2011, at 3.04, Micah Anderson wrote: > I'm looking at scripting a mechanism to delete a mailbox, which is easy > with 'doveadm mailbox delete' -- however it gets complicated when there > are children of arbitrary depth, for example, I may have this: > > restored.daily1.INBOX > restored.d

[Dovecot] Deleting a mailbox and all its children

2011-11-15 Thread Micah Anderson
I'm looking at scripting a mechanism to delete a mailbox, which is easy with 'doveadm mailbox delete' -- however it gets complicated when there are children of arbitrary depth, for example, I may have this: restored.daily1.INBOX restored.daily1.Sent restored.daily1.Mystuff restored.daily1.Mystuff

Re: [Dovecot] Getting started with sieve and conversion from procmail

2011-11-15 Thread Timo Sirainen
On 16.11.2011, at 2.08, Alex wrote: > No, I was just running as root from the command-line for an example. > The maillog shows error 75: > > procmail: Assigning "DELIVER=/usr/libexec/dovecot/deliver" > procmail: Executing "/usr/libexec/dovecot/deliver,-m,xspamtest" > procmail: Non-zero exitcode (

Re: [Dovecot] Getting started with sieve and conversion from procmail

2011-11-15 Thread Alex
Hi, >> It's now delivering, but my deliver command must be wrong. This is my >> ~/.procmailrc: > .. >> # # /usr/libexec/dovecot/deliver -m spamtest >> lda(root): Fatal: destination user parameter (-d user) not given >> >> Am I doing something wrong? > > Is it trying to deliver mails to root user?

Re: [Dovecot] Glued-together private namespaces

2011-11-15 Thread Mark Moseley
On Tue, Nov 15, 2011 at 11:39 AM, Timo Sirainen wrote: > On Mon, 2011-11-14 at 10:23 -0800, Mark Moseley wrote: > >> > Thanks to a fortuitously unrelated thread ("how to disable quota for >> > second namespace"), I got the quota part figured out and that seems to >> > be working: Add a second entr

Re: [Dovecot] Getting started with sieve and conversion from procmail

2011-11-15 Thread Timo Sirainen
On 16.11.2011, at 2.00, Alex wrote: > It's now delivering, but my deliver command must be wrong. This is my > ~/.procmailrc: .. > # # /usr/libexec/dovecot/deliver -m spamtest > lda(root): Fatal: destination user parameter (-d user) not given > > Am I doing something wrong? Is it trying to delive

Re: [Dovecot] Getting started with sieve and conversion from procmail

2011-11-15 Thread Alex
Hi, I just don't understand how to invoke procmail from deliver. >>> >>> The idea was to invoke deliver from procmail. I still do this myself >>> since I haven't bothered changing my procmail scripts to Sieve: >>> >>> DELIVER=/usr/local/libexec/dovecot/deliver >>> >>> :0 >>> * ^List-Id.*dovec

Re: [Dovecot] Excessive imap-logins, never die

2011-11-15 Thread Nick Edwards
On Wed, Nov 16, 2011 at 8:50 AM, Timo Sirainen wrote: > On 16.11.2011, at 0.48, Nick Edwards wrote: > > > Today I note there are 38 imap-logins that seem to be stale on our staff > > imap server, > > they do not seem to die off, new imap-logins are created with new logins > > and exit accordingl

Re: [Dovecot] Excessive imap-logins, never die

2011-11-15 Thread Timo Sirainen
On 16.11.2011, at 0.48, Nick Edwards wrote: > Today I note there are 38 imap-logins that seem to be stale on our staff > imap server, > they do not seem to die off, new imap-logins are created with new logins > and exit accordingly. .. > Dovecot version 1.2.17, built from source All this code ha

[Dovecot] Excessive imap-logins, never die

2011-11-15 Thread Nick Edwards
Hiya, Today I note there are 38 imap-logins that seem to be stale on our staff imap server, they do not seem to die off, new imap-logins are created with new logins and exit accordingly. Now, these are from our monitoring software that runs on another server on our LAN. Our corporate link was t

Re: [Dovecot] Getting started with sieve and conversion from procmail

2011-11-15 Thread Timo Sirainen
On 16.11.2011, at 0.14, Alex wrote: >>> I just don't understand how to invoke procmail from deliver. >> >> The idea was to invoke deliver from procmail. I still do this myself >> since I haven't bothered changing my procmail scripts to Sieve: >> >> DELIVER=/usr/local/libexec/dovecot/deliver >>

Re: [Dovecot] Getting started with sieve and conversion from procmail

2011-11-15 Thread Alex
Hi, >> I just don't understand how to invoke procmail from deliver. > > The idea was to invoke deliver from procmail. I still do this myself > since I haven't bothered changing my procmail scripts to Sieve: > > DELIVER=/usr/local/libexec/dovecot/deliver > > :0 > * ^List-Id.*dovecot.dovecot.org > |

Re: [Dovecot] default Dovecot-LDA CHGRP/CHMOD

2011-11-15 Thread Chris Young
Thanks for the response. I was able to get it working with chmod 755 On Tue, Nov 15, 2011 at 3:34 PM, Timo Sirainen wrote: > On Wed, 2011-11-09 at 14:04 -0500, Chris Young wrote: > > I am familiar with this article > > http://wiki.dovecot.org/LDA#multipleuids > > > > I want to disable setuid-ro

Re: [Dovecot] dsync problems

2011-11-15 Thread Timo Sirainen
On Tue, 2011-11-15 at 14:24 -0500, Micah Anderson wrote: > When a user renames their username, I am using dsync to copy their mail > over to the new username's mail location[0]. > > Some of the dsyncs are failing with errors that I dont know how to work > with, for example: > > dsync(): Error: T

Re: [Dovecot] Seg fault in dovecot/auth 2.0.15

2011-11-15 Thread Timo Sirainen
On Tue, 2011-11-15 at 14:31 -0500, Mark Goldey wrote: Could you do a bit more with gdb and this core: > #1 0x08059890 in auth_worker_handle_user (client=0x82b34d0) at > auth-worker-client.c:405 > auth_request = 0x82b56e8 > userdb_id = 1 fr 1 p *auth_request->userdb->userdb p *au

Re: [Dovecot] Dovecot SASL on another machine

2011-11-15 Thread Timo Sirainen
On Sat, 2011-11-05 at 20:43 +0100, Patrick Ben Koetter wrote: > * Timo Sirainen : > > On Sat, 2011-11-05 at 15:13 +0100, Tobias Hachmer wrote: > > > > > is there a way to use Dovecot SASL Authentication for submission on a > > > different machine dovecot runs? > > > > With v2.0 you should be abl

Re: [Dovecot] default Dovecot-LDA CHGRP/CHMOD

2011-11-15 Thread Timo Sirainen
On Wed, 2011-11-09 at 14:04 -0500, Chris Young wrote: > I am familiar with this article > http://wiki.dovecot.org/LDA#multipleuids > > I want to disable setuid-root, but I don't know the default group and > permissions. > > sudo chgrp root /usr/libexec/dovecot/dovecot-lda > sudo chmod 00750 /usr/

Re: [Dovecot] indexes permissions problem

2011-11-15 Thread Timo Sirainen
On Thu, 2011-11-10 at 00:30 -0800, Mark Hanford wrote: > I've got a centos 6 server running Dovecot 2.0.beta6 (3156315704ef). > For legacy reasons (I'm moving mail from a Dovecot 1.1.1 and FreeBSD box > with user home directories NFS mounted), my index files are setup to be > in /u/indexes/ >

Re: [Dovecot] Limit the number of pop/imap requests

2011-11-15 Thread Timo Sirainen
On Thu, 2011-11-10 at 10:40 +0100, wwl wrote: > Hello Group, > > is it possible to Limit the number of pop/imap requests to Dovecot? > > I read the Wiki and found > >max_mail_processes = 512 > > is this the way to limit this ? This limits the number of simultaneous IMAP and POP3 connection

Re: [Dovecot] Dovecot 2.0.15 quota configuration with mbox

2011-11-15 Thread Timo Sirainen
On Thu, 2011-11-10 at 12:14 +0100, David Ocana wrote: > >> namespace { > >>separator = / > >>prefix = INBOX/ > >>location = > >> mbox:/var/empty:INBOX=/mail/%d/%n:INDEX=/var/dovecot/%d/%n > >>inbox = yes > >>hidden = yes > >> } > >> > >> plugin { > >>

Re: [Dovecot] dovecot-lda quota rule

2011-11-15 Thread Timo Sirainen
On Thu, 2011-11-10 at 13:59 -0500, Micah Anderson wrote: > I really like the feature where you can define quota rules with percents > which trigger off of the default values[0] (so you can set the Trash to > allow for 10% more of the user's quota for example). > > What I would really love in dove

Re: [Dovecot] Invalid "doveadm search" queries not rejected

2011-11-15 Thread Timo Sirainen
On Thu, 2011-11-10 at 23:41 -0800, Peter Williams wrote: > I think I've encountered a bug in Dovecot 2.0.9 (as provided on CentOS > 6). > > According to the doveadm-search-query(7) manual page, a "mailbox" > specification can only come at the beginning of a search query. It doesn't exactly say

Re: [Dovecot] Migration From Courier Imap.

2011-11-15 Thread Timo Sirainen
On Sat, 2011-11-12 at 12:58 +0530, Rajeev Sharma wrote: > I am using vpopmail,qmail along with courier-imap 4.0 i want to > migrate from courier to dovecot but i have 100 shared folder > under /home/vpopmail/domains/domain.com/Malidir and user shared them > on the basis of rights assign. > > I am

Re: [Dovecot] submission_host problem

2011-11-15 Thread Timo Sirainen
On Sat, 2011-11-12 at 05:32 +0100, Bambero wrote: > I configured dovecot to use submission smtp host becouse of chroot. > > submission_host = 127.0.0.1 > > Unfortunatelly: > > Nov 12 05:11:15 myhost exim[23366]: 2011-11-12 05:11:15 SMTP protocol > synchronization error (next input sent too soon

Re: [Dovecot] Chroot

2011-11-15 Thread Timo Sirainen
On Sun, 2011-11-13 at 17:25 +0100, Bambero wrote: > all maildirs are located in: /var/mail/j...@example.com/Maildir So this is /var/mail/%u/Maildir template. > namespace { > type = shared > separator = / > prefix = shared/%%u/ > location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u

Re: [Dovecot] Glued-together private namespaces

2011-11-15 Thread Timo Sirainen
On Mon, 2011-11-14 at 10:23 -0800, Mark Moseley wrote: > > Thanks to a fortuitously unrelated thread ("how to disable quota for > > second namespace"), I got the quota part figured out and that seems to > > be working: Add a second entry to plugin {}, e.g. "quota2 = > > maildir:Archive quota:ns=IN

Re: [Dovecot] Getting started with sieve and conversion from procmail

2011-11-15 Thread Timo Sirainen
On Tue, 2011-11-15 at 13:09 -0500, Alex wrote: > > > Yes, you can pipe the message to the Dovecot LDA from procmail. This would > > be similar to the solution described above, only using Procmail instead of a > > shell script. > > Are you referring to doing something like this: > > http://wiki2.

[Dovecot] Seg fault in dovecot/auth 2.0.15

2011-11-15 Thread Mark Goldey
Folks: I've been running Dovecot 2.0.7 on a Qmail / Vpopmail installation built on Debian Squeeze, with no problems for about a year. Dovecot is used for IMAP/S auth only. Dovecot is built from source. I just upgraded to 2.0.15 but it segfaults whenever an IMAP auth is attempted, regardless of

Re: [Dovecot] getenv() in plugin not working

2011-11-15 Thread Timo Sirainen
On Tue, 2011-11-15 at 03:58 +, Trutwin, Joshua wrote: > Appears this is the problem - I found this for dovecot v2 and it seems to be > working fine: > > http://sourceforge.jp/projects/dovecot2-drac/ > > Might wanna make a note on the wiki page that the DRAC setup is only for > dovecot 1.x?

Re: [Dovecot] Question about pop3_reuse_xuidl

2011-11-15 Thread Timo Sirainen
On Tue, 2011-11-15 at 16:02 +0100, Urban Loesch wrote: > At the beginning of our migration we didn't set the "pop3_reuse_xuidl" > configuration option to yes. > Do you know what happens when we activate the "pop3_reuse_xuidl" option on > our running dovecot? > > Will Dovecot change the uidl val

[Dovecot] dsync problems

2011-11-15 Thread Micah Anderson
When a user renames their username, I am using dsync to copy their mail over to the new username's mail location[0]. Some of the dsyncs are failing with errors that I dont know how to work with, for example: dsync(): Error: Trying to open a non-listed mailbox with guid=41fcd40303c8a64e4323

Re: [Dovecot] Please advise on very fast search

2011-11-15 Thread Timo Sirainen
On Tue, 2011-11-15 at 12:26 -0600, Stan Hoeppner wrote: > This is why I recommended mbox in the first place. If your only writes > to these mailbox files are appends of new messages, mbox is the best > format by far. It's faster at appending than any other format, and it's > faster for searching

Re: [Dovecot] Please advise on very fast search

2011-11-15 Thread Stan Hoeppner
On 11/14/2011 3:16 PM, Alexander Chekalin wrote: > Locking issues on mbox is the reason for my long-lasting love affair with > maildir, Same reason most others fell in love with it. Many now want to divorce maildir, as the cost of the storage to maintain acceptable performance is now too high.

Re: [Dovecot] Getting started with sieve and conversion from procmail

2011-11-15 Thread Alex
Hi, >>> The Sieve language doesn't support invoking external programs. You can >>> execute this program before Sieve, for instance by wrapping the LDA >>> invocation. >> >> Can you describe how I might do this? > > You can write a shell script that is executed from your MTA instead of the > Doveco

Re: [Dovecot] Getting started with sieve and conversion from procmail

2011-11-15 Thread Stephan Bosch
Op 15-11-2011 16:38, Alex schreef: Hi, The Sieve language doesn't support invoking external programs. You can execute this program before Sieve, for instance by wrapping the LDA invocation. Can you describe how I might do this? You can write a shell script that is executed from your MTA inst

Re: [Dovecot] Getting started with sieve and conversion from procmail

2011-11-15 Thread Alex
Hi, >> I have a number of procmail scripts and I've converted them to sieve, >> but they didn't convert very well. Can someone show me how to convert >> the following: >> >> :0 >> { >>     :0 fhW >>     | /home/alex/bin/process-mail.pl >> } >> >> The script skipped right over that. > > The Sieve l

[Dovecot] Question about pop3_reuse_xuidl

2011-11-15 Thread Urban Loesch
Hi, we are in migration progress from Communigate Pro 5.0.x to Dovecot 2.0.15 with mdbox. We still migrated about 25.000 IMAP accounts from CGP to Dovecot. Also there were still added about 2000 new POP3 Accounts on Dovecot. Now we must migrate about 10.000 POP3 accounts from CGP to Dovecot.

Re: [Dovecot] getenv() in plugin not working

2011-11-15 Thread Charles Marcus
On 2011-11-14 10:58 PM, Trutwin, Joshua wrote: Might wanna make a note on the wiki page that the DRAC setup is only for dovecot 1.x? Why? You were on the wiki for v1, so obviously it is (or may be) only meant for v1. -- Best regards, Charles