Re: [Dovecot] backup using rsync

2009-10-13 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Oct 13, 2009 at 04:15:02PM +0200, Robert Schetterer wrote: > to...@tuxteam.de schrieb: > > On Fri, Oct 09, 2009 at 03:41:40PM +0200, Robert Schetterer wrote: > > > > [...] > > > >> i ll do backups with rsync on maildirs with courier > >> ( wh

Re: [Dovecot] Autocreate plugin for some domains

2009-10-13 Thread Jose Luis Marin Perez
Dear Timo, I added the line you mentioned echo "yeah i got here" > /tmp/autocreate and did not create the file /tmp/autocreate This is the script with the real domain: #!/bin/bash DOMAIN=`echo $USER|sed s/^.*@//` if [ "$DOMAIN" = "operaciones.qnet.com.pe" ]; then export USERDB_AUTOCREAT

Re: [Dovecot] Autocreate plugin for some domains

2009-10-13 Thread Timo Sirainen
On Oct 13, 2009, at 6:32 PM, Jose Luis Marin Perez wrote: Additionally I have made this modification: #!/bin/bash DOMAIN=`echo $USER|sed s/^.*@//` if [ "$DOMAIN" = "domain2.com" ]; then export USERDB_AUTOCREATE=INBOX.box1 export USERDB_AUTOCREATE2=INBOX.box2 export EXTRA="USERDB_AUTOCREATE

Re: [Dovecot] v2.0.alpha1 released

2009-10-13 Thread Ed W
Ed W wrote: Actually, here's the original Nokia paper - just reading it now, seems quite interesting: http://research.nokia.com/files/NRCTR2008002.pdf Contrary to the results in the nokia paper I find a few "low quality" results from users who used the nokia battery monitor app to show that

Re: [Dovecot] v2.0.alpha1 released

2009-10-13 Thread Ed W
Timo Sirainen wrote: I can imagine that in the case of a typical cell phone with say 3 email accounts, there will be likely three idle connections (or more) to dovecot and each will end up sending keepalive packets at slightly different intervals for each connection. By synchronising this n

Re: [Dovecot] v2.0.alpha1 released

2009-10-13 Thread Timo Sirainen
On Oct 13, 2009, at 6:28 PM, Ed W wrote: Perhaps I misunderstand, but doesn't dovecot send a "keepalive" on connections which are idling? Yes, it's configurable nowadays: # How many seconds to wait between "OK Still here" notifications when # client is IDLEing. #imap_idle_notify_interv

Re: [Dovecot] Autocreate plugin for some domains

2009-10-13 Thread Jose Luis Marin Perez
Dear Timo, I tried with the script you mentioned and did not create the directories are configured. Additionally I have made this modification: #!/bin/bash DOMAIN=`echo $USER|sed s/^.*@//` if [ "$DOMAIN" = "domain2.com" ]; then export USERDB_AUTOCREATE=INBOX.box1 export USERDB_AUTOCRE

Re: [Dovecot] v2.0.alpha1 released

2009-10-13 Thread Ed W
Actually, here's the original Nokia paper - just reading it now, seems quite interesting: http://research.nokia.com/files/NRCTR2008002.pdf

Re: [Dovecot] v2.0.alpha1 released

2009-10-13 Thread Ed W
Timo Sirainen wrote: On Tue, 2009-10-13 at 21:38 +0100, Ed W wrote: Something I had been pondering recently (I started using a cell phone with imap idle support), was a previous poster mentioning the huge increase in battery life from turning off the radio for as long as possible. It appear

Re: [Dovecot] virtual Folder Plugin with "." Separator: [NONEXISTENT] Mailbox doesn't exist

2009-10-13 Thread Elmar Weber
Hello, Elmar Weber wrote: I'm getting the message "[NONEXISTENT] Mailbox doesn't exist: " from Thunderbird when I try to access any virtual folder. namespace private { prefix = virtual. separator = . location = virtual:~/.maildir/.virtual } > [...] I did some testing, and everything wo

Re: [Dovecot] v2.0.alpha1 released

2009-10-13 Thread Patrick Ben Koetter
* Timo Sirainen : > On Tue, 2009-10-13 at 21:38 +0100, Ed W wrote: > > Something I had been pondering recently (I started using a cell phone > > with imap idle support), was a previous poster mentioning the huge > > increase in battery life from turning off the radio for as long as > > possible.

Re: [Dovecot] v2.0.alpha1 released

2009-10-13 Thread Timo Sirainen
On Tue, 2009-10-13 at 18:00 +0300, Odhiambo Washington wrote: > On my FreeBSD 7.2-STABLE: > > mbox-from.c: In function 'mbox_from_parse': > mbox-from.c:240: error: wrong type argument to unary minus Yeah, BSDs have a timezone() function instead of a timezone variable. I don't think the code is co

Re: [Dovecot] Autocreate plugin for some domains

2009-10-13 Thread Timo Sirainen
On Tue, 2009-10-13 at 15:31 -0500, Jose Luis Marin Perez wrote: > #!/bin/bash > > DOMAIN=`echo $USER|sed s/^.*@//` > if [ "$DOMAIN" = "domain2.com" ]; then > export USERDB_AUTOCREATE=box1 > export USERDB_AUTOCREATE2=box2 > export EXTRA="USERDB_AUTOCREATE USERDB_AUTOCREATE2" > fi > > unset

Re: [Dovecot] v2.0.alpha1 released

2009-10-13 Thread Timo Sirainen
On Tue, 2009-10-13 at 21:38 +0100, Ed W wrote: > Something I had been pondering recently (I started using a cell phone > with imap idle support), was a previous poster mentioning the huge > increase in battery life from turning off the radio for as long as > possible. It appears that just turnin

Re: [Dovecot] Homedir for sieve/LDAP

2009-10-13 Thread Charles Marcus
On 10/13/2009, Edgar Fuß (e...@math.uni-bonn.de) wrote: > Regarding your response time, sometimes I'm convinced that ,,Timo > Sirainen'' is really a pseudonym for a group of some ten people > operating in 12-hour shifts, half of whose keep hacking on dovecot > around the clock while the other half

Re: [Dovecot] v2.0.alpha1 released

2009-10-13 Thread Ed W
Timo Sirainen wrote: + Redesigned master process. It's now more modular and there is less code running as root Hi, some really interesting stuff coming out of this. Looks cool! Something I had been pondering recently (I started using a cell phone with imap idle support), wa

Re: [Dovecot] Autocreate plugin for some domains

2009-10-13 Thread Jose Luis Marin Perez
Dear Timo, I am currently using the vchkpw-wrapper.sh script to register users connected to the server. So adding the configuration that tells me and would be as follows: #!/bin/bash DOMAIN=`echo $USER|sed s/^.*@//` if [ "$DOMAIN" = "domain2.com" ]; then export USERDB_AUTOCREATE=box1

Re: [Dovecot] Homedir for sieve/LDAP

2009-10-13 Thread Edgar Fuß
> See if this works: > > plugin { > home = /blah/%u > } YES! Thanks! Regarding your response time, sometimes I'm convinced that ,,Timo Sirainen'' is really a pseudonym for a group of some ten people operating in 12-hour shifts, half of whose keep hacking on dovecot around the clock while the

Re: [Dovecot] Homedir for sieve/LDAP

2009-10-13 Thread Timo Sirainen
On Tue, 2009-10-13 at 21:57 +0200, Edgar Fuß wrote: > Wouldn't it be much simpler to either > -- make sieve (optionally) put .dovecot.lda-dupes in sieve_dir > -- have a dovecot.conf home_dir parameter that, like mail_location, may be > overridden by userdb? See if this works: plugin { home = /

Re: [Dovecot] Autocreate plugin for some domains

2009-10-13 Thread Timo Sirainen
On Tue, 2009-10-13 at 15:58 -0400, Timo Sirainen wrote: > if [ "$DOMAIN" = "domain2.com" ]; then > export AUTOCREATE=box1 > export AUTOCREATE2=box2 > export EXTRA="AUTOCREATE AUTOCREATE2" Oh, actually: export USERDB_AUTOCREATE=box1 export USERDB_AUTOCREATE2=box2 export EXTRA="USERDB_AUTOCRE

Re: [Dovecot] Homedir for sieve/LDAP

2009-10-13 Thread Edgar Fuß
> If you're not giving -d parameter to deliver, it doesn't do userdb > lookup at all. Ouch! I seem to be not only blind, but stupid, too. Of course, what should it look up otherwise! However, I would still prefer an easier solution. I just want deliver/Sieve. Sieve wants .dovecot.lda-dupes, ther

Re: [Dovecot] Autocreate plugin for some domains

2009-10-13 Thread Timo Sirainen
On Tue, 2009-10-13 at 14:45 -0500, Jose Luis Marin Perez wrote: > Dear Timo, > > Thanks for your reply. > > In the case of having two domains, eg: > > dominio1.com > dominio2.com > > And I just want to use the plugin autocreate for dominio2.com, how could > configure vchkpw-wrapper.sh?

Re: [Dovecot] Autocreate plugin for some domains

2009-10-13 Thread Jose Luis Marin Perez
Dear Timo, Thanks for your reply. In the case of having two domains, eg: dominio1.com dominio2.com And I just want to use the plugin autocreate for dominio2.com, how could configure vchkpw-wrapper.sh? This would be the same logic if I want to use the plugin expires for certain doma

Re: [Dovecot] failing to deliver to one of multiple destinations

2009-10-13 Thread Edgar Fuß
> I will send you that information in private mail. OH NO! It seems to be entirely our fault. After spending about an hour excerpting, editing and commenting the mail log (Postfix->Dspam->Postfix->deliver/Sieve plus forward), and finally pasting the Sieve script, I noticed there seems to be an e

Re: [Dovecot] "multiple quota roots" complains

2009-10-13 Thread Kostik
Hello. Actually it is a problem for me. Introduction: If dovecot LDA save failed to mbox (not enough disk space, for example), it does not do rollback. Then my mailbox was corrupted. Last message is dropped in the middle of headers(body, attachments, etc). Same if I use file system quota, but do

[Dovecot] Dovecot lock problem

2009-10-13 Thread Simon Gao
Hi, We have a few users experiencing locking problem. When starting Thunderbird, there is no new emails in Inbox. Dovecot createa a lock file /var/spool/mail/.lock. It never completes openning Inbox. If closing the mail client, the open imap session does not get closed, nor the lock file get

Re: [Dovecot] failing to deliver to one of multiple destinations

2009-10-13 Thread Edgar Fuß
> No, when delivery fails entirely, the deliver binary should give an > appropriate exit code, indicating that the MTA needs to try again later > or bounce the message. OK, I would have expected that. > What do the Dovecot and MTA logs say? I will send you that information in private mail.

Re: [Dovecot] docs for anvil?

2009-10-13 Thread Timo Sirainen
On Tue, 2009-10-13 at 11:00 -0700, PGNet Dev wrote: > > I wasn't really planning on writing any docs for it. If you need to talk > > to it, the source code will tell you the protocol. :) There's nothing to > > configure in it beyond the normal service {} settings. > > How about just what it does?

Re: [Dovecot] docs for anvil?

2009-10-13 Thread PGNet Dev
On Tue, Oct 13, 2009 at 10:49 AM, Timo Sirainen wrote: > On Tue, 2009-10-13 at 10:27 -0700, PGNet Dev wrote: >> are there any docs for anvil config & usage in 2.0? > > I wasn't really planning on writing any docs for it. If you need to talk > to it, the source code will tell you the protocol. :) T

Re: [Dovecot] Autocreate plugin for some domains

2009-10-13 Thread Timo Sirainen
On Mon, 2009-10-12 at 15:48 -0500, Jose Luis Marin Perez wrote: > passdb: > driver: checkpassword > args: /usr/vpopmail/bin/vchkpw /usr/local/bin/vchkpw-wrapper.sh > userdb: > driver: prefetch > args: uid=89 gid=89 home=/usr/vpopmail/domains/%d/%u So basically you get the confi

Re: [Dovecot] Homedir for sieve/LDAP

2009-10-13 Thread Timo Sirainen
On Tue, 2009-10-13 at 15:25 +0200, Edgar Fuß wrote: > > .., =home=/import/mail/%u/home > Unfortunately, the whole thing doesn't work. > I'm using Postfix with mailbox_command set to dovecot's deliver. > Now, Postfix seems to use nss to get the user's home dir and passes > this to mailbox_command

Re: [Dovecot] Homedir for sieve/LDAP

2009-10-13 Thread Timo Sirainen
On Tue, 2009-10-13 at 12:44 +0200, Edgar Fuß wrote: > > .., =home=/import/mail/%u/home > Ah, using % Expansion works even if returned from an LDAP query? Great. > > Is this == form documented somewhere? I mean, > is it documented that the LDAP Attribute is allowed to be empty? Yeah. http://wiki.

Re: [Dovecot] Thunderbird saved searches, tags and Dovecot oddity

2009-10-13 Thread Timo Sirainen
On Tue, 2009-10-13 at 08:50 -0700, Michael Durket wrote: > 4) The next day (or the next time Thunderbird is started), all > the previously > tagged messages are back (in addition to newer ones). I guess you're using mbox format? Apparently there's some bug that sometimes doesn't w

Re: [Dovecot] docs for anvil?

2009-10-13 Thread Timo Sirainen
On Tue, 2009-10-13 at 10:27 -0700, PGNet Dev wrote: > are there any docs for anvil config & usage in 2.0? I wasn't really planning on writing any docs for it. If you need to talk to it, the source code will tell you the protocol. :) There's nothing to configure in it beyond the normal service {} s

Re: [Dovecot] docs for anvil?

2009-10-13 Thread Pascal Volk
On 10/13/2009 07:27 PM PGNet Dev wrote: > are there any docs for anvil config & usage in 2.0? > > afaict, nothing's mentioned in the wiki ... > The wiki is not yet 'v2.0-ready'. Anvil works in the background. Usage: $PREFIX/sbin/dovecot [starts also anvil] $PREFIX/sbin/dovecot stop [stops

[Dovecot] docs for anvil?

2009-10-13 Thread PGNet Dev
are there any docs for anvil config & usage in 2.0? afaict, nothing's mentioned in the wiki ... thx.

Re: [Dovecot] Capability info in hello message not complete?

2009-10-13 Thread Timo Sirainen
On Tue, 2009-10-13 at 17:26 +0200, Michal Hlavinka wrote: > would it be possible to: > a) send content of imap_capability in greeting message? It should be user's > responsibility if it's set to something "weird" I guess I could do this. > b) don't send capability in greeting message if imap_cap

Re: [Dovecot] failing to deliver to one of multiple destinations

2009-10-13 Thread Stephan Bosch
Edgar Fuß schreef: Is it defined whether, in case a message should be delivered to multiple destinations via a sieve script, and one of those destinations fail, then the whole delivery is to be considered as successful or not? My case: A sieve script forwarding to and external destinations plu

[Dovecot] Thunderbird saved searches, tags and Dovecot oddity

2009-10-13 Thread Michael Durket
In converting everyone at our site from UW-IMAP I've run into a problem with a few Thunderbird users and I'm wondering if anyone has some recommendations. We're running dovecot 1.0.13 (yes I know it's old but we don't upgrade production facilities that often). The affected Thunderbird users a

Re: [Dovecot] Capability info in hello message not complete?

2009-10-13 Thread Michal Hlavinka
On Tuesday 06 October 2009 15:35:20 Michal Hlavinka wrote: > On Thursday 01 October 2009 15:15:09 Timo Sirainen wrote: > > On Thu, 2009-10-01 at 14:59 +0200, Michal Hlavinka wrote: > > > Hi, > > > > > > one Fedora user complains about not some troubles after update to > > > dovecot 1.2. He suspects

Re: [Dovecot] v2.0.alpha1 released

2009-10-13 Thread Odhiambo Washington
On Tue, Oct 13, 2009 at 1:45 AM, Timo Sirainen wrote: > http://dovecot.org/releases/2.0/alpha/dovecot-2.0.alpha1.tar.gz > http://dovecot.org/releases/2.0/alpha/dovecot-2.0.alpha1.tar.gz.sig > > So here's the first alpha version of Dovecot v2.0. There are still a > couple of things left to do, but

Re: [Dovecot] backup using rsync

2009-10-13 Thread Robert Schetterer
to...@tuxteam.de schrieb: > On Fri, Oct 09, 2009 at 03:41:40PM +0200, Robert Schetterer wrote: > > [...] > >> i ll do backups with rsync on maildirs with courier >> ( which has also : in filenames ) > > Stupid question: with CIFS as target filesystem? no never, why should i do this, nfs , ssh e

[Dovecot] failing to deliver to one of multiple destinations

2009-10-13 Thread Edgar Fuß
Is it defined whether, in case a message should be delivered to multiple destinations via a sieve script, and one of those destinations fail, then the whole delivery is to be considered as successful or not? My case: A sieve script forwarding to and external destinations plus local keep. Th

Re: [Dovecot] Homedir for sieve/LDAP

2009-10-13 Thread Edgar Fuß
.., =home=/import/mail/%u/home Unfortunately, the whole thing doesn't work. I'm using Postfix with mailbox_command set to dovecot's deliver. Now, Postfix seems to use nss to get the user's home dir and passes this to mailbox_command as HOME. It looks like deliver prefers the environment variabl

[Dovecot] Userdb prefetch vpopmail and autocreate plugin

2009-10-13 Thread Jose Luis Marin Perez
Dear Sirs Yesterday consulted regarding autocreate plugin. Userdb is configured as prefetch and vpopmail. I need to configure the plugin autocreate for users of some domains that have hosted on the server. How can I configure it? Thanks Jose Luis dovecot -n # 1.1.16: /usr/local/et

Re: [Dovecot] backup using rsync

2009-10-13 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Oct 09, 2009 at 03:41:40PM +0200, Robert Schetterer wrote: [...] > i ll do backups with rsync on maildirs with courier > ( which has also : in filenames ) Stupid question: with CIFS as target filesystem? Because there are some chars which a

Re: [Dovecot] Domain wild card aliases

2009-10-13 Thread Pascal Volk
On 10/11/2009 05:42 PM Jerry wrote: > Using Postfix with Virtual Users/Virtual Domains, I have configured > it with a wild card entry; i.e., "*.mydomain.com" > > This works fine in Postfix; however, using Dovecot for delivery is > causing the message to bounce since Dovecot does not have an entry

[Dovecot] Error: NO Mailbox is locked

2009-10-13 Thread Giovanni Mancuso
Hi to all, i migrate an imap server from courier-imap to dovecot 1.1.13. After the migration i have often this error in imap communication: * NO Mailbox is locked, will abort in 122 seconds * NO Mailbox is locked, will abort in 92 seconds * NO Mailbox is locked, will abort in 62 seconds * NO Mail

Re: [Dovecot] Homedir for sieve/LDAP

2009-10-13 Thread Edgar Fuß
> .., =home=/import/mail/%u/home Ah, using % Expansion works even if returned from an LDAP query? Great. Is this == form documented somewhere? I mean, is it documented that the LDAP Attribute is allowed to be empty? Thanks.

Re: [Dovecot] Homedir for sieve/LDAP

2009-10-13 Thread Edgar Fuß
> It doesn't matter if Dovecot's home directories are different from the > users' primary home directories. It's probably even better if they're > different. Yes, I thought so. > http://wiki.dovecot.org/VirtualUsers#homedirs should apply to your use > case as well. Yes, I read that one. But I coul

[Dovecot] Panic: file sieve-cmu.c: line 262 (part_save): assertion failed: (buf->used - 1 == part->body_size.physical_size)

2009-10-13 Thread Raffael Schmid
Hi everybody We are running in the same issue as Maciej Polewczynski does in http://www.dovecot.org/list/dovecot/2008-September/033645.html Is there already a solution? I dont think so? In the TODO-File for 1.2.2 this issue is still reported: [...] - sieve-cmu.c crash: i_assert(buf->used -

Re: [Dovecot] Panic: file sieve-cmu.c: line 262 (part_save): assertion failed: (buf->used - 1 == part->body_size.physical_size)

2009-10-13 Thread Raffael Schmid
Hi Thomas Thomas Leuxner wrote: > you can not run into the same problem as the Dovecot 1.2 series has a > new Sieve implementation rewritten by Stephan Bosch. If there ought to > be a similar problem it is most likely fixed in a later release (1.2.6 > is current). Thank you for your answer but my

Re: [Dovecot] Panic: file sieve-cmu.c: line 262 (part_save): assertion failed: (buf->used - 1 == part->body_size.physical_size)

2009-10-13 Thread Thomas Leuxner
Am 13.10.2009 um 10:11 schrieb Raffael Schmid: Hi everybody We are running in the same issue as Maciej Polewczynski does in http://www.dovecot.org/list/dovecot/2008-September/033645.html Is there already a solution? I dont think so? In the TODO-File for 1.2.2 this issue is still reported: #

Re: [Dovecot] Panic: file sieve-cmu.c: line 262 (part_save): assertion failed: (buf->used - 1 == part->body_size.physical_size)

2009-10-13 Thread Stephan Bosch
Thomas Leuxner schreef: Am 13.10.2009 um 10:11 schrieb Raffael Schmid: you can not run into the same problem as the Dovecot 1.2 series has a new Sieve implementation rewritten by Stephan Bosch. If there ought to be a similar problem it is most likely fixed in a later release (1.2.6 is current