Re: [Dovecot] migration dove 2.0 2.1 shared namespace acl broken / shared/%%n/ works / solved by remove listescape
Am 23.04.2012 13:12, schrieb Timo Sirainen: On 19.4.2012, at 23.27, Robert Schetterer wrote: prefix = shared/%%u/ simply dont works i have reverted back to exact namespace config of the 2.0.20 server, same result, so something broken in 2.1 Hi Timo problem solved by removing listescape plugin the acl paths did / instead of dot in domainname any chance to get listescape fixed ? Ah, that makes it easy to fix: http://hg.dovecot.org/dovecot-2.1/rev/63af3274fb6f Hi Timo, for small tests problem seems to be fixed, thx youre great -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria
Re: [Dovecot] doveadm delete folders ? / unsubscribe ?
Am 19.04.2012 22:00, schrieb Robert Schetterer: Am 19.04.2012 17:16, schrieb Timo Sirainen: On 19.4.2012, at 15.09, Robert Schetterer wrote: Hi , is there a feature like doveadm expunge savedbefore ... for imap folder delete ? Here: http://hg.dovecot.org/dovecot-2.1/rev/2d8bafd11569 http://hg.dovecot.org/dovecot-2.1/rev/782570f644f7 thx Timo ! Hi Timo doveadm expunge -d -u *@domain.example mailbox exampelfolder\* savedbefore 10d works like charm, but the folders do not get unsubscribed any chance to have i.e another add parameter ,or do it auto cause empty and deleted folders should not stay subscribed in my eyes -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria
Re: [Dovecot] v2.1.5 released
Hello Timo, Dovecot 2.1.5 seems to be broken. After upgrade from 2.1.3 + patch http://hg.dovecot.org/dovecot-2.1/rev/86e6dc46a80e I only see Inbox and Trash folder. Reverting = OK. Same config as before and disucssed per private E-mail and on the list. Guessing this comes again from: mail_full_filesystem_access=yes Ciao, Gerhard -- http://www.wiesinger.com/ On Mon, 23 Apr 2012, Timo Sirainen wrote: http://dovecot.org/releases/2.1/dovecot-2.1.5.tar.gz http://dovecot.org/releases/2.1/dovecot-2.1.5.tar.gz.sig A few announcements first: I'm now going to start being more strict about not answering Dovecot questions sent to me privately (especially support requests, but also bug reports, feature requests, etc). Often those questions could be answered by other people in the mailing list as well, so they just waste my time. Even if you're sure that I'm the only person who can possibly answer it, it may be something that others are interested of as well and replying privately denies them the possibility of reading about it. If you really do not want to send something publicly, you still have an option for private communication: just buy one of the Dovecot support packages. This is also the first Dovecot release that has run through automated release testing. I've been planning on doing that for last 5 years at least, and finally it's done. The testing includes running a lot of tests to verify that the IMAP server gives proper responses, stress testing doesn't break it, memory isn't leaked and several other things. The tests are run for many different kinds of configurations. Some bugs show up only for some specific combination of settings, but unfortunately because there's such a large number of them it's impossible to test every combination. So here's another advantage that Dovecot support customers have: they can have their specific configuration included in the automated tests. This release already fixes one bug I found only after testing a customer's config. Oh, and looks like I got accepted as a speaker to LinuxTag 2012. The plan is to talk about some new things in Dovecot and dsync replication (looks like I have to hurry up with the dsync rewrite). And finally, the most important changes since v2.1.4: * IMAP: When neither the session nor the mailbox has modseq tracking enabled, return the mailbox as having NOMODSEQ in SELECT/EXAMINE reply. Old versions in this situation always simply returned HIGHESTMODSEQ as 1, which could have broken some clients. + dict file: Added optional fcntl/flock locking (default is dotlock) + fts-solr: doveadm fts rescan now resets indexes, which allows reindexing mails. (This isn't a full rescan implementation like fts-lucene has.) + doveadm expunge: Added -d parameter to delete mailbox if it's empty after expunging. - IMAP: Several fixes related to mailbox listing in some configs - director: A lot of fixes and performance improvements - v2.1.4 didn't work without a mail home directory set - mbox: Deleting a mailbox didn't delete its index files. - pop3c: TOP command was sent incorrectly - trash plugin didn't work properly - LMTP: Don't add a duplicate Return-Path: header when proxying. - listescape: Don't unescape namespace prefixes.
Re: [Dovecot] v2.1.5 released
Il 24/04/2012 10:59, Gerhard Wiesinger ha scritto: Hello Timo, Dovecot 2.1.5 seems to be broken. After upgrade from 2.1.3 + patch http://hg.dovecot.org/dovecot-2.1/rev/86e6dc46a80e I only see Inbox and Trash folder. Reverting = OK. Same config as before and disucssed per private E-mail and on the list. Guessing this comes again from: mail_full_filesystem_access=yes Ciao, Gerhard Hi Gerhard, for us 2.1.5 works fine. We are using Maildir as mail storage type. Ciao -- Alessio Cecchi is: @ ILS - http://www.linux.it/~alessice/ on LinkedIn - http://www.linkedin.com/in/alessice Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/ @ PLUG - ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
[Dovecot] Error compiling pigeonhole 0.3.0 with dovecot-2.1.5 in openbsd 5.0
Hi, I've just tried to compile dovecot pigeonhole in my openbsd box, and got this: gcc -DHAVE_CONFIG_H -I. -I../.. -I/home/seajob/build/dovecot-2.1.5 -I/home/seajob/build/dovecot-2.1.5/src/lib -I/home/seajob/build/dovecot-2.1.5/src/lib-dict -I/home/seajob/build/dovecot-2.1.5/src/lib-dns -I/home/seajob/build/dovecot-2.1.5/src/lib-mail -I/home/seajob/build/dovecot-2.1.5/src/lib-imap -I/home/seajob/build/dovecot-2.1.5/src/lib-fs -I/home/seajob/build/dovecot-2.1.5/src/lib-charset -I/home/seajob/build/dovecot-2.1.5/src/lib-index -I/home/seajob/build/dovecot-2.1.5/src/lib-storage -I/home/seajob/build/dovecot-2.1.5/src/lib-storage/index -I/home/seajob/build/dovecot-2.1.5/src/lib-storage/index/raw -I../.. -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -I/usr/include -MT managesieve-quote.o -MD -MP -MF .deps/managesieve-quote.Tpo -c -o managesieve-quote.o managesieve-quote.c mv -f .deps/managesieve-quote.Tpo .deps/managesieve-quote.Po gcc -DHAVE_CONFIG_H -I. -I../.. -I/home/seajob/build/dovecot-2.1.5 -I/home/seajob/build/dovecot-2.1.5/src/lib -I/home/seajob/build/dovecot-2.1.5/src/lib-dict -I/home/seajob/build/dovecot-2.1.5/src/lib-dns -I/home/seajob/build/dovecot-2.1.5/src/lib-mail -I/home/seajob/build/dovecot-2.1.5/src/lib-imap -I/home/seajob/build/dovecot-2.1.5/src/lib-fs -I/home/seajob/build/dovecot-2.1.5/src/lib-charset -I/home/seajob/build/dovecot-2.1.5/src/lib-index -I/home/seajob/build/dovecot-2.1.5/src/lib-storage -I/home/seajob/build/dovecot-2.1.5/src/lib-storage/index -I/home/seajob/build/dovecot-2.1.5/src/lib-storage/index/raw -I../.. -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -I/usr/include -MT managesieve-parser.o -MD -MP -MF .deps/managesieve-parser.Tpo -c -o managesieve-parser.o managesieve-parser.c managesieve-parser.c: In function 'quoted_string_istream_read': managesieve-parser.c:639: error: 'EPROTO' undeclared (first use in this function) managesieve-parser.c:639: error: (Each undeclared identifier is reported only once managesieve-parser.c:639: error: for each function it appears in.) *** Error code 1 Stop in /home/seajob/build/dovecot-2.1-pigeonhole-0.3.0/src/lib-managesieve (line 92 of /usr/share/mk/sys.mk). *** Error code 1 Stop in /home/seajob/build/dovecot-2.1-pigeonhole-0.3.0/src (line 289 of Makefile). *** Error code 1 Stop in /home/seajob/build/dovecot-2.1-pigeonhole-0.3.0 (line 474 of Makefile). *** Error code 1 Stop in /home/seajob/build/dovecot-2.1-pigeonhole-0.3.0 (line 353 of Makefile).
[Dovecot] Dovecot Virtual Users with Users Domain Mapping
I have successfully compiled, configured and ran Dovecot with virtual users feature. Here's part of my /etc/dovecot.conf configuration file: mail_location = maildir:~/Maildir auth default { mechanisms = plain login userdb passwd-file { args = /home/%d/etc/passwd } passdb passwd-file { args = /home/%d/etc/shadow } socket listen { master { path = /var/run/dovecot/auth-worker mode = 0600 } } } I faced one issue I can't resolve myself. Is there anyway to create users' domains mapping and provide username in mail_location? Example of usersdomains file: domain.com:user1 domain2.org:user3 Examples: 1. currently I have /home/domain.com/user/Maildir 2. I'd like to have /home/SYSTEM_USER/domain.com/user/Maildir Can I achieve this somehow?
Re: [Dovecot] dsync on large mailbox fails
On 24.4.2012, at 6.38, Jeff Kletsky wrote: 25934 jeff 1 1030 135M 102M CPU22 128:47 100.00% doveadm Looks like it could be in an infinite loop. To find out where: 1) strace for a few seconds: strace -tt -p 25934 2log 2) get gdb backtrace a couple of times (2-5 should be enough, preferably slightly different ones): gdb /usr/local/bin/doveadm 25934 bt full copypaste the output to mail cont ctrl-c bt full copypaste the output to mail cont ctrl-c ..etc..
[Dovecot] Permission problems when trying to create new folders with ACL plugin
Hi, I have the a problem with shared folders and the ACL plugin. The user markus has full access to Shared/shared-user/Data: 3 GETACL Shared/shared-user/Data * ACL Shared/shared-user/Data markus akxeilprwtscd 3 OK Getacl completed. but creating a new subfolder under Data fails: 4 CREATE Shared/shared-user/Data/New1 4 NO [NOPERM] Permission denied This used to work with the same configuration and Dovecot 2.0. Cheers, Markus dovecot -n output: # 2.1.5: /opt/dovecot-2.1/etc/dovecot/dovecot.conf # OS: Linux 3.2.0-2-amd64 x86_64 Debian wheezy/sid auth_mechanisms = plain login disable_plaintext_auth = no listen = 192.168.56.11 mail_location = maildir:~/Maildir mail_plugins = acl managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave namespace { inbox = yes location = prefix = separator = / subscriptions = yes type = private } namespace { inbox = no list = children location = maildir:%%h/Maildir:INDEX=~/Maildir/index/shared/%%u prefix = Shared/%%u/ separator = / subscriptions = no type = shared } passdb { args = /opt/dovecot-2.1/etc/dovecot/passwd driver = passwd-file } plugin { acl = vfile acl_anyone = allow acl_shared_dict = file:/var/lib/vdovecot/shared-mailboxes.db } protocols = imap service auth { unix_listener auth-userdb { mode = 0600 user = vdovecot } } ssl = no userdb { args = /opt/dovecot-2.1/etc/dovecot/passwd driver = passwd-file } verbose_proctitle = yes protocol imap { mail_plugins = acl imap_acl }
Re: [Dovecot] Error compiling pigeonhole 0.3.0 with dovecot-2.1.5 in openbsd 5.0
Op 4/24/2012 11:25 AM, Joseba Torre schreef: Hi, I've just tried to compile dovecot pigeonhole in my openbsd box, and got this: gcc -DHAVE_CONFIG_H -I. -I../.. -I/home/seajob/build/dovecot-2.1.5 -I/home/seajob/build/dovecot-2.1.5/src/lib -I/home/seajob/build/dovecot-2.1.5/src/lib-dict -I/home/seajob/build/dovecot-2.1.5/src/lib-dns -I/home/seajob/build/dovecot-2.1.5/src/lib-mail -I/home/seajob/build/dovecot-2.1.5/src/lib-imap -I/home/seajob/build/dovecot-2.1.5/src/lib-fs -I/home/seajob/build/dovecot-2.1.5/src/lib-charset -I/home/seajob/build/dovecot-2.1.5/src/lib-index -I/home/seajob/build/dovecot-2.1.5/src/lib-storage -I/home/seajob/build/dovecot-2.1.5/src/lib-storage/index -I/home/seajob/build/dovecot-2.1.5/src/lib-storage/index/raw -I../.. -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -I/usr/include -MT managesieve-quote.o -MD -MP -MF .deps/managesieve-quote.Tpo -c -o managesieve-quote.o managesieve-quote.c mv -f .deps/managesieve-quote.Tpo .deps/managesieve-quote.Po gcc -DHAVE_CONFIG_H -I. -I../.. -I/home/seajob/build/dovecot-2.1.5 -I/home/seajob/build/dovecot-2.1.5/src/lib -I/home/seajob/build/dovecot-2.1.5/src/lib-dict -I/home/seajob/build/dovecot-2.1.5/src/lib-dns -I/home/seajob/build/dovecot-2.1.5/src/lib-mail -I/home/seajob/build/dovecot-2.1.5/src/lib-imap -I/home/seajob/build/dovecot-2.1.5/src/lib-fs -I/home/seajob/build/dovecot-2.1.5/src/lib-charset -I/home/seajob/build/dovecot-2.1.5/src/lib-index -I/home/seajob/build/dovecot-2.1.5/src/lib-storage -I/home/seajob/build/dovecot-2.1.5/src/lib-storage/index -I/home/seajob/build/dovecot-2.1.5/src/lib-storage/index/raw -I../.. -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -I/usr/include -MT managesieve-parser.o -MD -MP -MF .deps/managesieve-parser.Tpo -c -o managesieve-parser.o managesieve-parser.c managesieve-parser.c: In function 'quoted_string_istream_read': managesieve-parser.c:639: error: 'EPROTO' undeclared (first use in this function) managesieve-parser.c:639: error: (Each undeclared identifier is reported only once managesieve-parser.c:639: error: for each function it appears in.) Looks like BSD doesn't know EPROTO (although it is POSIX). Dovecot uses EIO elsewhere for such stream errors, so I adopted that for ManageSieve as well. This should fix it: http://hg.rename-it.nl/dovecot-2.1-pigeonhole/rev/ef5045159e6b Regards, Stephan.
[Dovecot] acls not copied when creating subfolder of private INBOX
Using brand new dovecot 2.1.5 I still have a problem with the inheritance of acls. Setting: - maildir with private INBOX and public folders. - users maildir directory (/home/mail/user/ahelmcke) contains dovecot-acl file - public folders root directory (/home/mail/Fax) contains dovecot-acl file When creating a subfolder of the public folder the dovecot-acl files gets copied to the subfolders directory as expected. When creating a subfolder of the users INBOX the dovecot-acl files does /not/ get copied to the subfolders directory. Debug output: doveadm -Dv mailbox create -u ahelmcke Fax/Bu doveadm(root): Debug: Loading modules from directory: /usr/local/lib/dovecot doveadm(root): Debug: Module loaded: /usr/local/lib/dovecot/lib01_acl_plugin.so doveadm(root): Debug: Module loaded: /usr/local/lib/dovecot/lib10_quota_plugin.so doveadm(root): Debug: Loading modules from directory: /usr/local/lib/dovecot/doveadm doveadm(root): Debug: Module loaded: /usr/local/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so doveadm(root): Debug: Skipping module doveadm_expire_plugin, because dlopen() failed: /usr/local/lib/dovecot/doveadm/lib10_doveadm_expire_plugin.so: undefined symbol: expire_set_lookup (this is usually intentional, so just ignore this message) doveadm(root): Debug: Module loaded: /usr/local/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so doveadm(root): Debug: Skipping module doveadm_zlib_plugin, because dlopen() failed: /usr/local/lib/dovecot/doveadm/lib10_doveadm_zlib_plugin.so: undefined symbol: i_stream_create_deflate (this is usually intentional, so just ignore this message) doveadm(root): Debug: Skipping module doveadm_fts_plugin, because dlopen() failed: /usr/local/lib/dovecot/doveadm/lib20_doveadm_fts_plugin.so: undefined symbol: fts_list_backend (this is usually intentional, so just ignore this message) doveadm(ahelmcke): Debug: auth input: ahelmcke quota_rule=*:storage=2000M doveadm(ahelmcke): Debug: Added userdb setting: plugin/quota_rule=*:storage=2000M doveadm(ahelmcke): Debug: Effective uid=494, gid=491, home=/home/mail/user/ahelmcke doveadm(ahelmcke): Debug: Quota root: name=User quota backend=maildir args= doveadm(ahelmcke): Debug: Quota rule: root=User quota mailbox=* bytes=2097152000 messages=0 doveadm(ahelmcke): Debug: Namespace inbox: type=private, prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/home/mail/user/ahelmcke doveadm(ahelmcke): Debug: maildir++: root=/home/mail/user/ahelmcke, index=, control=, inbox=/home/mail/user/ahelmcke, alt= doveadm(ahelmcke): Debug: acl: initializing backend with data: vfile doveadm(ahelmcke): Debug: acl: acl username = ahelmcke doveadm(ahelmcke): Debug: acl: owner = 1 doveadm(ahelmcke): Debug: acl vfile: Global ACL directory: (none) doveadm(ahelmcke): Debug: Namespace dummy: type=private, prefix=, sep=/, inbox=no, hidden=yes, list=no, subscriptions=yes location=maildir:/home/mail/user/ahelmcke/public/ doveadm(ahelmcke): Debug: maildir++: root=/home/mail/user/ahelmcke/public, index=, control=, inbox=, alt= doveadm(ahelmcke): Debug: acl: initializing backend with data: vfile doveadm(ahelmcke): Debug: acl: acl username = ahelmcke doveadm(ahelmcke): Debug: acl: owner = 1 doveadm(ahelmcke): Debug: acl vfile: Global ACL directory: (none) doveadm(ahelmcke): Debug: Namespace fax: type=public, prefix=Fax/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=no location=maildir:/home/mail/Fax:INDEX=/home/mail/user/ahelmcke/SEEN.Fax doveadm(ahelmcke): Debug: maildir++: root=/home/mail/Fax, index=/home/mail/user/ahelmcke/SEEN.Fax, control=, inbox=, alt= doveadm(ahelmcke): Debug: acl: initializing backend with data: vfile doveadm(ahelmcke): Debug: acl: acl username = ahelmcke doveadm(ahelmcke): Debug: acl: owner = 0 doveadm(ahelmcke): Debug: acl vfile: Global ACL directory: (none) doveadm(ahelmcke): Debug: acl vfile: reading file /home/mail/Fax/dovecot-acl doveadm(ahelmcke): Debug: Namespace Fax/: Using permissions from /home/mail/Fax: mode=0700 gid=-1 doveadm(ahelmcke): Debug: Namespace INBOX/: Using permissions from /home/mail/user/ahelmcke: mode=0700 gid=-1 doveadm(ahelmcke): Debug: acl vfile: reading file /home/mail/user/ahelmcke/dovecot-acl doveadm(ahelmcke): Debug: acl vfile: reading file /home/mail/user/ahelmcke/dovecot-acl doveadm(ahelmcke): Debug: acl vfile: reading file /home/mail/user/ahelmcke/dovecot-acl doveadm(ahelmcke): Debug: Namespace Fax/: /home/mail/Fax/.Bu doesn't exist yet, using default permissions doveadm(ahelmcke): Debug: Namespace Fax/: Using permissions from /home/mail/Fax: mode=0700 gid=-1 doveadm(ahelmcke): Debug: acl vfile: reading file /home/mail/Fax/dovecot-acl doveadm(ahelmcke): Debug: acl vfile: file /home/mail/Fax/.Bu/dovecot-acl not found doveadm(ahelmcke): Debug: acl vfile: reading file /home/mail/Fax/.Bu/dovecot-acl doveadm(ahelmcke): Debug: acl vfile: reading file /home/mail/user/ahelmcke/dovecot-acl doveadm(ahelmcke): Debug: acl vfile:
Re: [Dovecot] acls not copied when creating subfolder of private INBOX
Am 24.04.2012 16:09, schrieb Andreas Helmcke: Setting: - maildir with private INBOX and public folders. - users maildir directory (/home/mail/user/ahelmcke) contains dovecot-acl file - public folders root directory (/home/mail/Fax) contains dovecot-acl file When creating a subfolder of the public folder the dovecot-acl files gets copied to the subfolders directory as expected. When creating a subfolder of the users INBOX the dovecot-acl files does /not/ get copied to the subfolders directory. i am not sure ,but but i think that works like designed http://wiki2.dovecot.org/ACL .. ACL Inheritance Every time you create a new mailbox, it gets its ACLs from the parent mailbox. If you're creating a root-level mailbox, it uses the namespace's default ACLs. There is no actual inheritance, however: If you modify parent's ACLs, the child's ACLs stay the same. There is currently no support for ACL inheritance. Namespace's default ACLs are read from dovecot-acl file in the namespace's mail root directory (e.g. /var/public/Maildir). Note that currently these default ACLs are used only when creating new mailboxes, they aren't used for mailboxes without ACLs. -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria
Re: [Dovecot] acls not copied when creating subfolder of private INBOX
Am 24.04.2012 16:54, schrieb Robert Schetterer: Am 24.04.2012 16:09, schrieb Andreas Helmcke: When creating a subfolder of the public folder the dovecot-acl files gets copied to the subfolders directory as expected. When creating a subfolder of the users INBOX the dovecot-acl files does /not/ get copied to the subfolders directory. i am not sure ,but but i think that works like designed http://wiki2.dovecot.org/ACL .. ACL Inheritance I do read this as: when creating a new mailbox; acls are copied from parent. This it what it does for public folders but /not/ for the private ones. So in my opinion at least it is not working as documented.
Re: [Dovecot] acls not copied when creating subfolder of private INBOX
Am 24.04.2012 17:17, schrieb Andreas Helmcke: Am 24.04.2012 16:54, schrieb Robert Schetterer: Am 24.04.2012 16:09, schrieb Andreas Helmcke: When creating a subfolder of the public folder the dovecot-acl files gets copied to the subfolders directory as expected. When creating a subfolder of the users INBOX the dovecot-acl files does /not/ get copied to the subfolders directory. i am not sure ,but but i think that works like designed http://wiki2.dovecot.org/ACL .. ACL Inheritance I do read this as: when creating a new mailbox; acls are copied from parent. This it what it does for public folders but /not/ for the private ones. So in my opinion at least it is not working as documented. i think its missunderstandable written this is what counts i think http://wiki2.dovecot.org/ACL ... There is currently no support for ACL inheritance .. public folders are special cases it makes sense to have inheritance as default acl but this may not be a good idea as default at users folders read the list archive about this stuff, i cant remember all but Timo wrote some about it, at last ,develop of that feature may be still be not finshed -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria
[Dovecot] Reading Mutt mboxes from Thunderbird
Hi, I'm a user of Mutt, and before moving to Thunderbird I'm trying to share mboxes between them. To do this, I installed Dovecot to create an IMAP server in my local machine, to serve mutt mboxes to be read by Thunderbird. So far, I can read my inbox from /var/mail/%u, but in mutt, I have many folders in ~/mail, like 2010-mails, 2011-mails, mailing-list-x, mailing-list-y, and so on. How can I configure Dovecot to read them?. In /etc/dovecot/conf.d/10-mail.conf I have this: mail_location = mbox:~/Mail:INBOX=/var/mail/%u I'm using Ubuntu 11.10, and Dovecot 2.0.13. Regards, -- Leonardo M. Ramé Medical IT - Griensu S.A. Av. Colón 636 - Piso 8 Of. A X5000EPT -- Córdoba Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979 int. 19 Cel.: +54(351)156629292
[Dovecot] sievec segfaults
Hello, sievec segfaults when it reads a file. I've tried with both the standard and gold linker. I've tried with various sieve files and they all make it crash. I've compiled pigeonhole with -ggdb, but I'm not getting much info Program received signal SIGSEGV, Segmentation fault. 0x000800b8e587 in strlen () from /lib/libc.so.7 (gdb) bt full #0 0x000800b8e587 in strlen () from /lib/libc.so.7 No symbol table info available. #1 0x000800a12e8c in str_append () from /usr/lib/dovecot/libdovecot.so.0 No symbol table info available. #2 0x00080077f02d in sieve_binary_save () from /usr/lib/dovecot/libdovecot-sieve.so.0 No symbol table info available. #3 0x00605bf0 in environ () No symbol table info available. #4 0x in ?? () No symbol table info available. #5 0x7fffeb6e in ?? () No symbol table info available. #6 0x0001 in ?? () No symbol table info available. #7 0x in ?? () No symbol table info available. #8 0x00080060878d in ?? () from /libexec/ld-elf.so.1 No symbol table info available. #9 0x00605cd9 in ?? () No symbol table info available. #10 0x000801000ea8 in ?? () No symbol table info available. #11 0x5008 in ?? () No symbol table info available. #12 0x in ?? () No symbol table info available. #13 0x000801099040 in ?? () No symbol table info available. #14 0x in ?? () No symbol table info available. #15 0x0180 in ?? () No symbol table info available. #16 0x00605bf0 in environ () No symbol table info available. #17 0x in ?? () No symbol table info available. #18 0x7fffeb6e in ?? () No symbol table info available. #19 0x0001 in ?? () No symbol table info available. #20 0x in ?? () No symbol table info available. #21 0x in ?? () No symbol table info available. #22 0x00402f93 in main () No symbol table info available. Cheers, Olivier
Re: [Dovecot] dsync on large mailbox fails
On 4/24/12 3:26 AM, Timo Sirainen wrote: On 24.4.2012, at 6.38, Jeff Kletsky wrote: 25934 jeff 1 1030 135M 102M CPU22 128:47 100.00% doveadm Looks like it could be in an infinite loop. To find out where: 1) strace for a few seconds: strace -tt -p 25934 2log 2) get gdb backtrace a couple of times (2-5 should be enough, preferably slightly different ones): gdb /usr/local/bin/doveadm 25934 bt full copypaste the output to mail cont ctrl-c bt full copypaste the output to mail cont ctrl-c ..etc.. Rather than clutter everyone's inbox, even if we know they have a great IMAP server... http://wildside.wagsky.com/dovecot/2012-04-24/54097/doveadm.gdb.log.bz2 http://wildside.wagsky.com/dovecot/2012-04-24/54097/doveadm.truss.log.bz2 Thanks for looking into this! Jeff
Re: [Dovecot] dsync on large mailbox fails
On 24.4.2012, at 20.05, Jeff Kletsky wrote: On 4/24/12 3:26 AM, Timo Sirainen wrote: On 24.4.2012, at 6.38, Jeff Kletsky wrote: 25934 jeff 1 1030 135M 102M CPU22 128:47 100.00% doveadm Looks like it could be in an infinite loop. To find out where: http://wildside.wagsky.com/dovecot/2012-04-24/54097/doveadm.truss.log.bz2 That's a lot of getdirentries() calls in there, repeating all the time. So I don't think it's an infinite loop, just a lot of slowness repeating the same work over and over again. See if it helps if you add: maildir_very_dirty_syncs = yes
Re: [Dovecot] sievec segfaults
Op 4/24/2012 6:31 PM, interfaSys sàrl schreef: Hello, sievec segfaults when it reads a file. I've tried with both the standard and gold linker. I've tried with various sieve files and they all make it crash. What version? Regards, Stephan.
Re: [Dovecot] sievec segfaults
I pulled the latest code from the dovecot-2.1-pigeonhole repository. Cheers, Olivier On 24/04/2012 18:10, Stephan Bosch wrote: Op 4/24/2012 6:31 PM, interfaSys sàrl schreef: Hello, sievec segfaults when it reads a file. I've tried with both the standard and gold linker. I've tried with various sieve files and they all make it crash. What version? Regards, Stephan.
Re: [Dovecot] sievec segfaults
I've recompiled Dovecot with ggdb and here is a more meaningful trace. Program received signal SIGSEGV, Segmentation fault. 0x00080067796b in str_append () from /usr/lib/dovecot/libdovecot.so.0 (gdb) bt full #0 0x00080067796b in str_append () from /usr/lib/dovecot/libdovecot.so.0 No symbol table info available. #1 0x00080047b672 in sieve_binary_save () from /usr/lib/dovecot/libdovecot-sieve.so.0 No symbol table info available. #2 0x000800461b04 in sieve_save_as () from /usr/lib/dovecot/libdovecot-sieve.so.0 No symbol table info available. #3 0x004032e6 in main (argc=2, argv=0x7fffe948) at sievec.c:147 svinst = (struct sieve_instance *) 0x800c90040 st = {st_dev = 1288178348, st_ino = 6479, st_mode = 33261, st_nlink = 1, st_uid = 12, st_gid = 6, st_rdev = 4294967295, st_atimespec = { tv_sec = 1335288301, tv_nsec = 418632262}, st_mtimespec = {tv_sec = 1285859319, tv_nsec = 0}, st_ctimespec = {tv_sec = 1297096638, tv_nsec = 658928714}, st_size = 1197, st_blocks = 4, st_blksize = 4096, st_flags = 0, st_gen = 8013395, st_lspare = 0, st_birthtimespec = { tv_sec = 1297096638, tv_nsec = 658928714}} sbin = (struct sieve_binary *) 0x800c99040 dump = false scriptfile = (const __unknown__ *) 0x7fffec56 /etc/test.sieve outfile = (const __unknown__ *) 0x0 exit_status = 0 c = -1 Cheers, Olivier On 24/04/2012 18:10, Stephan Bosch wrote: Op 4/24/2012 6:31 PM, interfaSys sàrl schreef: Hello, sievec segfaults when it reads a file. I've tried with both the standard and gold linker. I've tried with various sieve files and they all make it crash. What version? Regards, Stephan.
Re: [Dovecot] sievec segfaults
Op 4/24/2012 7:14 PM, interfaSys sàrl schreef: I pulled the latest code from the dovecot-2.1-pigeonhole repository. This is caused by the recent addition of dict database support for storing Sieve scripts. This should fix it: http://hg.rename-it.nl/dovecot-2.1-pigeonhole/rev/93bfa75d9ab9 Regards, Stephan.
[Dovecot] dovecot LDA error
Hi, My dovecot version is , # 2.0.20: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.18-164.el5 x86_64 CentOS release 5.4 (Final) auth_debug = yes auth_debug_passwords = yes auth_verbose = yes auth_verbose_passwords = plain debug_log_path = /var/log/dovecot.log disable_plaintext_auth = no hostname = host1.bigmama.com info_log_path = /var/log/dovecot.log log_path = /var/log/dovecot.log mail_debug = yes mail_location = maildir:~/Maildir passdb { args = scheme=PLAIN username_format=%u /etc/dovecot/users driver = passwd-file } postmaster_address = r...@host1.bigmama.com service auth { unix_listener auth-userdb { group = mail mode = 0660 user = mail } } ssl = no userdb { args = username_format=%u /etc/dovecot/users driver = passwd-file } protocol lda { info_log_path = /var/log/dovecot-lda.log log_path = /var/log/dovecot-lda-errors.log } Im getting error from dovecot LDA logs log_path = /var/log/dovecot-lda-errors.log Apr 24 20:25:46 lda(ja...@example.com): Fatal: setgid(5000(vmail) from userdb lo okup) failed with euid=8(mail), gid=12(mail), egid=12(mail): Operation not permi tted (This binary should probably be called with process group set to 5000(vmail ) instead of 12(mail)) My usersdb config ja...@example.com:{PLAIN}123:5000:5000::/var/vmail/example.com/jamal/ user 5000 system user as vmail Permissions for the /var/vmail directory as follow drwxr-xr-x 3 vmail vmail 4096 Apr 24 20:18 /var/vmail/ drwx-- 3 vmail vmail 4096 Apr 24 20:18 /var/vmail/example.com/ drwx-- 3 vmail vmail 4096 Apr 24 20:18 /var/vmail/example.com/jamal/ drwx-- 5 vmail vmail 4096 Apr 24 20:20 /var/vmail/example.com/jamal/Maildir/
Re: [Dovecot] sievec segfaults
It worked! :) Thank you. Olivier On 24/04/2012 18:34, Stephan Bosch wrote: Op 4/24/2012 7:14 PM, interfaSys sàrl schreef: I pulled the latest code from the dovecot-2.1-pigeonhole repository. This is caused by the recent addition of dict database support for storing Sieve scripts. This should fix it: http://hg.rename-it.nl/dovecot-2.1-pigeonhole/rev/93bfa75d9ab9 Regards, Stephan.
Re: [Dovecot] trash plugin bug?
On 23.4.2012, at 23.40, Cor Bosman wrote: Hey all, has anyone ever tried turning on the trash plugin when the directory is already over quota? I see some messages being deleted, but it seems it just deletes enough to fit the new email, not enough to go below quota. Well, normally you shouldn't be over quota I guess.. :) Anyway, http://hg.dovecot.org/dovecot-2.1/rev/ec8564741aa8 http://hg.dovecot.org/dovecot-2.1/rev/dd3798681283
Re: [Dovecot] doveadm delete folders ? / unsubscribe ?
On 24.4.2012, at 10.50, Robert Schetterer wrote: doveadm expunge -d -u *@domain.example mailbox exampelfolder\* savedbefore 10d works like charm, but the folders do not get unsubscribed any chance to have i.e another add parameter ,or do it auto cause empty and deleted folders should not stay subscribed in my eyes Yeah, I guess unsubscribing is always wanted: http://hg.dovecot.org/dovecot-2.1/rev/b1653b7bd165
Re: [Dovecot] trash plugin bug?
Hey all, has anyone ever tried turning on the trash plugin when the directory is already over quota? I see some messages being deleted, but it seems it just deletes enough to fit the new email, not enough to go below quota. Well, normally you shouldn't be over quota I guess.. :) Anyway, :) It's hard to initialize new quota rules on a large userbase without some users falling outside the expected parameters :) Sucks when you have lots of users, you always always hit edge cases. Thanks! Cor
Re: [Dovecot] How to remove duplicate GUID messages from storage?
Daniel Parthey schrieb: I tried to import messages like this: doveadm import -u usern...@example.org mdbox:/mail/dovecot/example.org/username/mail mbox:/root/mail.txt all This seemed to have imported the same messages in the mail storage, as they were already there. And now I have got a lot of duplicates. Then I deleted the mbox:/root/mail mail stuff from mailboxes folder and the storage remained, with duplicate GUIDs. The following command doveadm -v force-resync -u usern...@example.org INBOX outputs lots of messages like this one, with different GUID doveadm(usern...@example.org): Error: mdbox /mail/dovecot/example.org/username/mail/storage: Duplicate GUID 0b8a032d66a0924fb42cde5f8128 in m.55:45484041 and m.14:52173045 The messages at m.55:45484041 and m.14:52173045 have the same content, since they were seemingly imported from the mail store itself, they are in the storage twice now and require twice as much disk space as before. How can I manually remove these identical, duplicate messages from the storage to save space? Dovecot does not do it automatically. Should I edit the mdbox storage files directly using vim in order to remove the duplicate messages which I imported by accident, or is there any dovecot mdbox repair toolkit with removes duplicate messages? I attached the dovecot version and config. Regards, Daniel # doveconf -n # 2.0.20: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-40-server x86_64 Ubuntu 10.04.4 LTS auth_cache_negative_ttl = 0 auth_cache_size = 10 M auth_verbose = yes auth_verbose_passwords = sha1 deliver_log_format = mailbox: deliver: msgid=%m from=%f: %$ dict { quota = mysql:/etc/dovecot/conf.d/dovecot-dict-sql.conf.ext } disable_plaintext_auth = no lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes login_greeting = Mailbox login_log_format = mailbox: login: %$: %s login_trusted_networks = 10.129.3.0/24 mail_debug = yes mail_gid = vmail mail_home = /mail/dovecot/%d/%n mail_location = mdbox:~/mail mail_log_prefix = mailbox: mail: %s(%u): mail_plugins = quota mail_privileged_group = vmail mail_uid = vmail managesieve_implementation_string = Sieve managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave mdbox_rotate_interval = 1 weeks mdbox_rotate_size = 50 M mmap_disable = yes passdb { args = /etc/dovecot/conf.d/dovecot-sql.conf.ext driver = sql } plugin { quota = dict:User quota::proxy::quota quota_rule = *:storage=10G quota_rule2 = Trash:storage=+100M quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } protocols = imap pop3 lmtp sieve service dict { unix_listener dict { group = vmail mode = 0660 } } service imap-login { inet_listener imap { port = 19143 } } service lmtp { inet_listener lmtp { address = * port = 19024 } } service managesieve-login { inet_listener sieve { port = 19200 } } service pop3-login { inet_listener pop3 { port = 19110 } } service quota-warning { executable = script /usr/local/bin/quota-warning unix_listener quota-warning { user = vmail } user = dovecot } ssl = no userdb { driver = prefetch } userdb { args = /etc/dovecot/conf.d/dovecot-sql.conf.ext driver = sql } verbose_proctitle = yes protocol imap { imap_client_workarounds = delay-newmail tb-extra-mailbox-sep mail_plugins = quota imap_quota } protocol lmtp { mail_plugins = quota sieve }