[Dovecot-news] v2.0.15 released

2011-09-16 Thread Timo Sirainen
http://dovecot.org/releases/2.0/dovecot-2.0.15.tar.gz
http://dovecot.org/releases/2.0/dovecot-2.0.15.tar.gz.sig

+ doveadm altmove: Added -r parameter to move mails back to primary
  storage.
- v2.0.14: Index reading could have eaten a lot of memory in some
  situations
- doveadm index no longer affects future caching decisions
- mbox: Fixed crash during mail delivery when mailbox didn't yet have
  GUID assigned to it.
- zlib+mbox: Fetching last message from compressed mailboxes crashed.
- lib-sql: Fixed load balancing and error handling when multiple hosts
  are used.


___
Dovecot-news mailing list
Dovecot-news@dovecot.org
http://dovecot.org/cgi-bin/mailman/listinfo/dovecot-news


[Dovecot-news] v2.1.alpha2 released

2011-09-16 Thread Timo Sirainen
http://dovecot.org/releases/2.1/alpha/dovecot-2.1.alpha2.tar.gz
http://dovecot.org/releases/2.1/alpha/dovecot-2.1.alpha2.tar.gz.sig

This is actually looking rather stable. I'm still calling it alpha in
case I think of doing some more API changes, but I think the next one
will be called beta1, hopefully soon followed by rc1.

 - Statistics gathering improvements (more fields) and fixes.
 - Lots of imapc fixes and improvements
 - Fixes to handling shared namespaces
 - Several other fixes


___
Dovecot-news mailing list
Dovecot-news@dovecot.org
http://dovecot.org/cgi-bin/mailman/listinfo/dovecot-news


[Dovecot] Deleted mailboxes with lazy_expunge

2011-09-16 Thread Angel L. Mateo

Hello,

	I'm trying to configure lazy_expunge plugin (as a way to provide easy 
backup for mails). This is my configuration (as explained in dovecot wiki):


# Default namespace
namespace {
prefix =
separator = /
inbox = yes
}

# namespaces for lazy_expunge plugin:
namespace {
  prefix = .EXPUNGED/
  separator = /
  location = maildir:~/Maildir/expunged
}
namespace {
  prefix = .DELETED/
  separator = /
  location = maildir:~/Maildir/deleted
}
namespace {
  prefix = .DELETED/.EXPUNGED/
  separator = /
  location = maildir:~/Maildir/deleted/expunged


lazy_expunge = .EXPUNGED/ .DELETED/ .DELETED/.EXPUNGED/

	I use just one namespace because I don't want to differentiate between 
deleting mails or deleting mailboxes, but I have the same problem using 
the 3 namespaces.


	With this configuration, when a user connects, if he doesn't have the 
expunged folder, dovecot logs:


Sep 16 10:53:35 myotis30 dovecot: imap(angel.luis): Debug: Namespace : 
type=private, prefix=.EXPUNGED/, sep=/, inbox=no, hidden=no, list=yes, 
subscriptions=yes location=maildir:~/Maildir/expunged
Sep 16 10:53:35 myotis30 dovecot: imap(angel.luis): Debug: maildir++: 
root=/home/alumnos/46/113246/Maildir/expunged, index=, control=, inbox=
Sep 16 10:53:35 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.EXPUNGED/: Permission lookup failed from 
/home/alumnos/46/113246/Maildir/expunged
Sep 16 10:53:35 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.EXPUNGED/: Using permissions from 
/home/alumnos/46/113246/Maildir/expunged: mode=0700 gid=-1


	and the expunged folder is created (without the cur, new neither tmp 
folders).


When I delete a message in the INBOX folder (for example), dovecot logs:

Sep 16 10:57:19 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.EXPUNGED/: Permission lookup failed from 
/home/alumnos/46/113246/Maildir/expunged/.INBOX
Sep 16 10:57:19 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.EXPUNGED/: Using permissions from 
/home/alumnos/46/113246/Maildir/expunged: mode=0700 gid=-1
Sep 16 10:57:19 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.EXPUNGED/: Permission lookup failed from 
/home/alumnos/46/113246/Maildir/expunged/.INBOX
Sep 16 10:57:19 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.EXPUNGED/: Using permissions from 
/home/alumnos/46/113246/Maildir/expunged: mode=0700 gid=-1


	and the message is stored in the expunge namespace (that is an imap 
INBOX folder is created in the namespace, with its cur, new and tmp, and 
the message is stored).


	But when I try to delete a whole imap folder (in the example I delete 
it from trash folder because I use thunderbird and it previously move 
the folder to trash), dovecot logs:


Sep 16 11:45:46 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.DELETED/: Using permissions from 
/home/alumnos/46/113246/Maildir/deleted: mode=0700 gid=-1
Sep 16 11:45:46 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.DELETED/: Permission lookup failed from 
/home/alumnos/46/113246/Maildir/deleted/.Trash.kk-20110916-114546
Sep 16 11:45:46 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.DELETED/: Using permissions from 
/home/alumnos/46/113246/Maildir/deleted: mode=0700 gid=-1
Sep 16 11:45:46 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.DELETED/: Permission lookup failed from 
/home/alumnos/46/113246/Maildir/deleted/.Trash.kk-20110916-114546
Sep 16 11:45:46 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.DELETED/: Using permissions from 
/home/alumnos/46/113246/Maildir/deleted: mode=0700 gid=-1


	and my mail client reports the error [CANNOT] Can't rename mailboxes 
accross specified storages and the mail folder isn't created in the 
DELETED namespace.


Any idea?

--
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información   _o)
y las Comunicaciones Aplicadas (ATICA)  / \\
http://www.um.es/atica_(___V
Tfo: 868887590
Fax: 86337


Re: [Dovecot] Deleted mailboxes with lazy_expunge

2011-09-16 Thread Timo Sirainen
On Fri, 2011-09-16 at 11:51 +0200, Angel L. Mateo wrote:
 Hello,
 
   I'm trying to configure lazy_expunge plugin (as a way to provide easy 
 backup for mails). This is my configuration (as explained in dovecot wiki):

dovecot -n output would have been better. What do you use as
mail_location? My guess is that you have specified INDEX or CONTROL path
there, which isn't currently compatible with this..

 # Default namespace
 namespace {
  prefix =
  separator = /
  inbox = yes
 }
 
 # namespaces for lazy_expunge plugin:
 namespace {
prefix = .EXPUNGED/
separator = /
location = maildir:~/Maildir/expunged
 }
 namespace {
prefix = .DELETED/
separator = /
location = maildir:~/Maildir/deleted
 }
 namespace {
prefix = .DELETED/.EXPUNGED/
separator = /
location = maildir:~/Maildir/deleted/expunged
 
 
 lazy_expunge = .EXPUNGED/ .DELETED/ .DELETED/.EXPUNGED/
 
   I use just one namespace because I don't want to differentiate between 
 deleting mails or deleting mailboxes, but I have the same problem using 
 the 3 namespaces.

In above config you're using 3 namespaces, not 1. This problem shouldn't
exist if you use just one namespace.

   and my mail client reports the error [CANNOT] Can't rename mailboxes 
 accross specified storages and the mail folder isn't created in the 
 DELETED namespace.

With http://hg.dovecot.org/dovecot-2.0/rev/e57bd3e2ec27 it'll now log
the reason why it's not possible.



Re: [Dovecot] Deleted mailboxes with lazy_expunge

2011-09-16 Thread Angel L. Mateo

El 16/09/11 12:08, Timo Sirainen escribió:

On Fri, 2011-09-16 at 11:51 +0200, Angel L. Mateo wrote:

Hello,

I'm trying to configure lazy_expunge plugin (as a way to provide easy
backup for mails). This is my configuration (as explained in dovecot wiki):


dovecot -n output would have been better. What do you use as


Yes, I know but I forgot it :-(. You have now the config.


mail_location? My guess is that you have specified INDEX or CONTROL path
there, which isn't currently compatible with this..


Yes, I'm using INDEX in mail_location


I use just one namespace because I don't want to differentiate between
deleting mails or deleting mailboxes, but I have the same problem using
the 3 namespaces.


In above config you're using 3 namespaces, not 1. This problem shouldn't
exist if you use just one namespace.


I have tried with both configurations with the same problem.

	I have made another test, this time with 1 namespace and with 
thunderbird directly expunging messages (to avoid moving them to trash 
and then purging trash). With this, dovecot logs:


Sep 16 12:26:48 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.EXPUNGED/: Using permissions from 
/home/alumnos/46/113246/Maildir/expunged: mode=0700 gid=-1
Sep 16 12:26:48 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.EXPUNGED/: Permission lookup failed from 
/home/alumnos/46/113246/Maildir/expunged/.kk
Sep 16 12:26:48 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.EXPUNGED/: Using permissions from 
/home/alumnos/46/113246/Maildir/expunged: mode=0700 gid=-1
Sep 16 12:26:48 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.EXPUNGED/: Permission lookup failed from 
/home/alumnos/46/113246/Maildir/expunged/.kk
Sep 16 12:26:48 myotis30 dovecot: imap(angel.luis): Debug: Namespace 
.EXPUNGED/: Using permissions from 
/home/alumnos/46/113246/Maildir/expunged: mode=0700 gid=-1


but kk mail folder isn't created in the expunge namespace.



and my mail client reports the error [CANNOT] Can't rename mailboxes
accross specified storages and the mail folder isn't created in the
DELETED namespace.


With http://hg.dovecot.org/dovecot-2.0/rev/e57bd3e2ec27 it'll now log
the reason why it's not possible.


I'm going to try it...


--
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información   _o)
y las Comunicaciones Aplicadas (ATICA)  / \\
http://www.um.es/atica_(___V
Tfo: 868887590
Fax: 86337
# 2.0.13: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-4-amd64 x86_64 Ubuntu 10.04.3 LTS 
auth_cache_size = 1 k
auth_cache_ttl = 58 mins
auth_debug = yes
auth_master_user_separator = *
auth_verbose = yes
default_process_limit = 1000
disable_plaintext_auth = no
dotlock_use_excl = no
hostname = myotis30
log_timestamp = %Y-%m-%d %H:%M:%S
mail_debug = yes
mail_fsync = always
mail_location = maildir:~/Maildir:INDEX=/var/indexes/%n
mail_nfs_storage = yes
mail_plugins = lazy_expunge
mail_privileged_group = mail
maildir_stat_dirs = yes
mdbox_rotate_size = 20 M
namespace {
  inbox = yes
  location = 
  prefix = 
  separator = /
}
namespace {
  location = maildir:~/Maildir/expunged
  prefix = .EXPUNGED/
  separator = /
}
namespace {
  location = maildir:~/Maildir/deleted
  prefix = .DELETED/
  separator = /
}
namespace {
  location = maildir:~/Maildir/deleted/expunged
  prefix = .DELETED/.EXPUNGED/
  separator = /
}
passdb {
  args = /etc/dovecot/master-users
  driver = passwd-file
  master = yes
  pass = yes
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
passdb {
  args = session=yes dovecot
  driver = pam
}
plugin {
  autocreate = Sent
  autocreate2 = Trash
  autocreate3 = Drafts
  autocreate4 = SPAM
  lazy_expunge = .EXPUNGED/ .DELETED/ .DELETED/.EXPUNGED/
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
  sieve_max_redirects = 15
  zlib_save = gz
  zlib_save_level = 6
}
postmaster_address = postmas...@um.es
protocols =  imap lmtp pop3
service auth {
  unix_listener auth-userdb {
mode = 0666
  }
}
service lmtp {
  inet_listener lmtp {
port = 24
  }
  process_min_avail = 10
}
ssl = no
ssl_cert = /etc/ssl/certs/dovecot.pem
ssl_key = /etc/ssl/private/dovecot.pem
userdb {
  driver = prefetch
}
userdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
protocol lmtp {
  mail_plugins = lazy_expunge sieve
}
protocol lda {
  mail_plugins = lazy_expunge sieve
}
protocol imap {
  mail_plugins = lazy_expunge autocreate
}


[Dovecot] Plugins: virtuals vs acls

2011-09-16 Thread Leho Kraav

Hi all

dovecot-virtual:
*
  all

when dovecot-acl files restrict some subset of * for a user, does 
dovecot respect these ACLs when collecting messages for virtual folder? 
I'd like a confirmation about what I should be seeing when I start 
implementing this setup.


Re: [Dovecot] unexpected LSUB / LIST (SUBSCRIBED) output Re: Panic: file mailbox-list-subscriptions.c: line 66 (mailbox_list_subscription_fill_one): assertion failed: (ns!= NULL (ns-flags NAMESP

2011-09-16 Thread Timo Sirainen
On Thu, 2011-09-15 at 17:15 +0200, Lutz Preßler wrote:
 0 lsub  *
 * LSUB (\Noselect) . INBOX.shared.user1
 0 OK Lsub completed.
 0 list (subscribed)  *
 * LIST (\NonExistent) . INBOX.shared.user1
 0 OK List completed.

These shouldn't be here.

 0 lsub  *
 * LSUB (\Noselect) . INBOX.shared.user1

The above entry shouldn't be here.

 * LSUB () . INBOX.shared.user1.in2007
 0 OK Lsub completed.
 0 list (subscribed)  *
 * LIST (\NonExistent) . INBOX.shared.user1
 * LIST (\Subscribed) . INBOX.shared.user1.in2007
 0 OK List completed.
 
  ~testuser/Maildir/subscription now contains shared.user1.in2007
 
 Is this INBOX.shared.user1 LSUB/LIST output correct?

http://hg.dovecot.org/dovecot-2.1/rev/080c8f9521d2 should fix these and
other related problems.



Re: [Dovecot] Plugins: virtuals vs acls

2011-09-16 Thread Timo Sirainen
On Fri, 2011-09-16 at 14:48 +0300, Leho Kraav wrote:

 dovecot-virtual:
 *
all
 
 when dovecot-acl files restrict some subset of * for a user, does 
 dovecot respect these ACLs when collecting messages for virtual folder? 

If they aren't respected, it's a bug.




Re: [Dovecot] Detecting duplicate messages with sieve

2011-09-16 Thread Timo Sirainen
On Fri, 2011-09-16 at 00:02 +0200, Aleksandar Lazic wrote:

 Detecting duplicate messages
..
 Is there a similar feature in sieve 

No.

 or can I still use the upper setup?

I think so.

 Another question is about to add this header line in every mail.
 
 xfilter ${REFORMAIL} -a\Lines: $LINES\

What do you need it for? But nope, I don't think there's a way to do
that with Sieve either. There's an extension to add headers, but it's
not implemented yet. And I don't think there's a way to get the number
of header lines.




Re: [Dovecot] [PATCH] SCRAM-SHA-1 authentication

2011-09-16 Thread Timo Sirainen
On Fri, 2011-09-16 at 02:47 +0200, Florian Zeitz wrote:

 over the last days I have implemented SCRAM-SHA-1 in Dovecot's 2.1
 branch. It does not do SCRAM-SHA-1-PLUS, but should be extendable enough
 to introduce it later.

Looks pretty good. Below are a few things I noticed. I could fix these
myself next week also, or you can do them during weekend if you want
to. :)

 I also note that there are a lot of fields in the scram_auth_request
 struct. I think they are all there for a reason, however feel free to
 prove me wrong.

The username wouldn't necessarily have to be there. Also its name was
confusing me for a while since I thought you were setting
auth_request-user directly.

 + snonce[i] = (snonce[i] % ('~' - '!')) + '!';
 + if (snonce[i] == ',')
 + snonce[i] = '.';

Here '~' is actually never used. But a nice solution would be to simply
replace ',' with '~' so '.' isn't more likely to occur than others.

 + fields = t_strsplit((const char*)data, ,);

Not safe. data isn't guaranteed to be NUL-terminated. One simple
solution would be: t_strsplit(t_strndup(data, size), ,)

And others:

 - Could be nicer if client-proof was stored base64-decoded, so its
validity could be checked and also later there wouldn't be need to
base64-encode signature when testing it.

 - There's no log message is authentication fails due to wrong password?

 - Doesn't verify_credentials() need to check the credentials in any way
that it contains expected (sized) data? Anything is allowed?



Re: [Dovecot] sharing of non-INBOX namespaces? Re: imapc and imap_acl

2011-09-16 Thread Timo Sirainen
On Thu, 2011-09-15 at 13:41 +0200, Lutz Preßler wrote:

  If you want to access also ~/Maildir2, you'd need to create a
  second shared namespace for it.
 Maybe I mess something up the second time today - but I cannot get
 it to work:

Yeah, it didn't work. Fixed now in hg.




Re: [Dovecot] Dsync Permissions Issue

2011-09-16 Thread Timo Sirainen
On Wed, 2011-09-14 at 09:04 -0700, Asai wrote:

 [root@triata ~]# dsync -v -u a...@globalchangemusic.org backup ssh 
 -p2 vm...@xx.xxx.xx.xxx dsync -u a...@globalchangemusic.org
 vm...@xx.xxx.xx.xxx's password:
 dsync(vmail): Error: userdb lookup: 
 connect(/var/run/dovecot/auth-userdb) failed: Permission denied 
 (euid=1001(vmail) egid=1001(vmail) missing +r perm: 
 /var/run/dovecot/auth-userdb, euid is not dir owner)
..
 service auth {
unix_listener auth-userdb {
  group = vmail
  mode = 0666
  user = vmail
}
user = root
 }

So clearly you've given more than necessary permissions in here. 0600
with user=vmail should be enough. But the permission problem isn't on
the server where you ran this doveconf -n. The problem is on your
remote server's Dovecot config.

BTW:

unix_listener auth-master {
  group = vmail
  mode = 0660
  user = vmail
}

There's no reason to change this from defaults.



Re: [Dovecot] Waiting for authentication process to respond for invalid users with auth_dovecot

2011-09-16 Thread Timo Sirainen
On Tue, 2011-09-13 at 13:53 +0300, Ibrahim Harrani wrote:

 I am testing dovecot 2.0.13 and 2.0.14 with qmail-ldap and
 auth_dovecot patch. If i login to dovecot (pop3/imap) with correct
 user and password.
 no problem, I can login immediately. but if I try with nonexistant
 user, dovecot does not immediate answer, wait for a while and says
 Waiting for authentication process to respond.
 auth_dovecot process remains working in the background.
 How can I avoid this situation?

If auth_dovecot process keeps running, the bug is in auth_dovecot. I've
never looked at it (or probably even heard of it).




Re: [Dovecot] convert maildrop filter to sieve

2011-09-16 Thread Micah Anderson
Aleksandar Lazic al-dove...@none.at writes:

 Dear list member,

 does anybody have a script which can convert maildrop filter to sive
 filter?

I would also like this, but I'm afraid it may be too complicated due to
the different possibilities. Moving to sieve from maildrop would be
great, but in practice quite difficult to do when you have a large
number of people with customized mailfilters.

micah



[Dovecot] v2.0.15 released

2011-09-16 Thread Timo Sirainen
http://dovecot.org/releases/2.0/dovecot-2.0.15.tar.gz
http://dovecot.org/releases/2.0/dovecot-2.0.15.tar.gz.sig

+ doveadm altmove: Added -r parameter to move mails back to primary
  storage.
- v2.0.14: Index reading could have eaten a lot of memory in some
  situations
- doveadm index no longer affects future caching decisions
- mbox: Fixed crash during mail delivery when mailbox didn't yet have
  GUID assigned to it.
- zlib+mbox: Fetching last message from compressed mailboxes crashed.
- lib-sql: Fixed load balancing and error handling when multiple hosts
  are used.




[Dovecot] v2.1.alpha2 released

2011-09-16 Thread Timo Sirainen
http://dovecot.org/releases/2.1/alpha/dovecot-2.1.alpha2.tar.gz
http://dovecot.org/releases/2.1/alpha/dovecot-2.1.alpha2.tar.gz.sig

This is actually looking rather stable. I'm still calling it alpha in
case I think of doing some more API changes, but I think the next one
will be called beta1, hopefully soon followed by rc1.

 - Statistics gathering improvements (more fields) and fixes.
 - Lots of imapc fixes and improvements
 - Fixes to handling shared namespaces
 - Several other fixes




Re: [Dovecot] Dsync Permissions Issue

2011-09-16 Thread Asai
Thank you for your assistance, I have changed permissions on the remote 
server and all is well.



On 9/16/2011 6:09 AM, Timo Sirainen wrote:

On Wed, 2011-09-14 at 09:04 -0700, Asai wrote:


[root@triata ~]# dsync -v -u a...@globalchangemusic.org backup ssh
-p2 vm...@xx.xxx.xx.xxx dsync -u a...@globalchangemusic.org
vm...@xx.xxx.xx.xxx's password:
dsync(vmail): Error: userdb lookup:
connect(/var/run/dovecot/auth-userdb) failed: Permission denied
(euid=1001(vmail) egid=1001(vmail) missing +r perm:
/var/run/dovecot/auth-userdb, euid is not dir owner)

..

service auth {
unix_listener auth-userdb {
  group = vmail
  mode = 0666
  user = vmail
}
user = root
}

So clearly you've given more than necessary permissions in here. 0600
with user=vmail should be enough. But the permission problem isn't on
the server where you ran this doveconf -n. The problem is on your
remote server's Dovecot config.

BTW:


unix_listener auth-master {
  group = vmail
  mode = 0660
  user = vmail
}

There's no reason to change this from defaults.



Re: [Dovecot] v2.0.15 released

2011-09-16 Thread Simon Brereton
-Original Message-
From: dovecot-boun...@dovecot.org [mailto:dovecot-boun...@dovecot.org] On 
Behalf Of Timo Sirainen

http://dovecot.org/releases/2.0/dovecot-2.0.15.tar.gz
http://dovecot.org/releases/2.0/dovecot-2.0.15.tar.gz.sig

+ doveadm altmove: Added -r parameter to move mails back to primary
  storage.
- v2.0.14: Index reading could have eaten a lot of memory in some
  situations
- doveadm index no longer affects future caching decisions
- mbox: Fixed crash during mail delivery when mailbox didn't yet have
  GUID assigned to it.
- zlib+mbox: Fetching last message from compressed mailboxes crashed.
- lib-sql: Fixed load balancing and error handling when multiple hosts
  are used.


---

I'll bite..  But it's probably not your concern.  When will we be able to get 
stable 2.x packages for Debian?  Apt installs 1.2.15-7

Thanks.

Simon
(Sorry about breaking the quotes)



Re: [Dovecot] v2.1.alpha2 released

2011-09-16 Thread Odhiambo Washington
On Fri, Sep 16, 2011 at 17:11, Timo Sirainen t...@iki.fi wrote:

 http://dovecot.org/releases/2.1/alpha/dovecot-2.1.alpha2.tar.gz
 http://dovecot.org/releases/2.1/alpha/dovecot-2.1.alpha2.tar.gz.sig

 This is actually looking rather stable. I'm still calling it alpha in
 case I think of doing some more API changes, but I think the next one
 will be called beta1, hopefully soon followed by rc1.

  - Statistics gathering improvements (more fields) and fixes.
  - Lots of imapc fixes and improvements
  - Fixes to handling shared namespaces
  - Several other fixes



I am trying to compile on FreeBSD 8.2-STABLE with the following options:

#!/bin/sh
./configure \
--prefix=/opt/dovecot2.1 \
--with-ioloop=kqueue \
--with-notify=kqueue \
--with-sql=yes \
--with-mysql \
--with-zlib \
--with-bzlib \
--with-ssl=openssl \
--with-storages=maildir mdbox sdbox cydir

And I get a failure, viz:

jaribu# make
make  all-recursive
Making all in .
/bin/bash ./update-version.sh . .
Making all in src
Making all in lib-test
Making all in lib
make  all-am
Making all in lib-auth
Making all in lib-charset
Making all in lib-dns
Making all in lib-fs
Making all in lib-mail
Making all in lib-imap
Making all in lib-master
Making all in lib-dict
Making all in lib-settings
Making all in lib-ssl-iostream
/bin/bash ../../libtool --tag=CC--mode=link gcc  -std=gnu99 -g -O2 -Wall
-W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2
 -export-dynamic -Wl,--as-needed -Wl,--no-undefined -o
libdovecot-ssl.la-rpath /opt/dovecot2.1/lib/dovecot
libssl_iostream.la ../lib/liblib.la -export-dynamic -lrt
libtool: link: gcc -shared  -fPIC -DPIC  -Wl,--whole-archive
./.libs/libssl_iostream.a ../lib/.libs/liblib.a -Wl,--no-whole-archive
 -lssl -lcrypto -lrt  -O2 -Wl,--as-needed -Wl,--no-undefined   -Wl,-soname
-Wl,libdovecot-ssl.so.0 -o .libs/libdovecot-ssl.so.0
../lib/.libs/liblib.a(env-util.o)(.text+0x31): In function
`env_get_environ_p':
/usr/home/wash/Tools/Dovecot/dovecot-2.1.alpha2/src/lib/env-util.c:148:
undefined reference to `environ'
../lib/.libs/liblib.a(env-util.o)(.text+0x1f8): In function `env_clean':
/usr/home/wash/Tools/Dovecot/dovecot-2.1.alpha2/src/lib/env-util.c:71:
undefined reference to `environ'
*** Error code 1

Stop in
/usr/home/wash/Tools/Dovecot/dovecot-2.1.alpha2/src/lib-ssl-iostream.
*** Error code 1

Stop in /usr/home/wash/Tools/Dovecot/dovecot-2.1.alpha2/src.
*** Error code 1

Stop in /usr/home/wash/Tools/Dovecot/dovecot-2.1.alpha2.
*** Error code 1

Stop in /usr/home/wash/Tools/Dovecot/dovecot-2.1.alpha2.



-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
I can't hear you -- I'm using the scrambler.
Please consider the environment before printing this email.
image001.png

Re: [Dovecot] v2.0.15 released

2011-09-16 Thread Odhiambo Washington
I think someone else is responsible for the Debianization of Dovecot, not
Timo.


On Fri, Sep 16, 2011 at 19:05, Simon Brereton simon.brere...@buongiorno.com
 wrote:

 -Original Message-
 From: dovecot-boun...@dovecot.org [mailto:dovecot-boun...@dovecot.org] On
 Behalf Of Timo Sirainen

 http://dovecot.org/releases/2.0/dovecot-2.0.15.tar.gz
 http://dovecot.org/releases/2.0/dovecot-2.0.15.tar.gz.sig

+ doveadm altmove: Added -r parameter to move mails back to primary
  storage.
- v2.0.14: Index reading could have eaten a lot of memory in some
  situations
- doveadm index no longer affects future caching decisions
- mbox: Fixed crash during mail delivery when mailbox didn't yet
 have
  GUID assigned to it.
- zlib+mbox: Fetching last message from compressed mailboxes
 crashed.
- lib-sql: Fixed load balancing and error handling when multiple
 hosts
  are used.


 ---

 I'll bite..  But it's probably not your concern.  When will we be able to
 get stable 2.x packages for Debian?  Apt installs 1.2.15-7

 Thanks.

 Simon
 (Sorry about breaking the quotes)




-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
I can't hear you -- I'm using the scrambler.
Please consider the environment before printing this email.
image001.png

Re: [Dovecot] v2.0.15 released

2011-09-16 Thread Eduardo M KALINOWSKI

On Sex, 16 Set 2011, Simon Brereton wrote:
I'll bite..  But it's probably not your concern.  When will we be  
able to get stable 2.x packages for Debian?  Apt installs 1.2.15-7


In Debian stable? Only when the next stable version (wheezy) is  
released. Not in squeeze. Though perhaps a backport might appear.



--
Colors may fade in time.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br




[Dovecot] outlook 2007 very slow.

2011-09-16 Thread Kui Zhang
Hello

I have a user with 2500+ sub folders. Total mailboxes size is around
6G. (mdbox, dovecot 2:2.0.14)

Syncing/Receiving appears to be slow, with outlook 2007. He does not
want to switch to an alternative, due to various reasons.

I did not find any error logs indicate issues.

during idle, imap process appears to loop at adding inotify watches to
all folders.

I found outlook-idle in wiki, but it is obsolete.

doveconf: Warning: Obsolete setting in
/etc/dovecot/conf.d/20-imap.conf:55:
imap_client_workarounds=outlook-idle is no longer necessary


Any one else having similar issue?
Anything else I should do to narrow down the issue?


Thanks
KuiZ


Re: [Dovecot] v2.0.15 released

2011-09-16 Thread Robert Schetterer
Am 16.09.2011 18:20, schrieb Eduardo M KALINOWSKI:
 On Sex, 16 Set 2011, Simon Brereton wrote:
 I'll bite..  But it's probably not your concern.  When will we be able
 to get stable 2.x packages for Debian?  Apt installs 1.2.15-7
 
 In Debian stable? Only when the next stable version (wheezy) is
 released. Not in squeeze. Though perhaps a backport might appear.
 
 

http://xi.rename-it.nl/debian
has a up2date repository
-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


Re: [Dovecot] sharing of non-INBOX namespaces? Re: imapc and imap_acl

2011-09-16 Thread Lutz Preßler
Timo,

On Fri, 16 Sep 2011, Timo Sirainen wrote:

 On Thu, 2011-09-15 at 13:41 +0200, Lutz Preßler wrote:
 
   If you want to access also ~/Maildir2, you'd need to create a
   second shared namespace for it.
  Maybe I mess something up the second time today - but I cannot get
  it to work:
 
 Yeah, it didn't work. Fixed now in hg.
multiple shared namespaces do work now, but:
I retried to have in otherssecond
  prefix = INBOX.shared.%%u.second.
  location = maildir:%%h/Maildir2:INDEX=~/Maildir/shared/%%u/second
This is found to be a configuration error:
Sep 16 20:49:32 host dovecot: imap(5025, testuser): Error: user lpmail: 
Initialization failed: namespace configuration error: Dupl
icate namespace prefix: INBOX.shared.
Sep 16 20:49:32 host dovecot: imap(5025, testuser): Error: Invalid user 
settings. Refer to server log for more information.

I think the test is too strict, as in general prefix = bla.%%u.blubb. does
work for a shared namespace. Or is there some other problem with this
attempt to manually map source to destination structure?

Btw, I found a SIGSEGV when SELECTing INBOX.shared. I'll send it seperately.

Have a nice weekend,
  Lutz


Re: [Dovecot] imapc and imap_acl

2011-09-16 Thread Lutz Preßler
On Tue, 13 Sep 2011, Lutz Preßler wrote:

 On Di, 13 Sep 2011, Timo Sirainen wrote:
  You mean you'd want local ACLs that apply to imapc mailboxes?
 Yes, exactly. Great for integrating legacy IMAP servers without e.g.
 ACL support.
... but as long as imapc parameters are global that's of no real use, I just
realized...
  I think that should work. For example if you set:
  
  mail_location = imapc:~/imapc
  Then for mailbox foo/bar the ACL file should be in 
  ~/imapc/.foo.bar/dovecot-acl
 It almost works:
 Sep 13 18:37:58 hhh dovecot: imap(4482, uuu): Error: 
 file_dotlock_open(/home/uuu/Maildir/gmail/.[Gmail].Alle Nachrichten
 /dovecot-acl) failed: No such file or directory
 After manually creating the .[Gmail].Alle Nachrichten directory, SETACL
 succeeds.
... so this does not really matter yet.

Lutz


Re: [Dovecot] v2.1.alpha2 released

2011-09-16 Thread Timo Sirainen
On 16.9.2011, at 19.08, Odhiambo Washington wrote:

 /usr/home/wash/Tools/Dovecot/dovecot-2.1.alpha2/src/lib/env-util.c:148:
 undefined reference to `environ'

Hmm. I suppose it works if you remove this line from configure:

  NOPLUGIN_LDFLAGS=-Wl,--as-needed -Wl,--no-undefined

and then re-configure + make. I wonder what's the difference to Linux..



Re: [Dovecot] v2.0.15 released

2011-09-16 Thread Stephan Bosch

Op 16-9-2011 20:47, Robert Schetterer schreef:
http://xi.rename-it.nl/debian has a up2date repository 


Yes, extremely up-to-date. So, just don't forget to mention that this 
repository is not for production setups.


Regards,

Stephan.


Re: [Dovecot] Sieve envelope :detail to extention does not deliver to fileinto destination

2011-09-16 Thread Stephan Bosch

Hi Aleksandar,

Op 15-9-2011 21:13, Aleksandar Lazic schreef:

Dear Stephan,

[...]
debug_log envelope to `${1}';
debug_log envelope to detail `${detail}'; = is this a default
   variable?


Eh, no.


I get
===
sieve: info: started log at Sep 15 21:07:07.
lists.sieve: line 15: info: DEBUG: envelope to `al-pdnsus...@none.at'.
lists.sieve: line 16: info: DEBUG: envelope to detail `'.
info: msgid=20110915190707.256ed9fec...@external.none.at: stored mail
into mailbox 'Lists.pdnsusers'.
===

Is there a possibility to print the :detail from the subaddress module?
Maybe like

Pseudocode:
===
set detail :detail if :detail not empty
===


Let's just print all relevant stuff:

===
require vnd.dovecot.debug;
require envelope;
require variables;
require subaddress;

if envelope :matches to * { debug_log envelope to `${1}'; }
if envelope :localpart :matches to * { debug_log envelope to; 
localpart `${1}'; }
if envelope :user :matches to * { debug_log envelope to; user 
`${1}'; }


/* This will print nothing if there is no detail */
if envelope :detail :matches to * { debug_log envelope to; detail 
`${1}'; }

===

Yielding, e.g.:

===
main_script: line 6: info: DEBUG: envelope to `stephan-f...@rename-it.nl'.
main_script: line 7: info: DEBUG: envelope to; localpart `stephan-frop'.
main_script: line 8: info: DEBUG: envelope to; user `stephan'.
main_script: line 9: info: DEBUG: envelope to; detail `frop'.
info: msgid=unspecified: stored mail into mailbox 'INBOX'.
===


Is there a possibility to dump all variables?
Are there any default variables in variables module?


There are no variables defined other than those that you define (using 
the set command or implicitly for match values).




What does I make wrong that I haven't the :detail from the subaddress?!


My guess is that you need to add the recipient_delimiter setting to the 
plugin section also:


plugin {
recipient_delimiter = -
}

Matbe this should be unified somehow.

Regards,

Stephan.


Re: [Dovecot] Sieve envelope :detail to extention does not deliver to fileinto destination

2011-09-16 Thread Stephan Bosch

Op 16-9-2011 23:35, Stephan Bosch schreef:


My guess is that you need to add the recipient_delimiter setting to 
the plugin section also:


plugin {
recipient_delimiter = -
}

Matbe this should be unified somehow.



This should be fixed in hg now.

Regards,

Stephan.


Re: [Dovecot] mysql auth failover failing

2011-09-16 Thread Paul B. Henson

On 9/16/2011 2:21 AM, Timo Sirainen wrote:


As far as I can tell, it still doesn't do load balancing.


Oh. http://hg.dovecot.org/dovecot-2.0/rev/327698228158 should finally
fix it. :)


I installed the new 2.0.15 release including this change, and can 
confirm it does now successfully load balance across my two servers. Not 
only that, but with this change, there are no failed authentications at 
all when one of the servers goes away :). I have it running on one of my 
three production mail servers now, and barring any unexpected issues 
will deploy it on the other two next week, and then we'll be sitting 
pretty ;).


Thanks again...


--
Paul B. Henson  |  (909) 979-6361  |  http://www.csupomona.edu/~henson/
Operating Systems and Network Analyst  |  hen...@csupomona.edu
California State Polytechnic University  |  Pomona CA 91768