[Dovecot] Coredump using virtual folder.
Hi, I'm using dovecot 1.2rc2 and I have the following issues with the virtual folder: 1. The virtual folders are flagged with \Noselect and at least thunderbird does not offer to select them. Adding them to the subscriptions file works fine and the folder can be used after that. 2. Two basic virtual work just fine like: $ cat virtual/all/dovecot-virtual INBOX INBOX.Ordner.work.archive.* all and $ cat virtual/unseen/dovecot-virtual INBOX unseen But the third one does not work: $ cat virtual/talk/dovecot-virtual virtual.all inthread x-references2 x-mailbox INBOX The IMAP Client says Unkown server error, the server logs look like this: ... dovecot: Info: IMAP(matthias): virtual: data=~/Maildir/virtual dovecot: Info: IMAP(matthias): fs: root=/home/matthias/Maildir/virtual, index=, control=, inbox= dovecot: Info: IMAP(matthias): Namespace INBOX.: Using permissions from /home/matthias/Maildir: mode=0700 gid=-1 access happens here dovecot: Info: IMAP(matthias): Loading modules from directory: /usr/local/lib/dovecot/imap dovecot: Info: IMAP(matthias): Module loaded: /usr/local/lib/dovecot/imap/lib20_fts_plugin.so dovecot: Info: IMAP(matthias): Module loaded: /usr/local/lib/dovecot/imap/lib20_virtual_plugin.so dovecot: Info: IMAP(matthias): Module loaded: /usr/local/lib/dovecot/imap/lib20_zlib_plugin.so dovecot: Info: IMAP(matthias): Module loaded: /usr/local/lib/dovecot/imap/lib21_fts_squat_plugin.so ... kind regards, matthias
Re: [Dovecot] Coredump using virtual folder.
Note: The core dump does not occur anymore. I think I had some weird whitespaces in the dovecot-virtual file. matthias
Re: [Dovecot] Compiling v1.3 on different OSes
Mon, Apr 06, 2009 at 06:26:02PM -0500, John Lightsey wrote: ../lib-dovecot/.libs/libdovecot.so: undefined reference to `libiconv' Updated the URL once again, should work now? Nope, it still doesn't work. Try changing $(LIBICONV) to $(LTLIBICONV) in src/lib-dovecot/Makefile.am, then rerun automake, configure and make. Thanks John! Your trick did the job and now it builds without any problems. Cheers, -- Marcin Rzepecki m.rzepecki(at)iem.pw.edu.pl
[Dovecot] Is there any more detailed docs about dict configuration
Hi, I am looking for some help on dict configration. I'm trying to config shared and public mailbox, and use sql as acl backend. Here is my config: table: CREATE TABLE `shared_dict` ( `id` int(10) NOT NULL AUTO_INCREMENT, `from_user` char(50) NOT NULL, `to_user` char(50) NOT NULL, `status` int(10) NOT NULL DEFAULT '1', PRIMARY KEY (`id`), KEY `from_user` (`from_user`), KEY `to_user` (`to_user`) ) dovecot-dict-sql.conf map { pattern = shared/shared-boxes/user/$from/$to table = shared_dict value_field = status fields { from_user = $from to_user = $to } } dovecot.conf acl_shared_dict = proxy::shared_dict It works, and when i use 'setacl', it can add a record. All I want are some more detailed docs about the `pattern' line, and such as how to add a `group' function. :) Detailed on quota/expire dict configration are welcome, too. :) Thanks! -- Xueron Nee http://www.xueron.com
[Dovecot] sieve rules in MySQL?
Has anyone looked at modifying the sieve implementation to allow the use of MySQl to store the rules? david
Re: [Dovecot] Is there any more detailed docs about dict configuration
There is a log: dict: sql dict iterate: Invalid/unmapped path: shared/shared-boxes/anyone/ is 'anyone' a default key and queried every time? On Tue, 07 Apr 2009 16:38:12 +0800 Xueron Nee xue...@xueron.com wrote: Hi, I am looking for some help on dict configration. I'm trying to config shared and public mailbox, and use sql as acl backend. Here is my config: table: CREATE TABLE `shared_dict` ( `id` int(10) NOT NULL AUTO_INCREMENT, `from_user` char(50) NOT NULL, `to_user` char(50) NOT NULL, `status` int(10) NOT NULL DEFAULT '1', PRIMARY KEY (`id`), KEY `from_user` (`from_user`), KEY `to_user` (`to_user`) ) dovecot-dict-sql.conf map { pattern = shared/shared-boxes/user/$from/$to table = shared_dict value_field = status fields { from_user = $from to_user = $to } } dovecot.conf acl_shared_dict = proxy::shared_dict It works, and when i use 'setacl', it can add a record. All I want are some more detailed docs about the `pattern' line, and such as how to add a `group' function. :) Detailed on quota/expire dict configration are welcome, too. :) Thanks! -- Xueron Nee http://www.xueron.com -- Xueron Nee http://www.xueron.com
Re: [Dovecot] sieve rules in MySQL?
Maybe you can write a daemon to read rules from mysql and then build sieve scripts. :) On Tue, 07 Apr 2009 11:36:15 +0100 David Reid da...@jetnet.co.uk wrote: Has anyone looked at modifying the sieve implementation to allow the use of MySQl to store the rules? david -- Xueron Nee http://www.xueron.com
[Dovecot] maximum number of channel in thunderbird
Sometimes a customer of mine, receives from thunderbird the error Maximum number of channel opens... or something similar. I've tried to put this : mail_max_userip_connections=100; Into dovecot.conf but without results. The customers have 3 IMAP account on the server. Can you please help me ? Hi, kako.
[Dovecot] public folders question
Hi, Shared folders is ok now. and when I create a public folder follow the doc http://wiki.dovecot.org/SharedMailboxes/Public, I can not get the boxes listed. namespace: type: public separator: / prefix: public/ location: maildir:/home/data/public:INDEX=~/Maildir/public list: children # ls /home/data/public/ -a . .. dovecot-shared .test1 .test2 .test3 And then, I checked the shared folders created by 'setacl' command, and add a dovecot-acl-list file in the root public folder, ok, I got it. # cat /home/data/public/dovecot-acl-list 1239108915 test1 so, 'dovecot-acl-list' should be created manually or any other methods? Thanks! -- Xueron Nee http://www.xueron.com
[Dovecot] Modified websieve for use with dovecot
In order to let users construct a sieve filter using a GUI I have taken websieve.pl from Alain Turbide (for use with Cyrus) and modified it to work with dovecot. In order to get it working quickly I have removed all the code I did not need (e.g. ldap support, password authentication) and coded Kerberos5 auth (via GSSAPI or SASL) in. I understand that this makes the work mostly useless to others. As however the dovecot adaptations were done by removing internally used perl packages by ones on CPAN such as Mail::IMAPClient and Net::Managesieve that part of the code should be of a broader interest. If someone is interested to have a look or even wants to help make it again a more universal tool I have put the code on ftp://ftp-zeuthen.desy.de/pub/unix/mail/websieve.pl Current status: I have tested the creation and modification of sieve rules, inspecting and setting ACL's (dovecot 1.2), displaying quota and creating folders. All the other code (e.g. the part that deals with an administrative user) is untested and probably not compatible yet with the new perl modules used. -- Wolfgang Friebel Deutsches Elektronen-Synchrotron DESY Phone/Fax: +49 33762 77372/216Platanenallee 6 Mail: Wolfgang.Friebel AT desy.de D-15738 Zeuthen Germany
[Dovecot] Compile and configure Solr plugin
Hi all, I'm having some kind of troubles on Solr's integration. I configured Dovecot with the Solr argument (--with-solr) and everything proceeded just fine. But, when I started Dovecot I got this error: Plugin fts_solr not found from directory /usr/lib64/dovecot/modules/imap Error: imap dump-capability process returned 89 Fatal: Invalid configuration in /etc/dovecot/dovecot.conf In fact, there is no Solr plugin in that directory. So I tried to make a symbolic link from where the compiled Solr plugin was to this directory: ln -s /usr/local/lib/dovecot/lib21_fts_solr_plugin.so And now I have the following error: dlopen(/usr/lib64/dovecot/modules/imap/lib21_fts_solr_plugin.so) failed: /usr/lib64/dovecot/modules/imap/lib21_fts_solr_plugin.so: undefined symbol: mailbox_get_virtual_box_patterns Couldn't load required plugins Error: imap dump-capability process returned 89 Fatal: Invalid configuration in /etc/dovecot/dovecot.conf I'm missing some steps in this installation for sure, do anyone have any clue? Thanks, Rui Carneiro
[Dovecot] Upgrade from 0.99.x to 1.1.x
Hi! I want to upgrade a Dovecot installation from 0.99.14 to 1.1.15, so I had a look at the following wiki article: http://wiki.dovecot.org/Upgrading?action=showredirect=UpgradingDovecot The article http://wiki.dovecot.org/Upgrading/1.0 says something about .customflags - dovecot-keywords and .subscriptions - subscriptions change/conversion: http://wiki.dovecot.org/Upgrading/1.0#Subscriptions http://wiki.dovecot.org/Upgrading/1.0#Keywords Do I understand it correctly that when directly upgrading from 0.99 to 1.1, Dovecot does the subscriptions renaming but not the keywords renaming and conversion, but that when I manually rename all .customflags files to dovecot-keywords, it does the format conversion of that file automatically? Is there anything else what's important to note for such an upgrade? The system is using Maildir as the mailbox format and only local storage (no NFS etc.). -- Regards, Wolfram Schlich wschl...@gentoo.org Gentoo Linux * http://dev.gentoo.org/~wschlich/
Re: [Dovecot] Upgrade from 0.99.x to 1.1.x
* Wolfram Schlich li...@wolfram.schlich.org [2009-04-07 17:02]: I want to upgrade a Dovecot installation from 0.99.14 to 1.1.15, ...that should have been 1.1.13, of course ;) -- Regards, Wolfram Schlich wschl...@gentoo.org Gentoo Linux * http://dev.gentoo.org/~wschlich/
Re: [Dovecot] Upgrade from 0.99.x to 1.1.x
On Apr 7, 2009, at 11:02 AM, Wolfram Schlich wrote: Do I understand it correctly that when directly upgrading from 0.99 to 1.1, Dovecot does the subscriptions renaming but not the keywords renaming and conversion, but that when I manually rename all .customflags files to dovecot-keywords, it does the format conversion of that file automatically? All 0.99 .customflags conversion code has been removed from v1.1. If you want to make things easier, upgrade to v1.0 first. Or if you don't actually use any IMAP keywords (find ~/Maildir -name '*:2,*[a-z]*'), you might just as well delete the files. Is there anything else what's important to note for such an upgrade? The system is using Maildir as the mailbox format and only local storage (no NFS etc.). Other than the keyword/subscription changes, there shouldn't be problems.
[Dovecot] Getting Error 24 device timeout
Hello, Does anyone know what causes this error and how to fix this Begin 'Pop52-Bounceback'. Connect: 172.20.23.52 110 +OK USER bounceback +OK PASS *#*#*#*#*#* +OK Logged in. STAT ERROR! FUNCTION: MainLoop:Pop3Stat POP Account: Pop52-Bounceback Error: 24 Device Time-Out
Re: [Dovecot] Getting Error 24 device timeout
On Tue, 2009-04-07 at 11:49 -0400, Jones, Keven wrote: Does anyone know what causes this error and how to fix this What IMAP client/device is this? Does Dovecot work elsewhere? Set auth_debug=yes and mail_debug=yes and look at what the logs show when logging in. http://wiki.dovecot.org/Logging signature.asc Description: This is a digitally signed message part
Re: [Dovecot] maximum number of channel in thunderbird
On Tue, 2009-04-07 at 15:15 +0200, Kakà wrote: Sometimes a customer of mine, receives from thunderbird the error Maximum number of channel opens... or something similar. Probably the exact error message would help. I tried googling but didn't find what error you were trying to refer to. I've tried to put this : mail_max_userip_connections=100; If that doesn't help, it's unlikely it's a Dovecot problem. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] maximum number of channel in thunderbird
On Tue, 2009-04-07 at 13:05 -0400, Timo Sirainen wrote: mail_max_userip_connections=100; If that doesn't help, it's unlikely it's a Dovecot problem. Although it depends on where you put it.. Show your dovecot -n output. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Getting Error 24 device timeout
1) Show your dovecot -n output 2) Show Dovecot's logs around the time when the timeout happens. Otherwise it's just guessing. On Tue, 2009-04-07 at 13:16 -0400, Jones, Keven wrote: Hi Timo, This is a linux server running sendmail. Dovecot does work on this machine. But sometimes We get that error. I stop sendmail, stop dovecot, remove a few logs from the bounceback Account and it works again for a while. I'm just getting this error on the bounceback Account. I think it is happening when the account get too big or has too many records. I Was thinking I need to adjust some timeout value or something?? Thx for your help. I'm a little lost on this one. -Original Message- From: Timo Sirainen [mailto:t...@iki.fi] Sent: Tuesday, April 07, 2009 12:30 PM To: Jones, Keven Cc: dovecot@dovecot.org Subject: Re: [Dovecot] Getting Error 24 device timeout On Tue, 2009-04-07 at 11:49 -0400, Jones, Keven wrote: Does anyone know what causes this error and how to fix this What IMAP client/device is this? Does Dovecot work elsewhere? Set auth_debug=yes and mail_debug=yes and look at what the logs show when logging in. http://wiki.dovecot.org/Logging signature.asc Description: This is a digitally signed message part
[Dovecot] v1.3 plugin locations
It's getting more and more annoying to have separate plugin directories for lda, pop3 and imap. Currently all the plugins are installed into $lib/dovecot/ and then symlinked to the lda, pop3, imap directories. The original reason was that v0.99 just loaded everything in those directories since there was no mail_plugins setting. But then there are things like expire-tool and convert-tool (and the upcoming doveadm) that don't load plugins at all, even though they probably should. Adding just more directories to them seems to be pointless. Also SQL plugins are shared by dovecot-auth and dict and those would need symlinking.. And in future you might want to load SQL plugins to e.g. imap process. So, I was planning on just putting everything into $lib/dovecot/. expire-tool etc. would use mail_plugins setting that wasn't inside protocol {}. So for example: mail_plugins = quota protocol lda { mail_plugins = quota sieve } protocol imap { mail_plugins = quota imap_quota } protocol pop3 { # defaults to mail_plugins=quota above, no need to set it explicitly } That leaves auth and dict.. I was considering adding new auth_plugins and dict_plugins settings, but that might make it more difficult to start using distro-compiled Dovecot where sql, ldap, etc. are in plugins. So perhaps the auth/ and dict/ directories can stay and contain symlinks. But the $lib/dovecot/sql/ directory could go away and the sql plugins be stored just in $lib/dovecot/ among everything else. Any thoughts? signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Getting Error 24 device timeout
OK, sounds like you're using an ancient Dovecot v0.99. That may be the reason why you're experiencing timeouts. Upgrading to at least v1.0.0 would probably solve your problem. On Tue, 2009-04-07 at 13:33 -0400, Jones, Keven wrote: I have turned on debugging per your recommendation. However My version of dovecot (how do I tell what version?) only Has auth_debug=yes (mail_debug=yes is not in my conf file). Also /usr/sbin/dovecot -n comes back with unknown arugment: -n -Original Message- From: Timo Sirainen [mailto:t...@iki.fi] Sent: Tuesday, April 07, 2009 1:22 PM To: Jones, Keven Cc: dovecot@dovecot.org Subject: Re: [Dovecot] Getting Error 24 device timeout 1) Show your dovecot -n output 2) Show Dovecot's logs around the time when the timeout happens. Otherwise it's just guessing. On Tue, 2009-04-07 at 13:16 -0400, Jones, Keven wrote: Hi Timo, This is a linux server running sendmail. Dovecot does work on this machine. But sometimes We get that error. I stop sendmail, stop dovecot, remove a few logs from the bounceback Account and it works again for a while. I'm just getting this error on the bounceback Account. I think it is happening when the account get too big or has too many records. I Was thinking I need to adjust some timeout value or something?? Thx for your help. I'm a little lost on this one. -Original Message- From: Timo Sirainen [mailto:t...@iki.fi] Sent: Tuesday, April 07, 2009 12:30 PM To: Jones, Keven Cc: dovecot@dovecot.org Subject: Re: [Dovecot] Getting Error 24 device timeout On Tue, 2009-04-07 at 11:49 -0400, Jones, Keven wrote: Does anyone know what causes this error and how to fix this What IMAP client/device is this? Does Dovecot work elsewhere? Set auth_debug=yes and mail_debug=yes and look at what the logs show when logging in. http://wiki.dovecot.org/Logging signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Compiling v1.3 on different OSes
On Mon, 2009-04-06 at 14:08 -0400, Timo Sirainen wrote: http://dovecot.org/tmp/dovecot-1.3.UNSTABLE.tar.gz OK, updated the URL once more. Now iconv problems should be gone? And everyone else is happy with it too? :) It worked fine in FreeBSD 6.2. Thanks, Alan Ferrency pair Networks, Inc.
Re: [Dovecot] Global Sieve File
James Butler schreef: Is anyone here using a global Sieve file that handles messages for an entire server with many users? I understand and use local Sieve files, but I would like to learn more about how to set up Sieve to filter ALL incoming messages using a single file. I would love to read about how you managed to get it working. I'm running Fedora 10 with Postfix 2.5.5 and Dovecot 1.2.rc2. Thanks for any insight! If you are using the new Sieve implementation, you can use the new multiscript feature. It is not explained on the wiki yet (I should give the new Sieve its own page), but things are outlined in the configuration section of the INSTALL file: http://hg.rename-it.nl/dovecot-libsieve/raw-file/0.1.4/INSTALL Be sure to test this new feature extensively though, since it may still contain some bugs. Regards, -- Stephan Bosch step...@rename-it.nl
Re: [Dovecot] Segfault in dovecot 1.2rc2 with quota + public namespace enabled
On Tue, 2009-04-07 at 20:31 +0200, Markus Werner wrote: #0 0xb7f683f1 in acl_mailbox_get_aclobj (box=0x85ad440) at acl-mailbox.c:49 49 struct acl_mailbox *abox = ACL_CONTEXT(box); (gdb) bt full #0 0xb7f683f1 in acl_mailbox_get_aclobj (box=0x85ad440) at acl-mailbox.c:49 No locals. #1 0xb7dfbc89 in cmd_myrights (cmd=0x85a5bd8) at imap-acl-plugin.c:305 Another fix: http://hg.dovecot.org/dovecot-1.2/rev/4907cc591449 signature.asc Description: This is a digitally signed message part
[Dovecot] Global Sieve File
Is anyone here using a global Sieve file that handles messages for an entire server with many users? I understand and use local Sieve files, but I would like to learn more about how to set up Sieve to filter ALL incoming messages using a single file. I would love to read about how you managed to get it working. I'm running Fedora 10 with Postfix 2.5.5 and Dovecot 1.2.rc2. Thanks for any insight! James
Re: [Dovecot] Global Sieve File
Thank you very much for your reply, Mr. Bosch. Still trying to iron it out. If you are using the new Sieve implementation, you can use the new multiscript feature. It is not explained on the wiki yet (I should give the new Sieve its own page), but things are outlined in the configuration section of the INSTALL file: I'm still getting permissions errors like when I wasn't using 'sieve_before': dovecot: deliver(user1): sieve: binary open(/dovecot/global.svbin) \ failed: Permission denied dovecot: deliver(user1): sieve: open(/dovecot/global.svbin.tmp) \ failed for binary save: Permission denied dovecot: deliver(user1): sieve: rename(/dovecot/global.before.svbin.tmp, \ /dovecot/global.before.svbin) failed for binary save: Permission denied A normal user (user1) doesn't have permission to do anything in the directory that stores the global.sieve/.svbin files, which is owned by dovecot:dovecot. Has anyone got a successful installation of a global Sieve file they could describe? Using the multiscript feature would be great, if you have done it successfully. I very much appreciate the way this is supposed to go, according to the docs, and I really hope to find someone who is actually using a global Sieve file successfully, so I can learn from their example. I'm sure it's something simple, but I just can't see the problem in my own installation. Thanks a lot. (Local Sieve files work fine, but I still have a need for a global filter.) James
[Dovecot] deliver vs lda
deliver is the binary name. but it's configured inside protocol lda {} section. This is getting annoying, any thoughts on what would be a good unifying name? a) deliver binary, protocol deliver {} b) lda binary, protocol lda {} c) dovecot-lda binary, protocol lda {} d) mda binary, protocol mda {} e) dovecot-mda binary, protocol mda {} f) something else? In any case protocol lda {} would work for a while longer for backwards compatibility. c) and e) choices also makes me think if e.g. imap and imap-login should be called dovecot-imap and dovecot-imap-login instead. People have had trouble finding them since ps|grep dovecot doesn't find them.. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] v1.3 plugin locations
Oh, this makes excellent sense. Still, I can't help thinking of the famous prayer of Augustine of Hippo:Grant me chastity and continence, but not yet (/da mihi castitatem et continentiam, sed noli modo/). That is, my current build environment just works and has worked for a couple of yearsand I dread having to reverse-engineer why it does what it does and then make those things happen for a new plugin environment. Excellent, *righteous* program engineering in this...but not yet, O Timo.and yes, I'm chicken-$%#@ to be fussing about it. Timo Sirainen wrote: It's getting more and more annoying to have separate plugin directories for lda, pop3 and imap. Currently all the plugins are installed into $lib/dovecot/ and then symlinked to the lda, pop3, imap directories. The original reason was that v0.99 just loaded everything in those directories since there was no mail_plugins setting. But then there are things like expire-tool and convert-tool (and the upcoming doveadm) that don't load plugins at all, even though they probably should. Adding just more directories to them seems to be pointless. Also SQL plugins are shared by dovecot-auth and dict and those would need symlinking.. And in future you might want to load SQL plugins to e.g. imap process. So, I was planning on just putting everything into $lib/dovecot/. expire-tool etc. would use mail_plugins setting that wasn't inside protocol {}. So for example: mail_plugins = quota protocol lda { mail_plugins = quota sieve } protocol imap { mail_plugins = quota imap_quota } protocol pop3 { # defaults to mail_plugins=quota above, no need to set it explicitly } That leaves auth and dict.. I was considering adding new auth_plugins and dict_plugins settings, but that might make it more difficult to start using distro-compiled Dovecot where sql, ldap, etc. are in plugins. So perhaps the auth/ and dict/ directories can stay and contain symlinks. But the $lib/dovecot/sql/ directory could go away and the sql plugins be stored just in $lib/dovecot/ among everything else. Any thoughts? -- Once upon a time, the Internet was a friendly, neighbors-helping-neighbors small town, and no one locked their doors. Now it's like an apartment in Bed-Stuy: you need three heavy duty pick-proof locks, one of those braces that goes from the lock to the floor, and bars on the windows Stewart Dean, Unix System Admin, Bard College, New York 12504 sd...@bard.edu voice: 845-758-7475, fax: 845-758-7035
Re: [Dovecot] Global Sieve File
James Butler schreef: Thank you very much for your reply, Mr. Bosch. Still trying to iron it out. If you are using the new Sieve implementation, you can use the new multiscript feature. It is not explained on the wiki yet (I should give the new Sieve its own page), but things are outlined in the configuration section of the INSTALL file: I'm still getting permissions errors like when I wasn't using 'sieve_before': dovecot: deliver(user1): sieve: binary open(/dovecot/global.svbin) \ failed: Permission denied dovecot: deliver(user1): sieve: open(/dovecot/global.svbin.tmp) \ failed for binary save: Permission denied dovecot: deliver(user1): sieve: rename(/dovecot/global.before.svbin.tmp, \ /dovecot/global.before.svbin) failed for binary save: Permission denied A normal user (user1) doesn't have permission to do anything in the directory that stores the global.sieve/.svbin files, which is owned by dovecot:dovecot. Well, the user1 doesn't need (and can't have) write permission to the global sieve binaries, but it _must_ have read access to those. Could you verify this? The first log line is the attempt to open (==read) the binary, and that fails already with a permission error. The lines that follow are the attempt to recompile the script and store a new binary (Perhaps I should avoid recompilation when it is obvious that the binary cannot be written). Regards, -- Stephan Bosch step...@rename-it.nl
Re: [Dovecot] deliver vs lda
Timo Sirainen wrote: deliver is the binary name. a) deliver binary, protocol deliver {} The problem I have with the deliver name in general is that there is a pre-existing LDA project[1] with the same name, and even within the scope of the Dovecot mailing list, it isn't a unique term, so it makes it harder to sift out information specific to the LDA sub-project. 1. http://packages.debian.org/etch/deliver c) dovecot-lda binary, protocol lda {} This gets my vote. (Assuming Dovecot-lda replaces the deliver name in the documentation, as well.) c) and e) choices also makes me think if e.g. imap and imap-login should be called dovecot-imap and dovecot-imap-login instead. People have had trouble finding them since ps|grep dovecot doesn't find them.. Agreed. -Tom
[Dovecot] Segfault in ACL Plugin + user shared folders
Hi Timo, I have another problem, this time with user shared folders: User markus shared the folder ForTest to test: SETACL INBOX/ForTest test akxeilrwts dovecot-acl and shared-mailboxes.db have been successfully updated. As user test the folder (and #User namespace) is not visible. When I configure the shared namespace with list = yes, the namespace and folder became visible and accessible, but lines like this are logged: Apr 7 22:08:58 asterix dovecot: IMAP(test): acl vfile: reading file /var/spool/dovecot/users/test/Maildir/.Shared/dovecot-acl Apr 7 22:09:03 asterix dovecot: IMAP(test): Invalid namespace prefix %u/ vs % Apr 7 22:09:03 asterix dovecot: IMAP(test): auth input: uid=2000 Apr 7 22:09:03 asterix dovecot: IMAP(test): auth input: gid=2000 Apr 7 22:09:03 asterix dovecot: IMAP(test): auth input: home=/var/spool/dovecot/users/markus Apr 7 22:09:03 asterix dovecot: IMAP(test): maildir: data=/var/spool/dovecot/users/markus/Maildir:INDEX=~/Maildir/index/shared/markus Apr 7 22:09:03 asterix dovecot: IMAP(test): maildir++: root=/var/spool/dovecot/users/markus/Maildir, index=/var/spool/dovecot/users/markus/Maildir, index=/var/spool/dovecot/users/test/Maildir/index/shared/markus, control=, inbox=/var/spool/dovecot/users/markus/Maildir Apr 7 22:09:03 asterix dovecot: IMAP(test): acl: initializing backend with data: vfile Apr 7 22:09:03 asterix dovecot: IMAP(test): acl: acl username = test Apr 7 22:09:03 asterix dovecot: IMAP(test): acl: owner = 0 Apr 7 22:09:03 asterix dovecot: IMAP(test): acl vfile: Global ACL directory: (null) Apr 7 22:09:03 asterix dovecot: IMAP(test): acl vfile: reading file /var/spool/dovecot/users/markus/Maildir/.ForTest/dovecot-acl Apr 7 22:09:08 asterix dovecot: IMAP(test): Invalid namespace prefix %u/ vs markus When I try to access the folder directly with list = children set, then dovecot segfaults. Last lines in logfile: Apr 7 22:28:04 asterix dovecot: IMAP(test): acl: initializing backend with data: vfile Apr 7 22:28:04 asterix dovecot: IMAP(test): acl: acl username = test Apr 7 22:28:04 asterix dovecot: IMAP(test): acl: owner = 0 Apr 7 22:28:04 asterix dovecot: IMAP(test): acl vfile: Global ACL directory: (null) Apr 7 22:28:04 asterix dovecot: child 5441 (imap) killed with signal 11 (core dumped) The backtrace looks like the one I got with your first quota fix, but quota works now and this error is reproducible with or without the quota plugin: GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type show copying and show warranty for details. This GDB was configured as i486-linux-gnu... warning: Can't read pathname for load map: Input/output error. Reading symbols from /lib/i686/cmov/libdl.so.2...done. Loaded symbols for /lib/i686/cmov/libdl.so.2 Reading symbols from /lib/i686/cmov/libc.so.6...done. Loaded symbols for /lib/i686/cmov/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /opt/dovecot/lib/dovecot/imap/lib01_acl_plugin.so...done. Loaded symbols for /opt/dovecot/lib/dovecot/imap/lib01_acl_plugin.so Reading symbols from /opt/dovecot/lib/dovecot/imap/lib02_imap_acl_plugin.so...done. Loaded symbols for /opt/dovecot/lib/dovecot/imap/lib02_imap_acl_plugin.so Reading symbols from /opt/dovecot/lib/dovecot/imap/lib10_quota_plugin.so...done. Loaded symbols for /opt/dovecot/lib/dovecot/imap/lib10_quota_plugin.so Reading symbols from /opt/dovecot/lib/dovecot/imap/lib11_imap_quota_plugin.so...done. Loaded symbols for /opt/dovecot/lib/dovecot/imap/lib11_imap_quota_plugin.so Reading symbols from /opt/dovecot/lib/dovecot/imap/lib20_fts_plugin.so...done. Loaded symbols for /opt/dovecot/lib/dovecot/imap/lib20_fts_plugin.so Reading symbols from /opt/dovecot/lib/dovecot/imap/lib21_fts_squat_plugin.so...done. Loaded symbols for /opt/dovecot/lib/dovecot/imap/lib21_fts_squat_plugin.so Reading symbols from /lib/i686/cmov/libnss_compat.so.2...done. Loaded symbols for /lib/i686/cmov/libnss_compat.so.2 Reading symbols from /lib/i686/cmov/libnsl.so.1...done. Loaded symbols for /lib/i686/cmov/libnsl.so.1 Reading symbols from /lib/i686/cmov/libnss_nis.so.2...done. Loaded symbols for /lib/i686/cmov/libnss_nis.so.2 Reading symbols from /lib/i686/cmov/libnss_files.so.2...done. Loaded symbols for /lib/i686/cmov/libnss_files.so.2 Core was generated by `imap'. Program terminated with signal 11, Segmentation fault. [New process 5441] #0 0xb7ee43f1 in acl_mailbox_get_aclobj (box=0x8693488) at acl-mailbox.c:49 49 struct acl_mailbox *abox = ACL_CONTEXT(box); (gdb) bt full #0 0xb7ee43f1 in acl_mailbox_get_aclobj (box=0x8693488) at acl-mailbox.c:49 No locals. #1 0xb7d77c89 in cmd_myrights (cmd=0x8658b90) at imap-acl-plugin.c:305 storage = (struct mail_storage
[Dovecot] dovecot doesnt see any emails
$ dovecot --version 1.1.13 $ grep ^mail_location /usr/local/etc/dovecot.conf mail_location = maildir:~vpopmail/domains/%d/%u/Maildir/ $ i use SquirrelMail as a client to IMAP in, but when I login, I dont see any emails in my INBOX I even tried pop3 same story $ telnet localhost pop3 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK Dovecot ready. USER xxx...@xxx.xxx +OK PASS XX +OK Logged in. UIDL +OK . QUIT +OK Logging out. Connection closed by foreign host. $ -- http://alexus.org/
Re: [Dovecot] deliver vs lda
On Wed, 2009-04-08 at 04:01, Timo Sirainen wrote: deliver is the binary name. but it's configured inside protocol lda {} section. This is getting annoying, any thoughts on what would be a good unifying name? annoying? who complains? I suspect a negligible number of people. a) deliver binary, protocol deliver {} changing protocol would be a huge mistake due to its current widespread use and I can envisage many many many complaints of it stopped working etc, lets face it, most people don't read changelogs in detail, if at all, and almost all are used in automated startups so start-up warnings are not really much use. c) dovecot-lda binary, protocol lda {} if you absolutely must change the binary name, then C would be my option, but be warned of the above caution for this as well. Basically, if it aint broke, why break it?
Re: [Dovecot] Segfault in ACL Plugin + user shared folders
On Tue, 2009-04-07 at 23:01 +0200, Markus Werner wrote: I have another problem, this time with user shared folders: http://hg.dovecot.org/dovecot-1.2/rev/7d484e0f0789 http://hg.dovecot.org/dovecot-1.2/rev/3a30d73fc463 http://hg.dovecot.org/dovecot-1.2/rev/b6abc84440df signature.asc Description: This is a digitally signed message part
Re: [Dovecot] deliver vs lda
On Wed, 2009-04-08 at 07:51 +1000, Noel Butler wrote: On Wed, 2009-04-08 at 04:01, Timo Sirainen wrote: deliver is the binary name. but it's configured inside protocol lda {} section. This is getting annoying, any thoughts on what would be a good unifying name? annoying? who complains? I suspect a negligible number of people. Me. It makes my code ugly. It makes writing to wiki difficult when you never know if you should call it deliver or lda. Basically there's no consistency, which is annoying. a) deliver binary, protocol deliver {} changing protocol would be a huge mistake due to its current widespread use and I can envisage many many many complaints of it stopped working etc, lets face it, most people don't read changelogs in detail, if at all, and almost all are used in automated startups so start-up warnings are not really much use. My plan was to keep it working as protocol lda {} in any case for v1.x and drop it in v2.0 when there are probably going to be other configuration changes. c) dovecot-lda binary, protocol lda {} if you absolutely must change the binary name, then C would be my option, but be warned of the above caution for this as well. C is beginning to sound pretty good. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] deliver vs lda
Timo Sirainen wrote: deliver is the binary name. but it's configured inside protocol lda {} section. This is getting annoying, any thoughts on what would be a good unifying name? c) dovecot-lda binary, protocol lda {} I'd vote for C as well.
Re: [Dovecot] deliver vs lda
snip My plan was to keep it working as protocol lda {} in any case for v1.x and drop it in v2.0 when there are probably going to be other configuration changes. Renaming it at a major version change makes the most sense since an admin will have to test and fix config files anyway. signature.asc Description: OpenPGP digital signature
Re: [Dovecot] Segfault in ACL Plugin + user shared folders
Hi Timo, http://hg.dovecot.org/dovecot-1.2/rev/7d484e0f0789 http://hg.dovecot.org/dovecot-1.2/rev/3a30d73fc463 http://hg.dovecot.org/dovecot-1.2/rev/b6abc84440df With list = children the namespace ist still not listed, but that's no problem for me. With list = all now there is a folder named % listed, directly under #User/, additionaly to mar...@example.com. Accessing the folder mar...@example.com/ForTest with Thunderbird results in a segfault. Mutt works. (FYI: I changed the usernames, now they include @domain, if that matters) Apr 8 00:50:41 asterix dovecot: imap-login: Login: user=t...@example.com, method=PLAIN, rip=192.168.128.151, lip=192.168.128.151, secured Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): Loading modules from directory: /opt/dovecot/lib/dovecot/imap Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): Module loaded: /opt/dovecot/lib/dovecot/imap/lib01_acl_plugin.so Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): Module loaded: /opt/dovecot/lib/dovecot/imap/lib02_imap_acl_plugin.so Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): Module loaded: /opt/dovecot/lib/dovecot/imap/lib10_quota_plugin.so Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): Module loaded: /opt/dovecot/lib/dovecot/imap/lib11_imap_quota_plugin.so Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): Module loaded: /opt/dovecot/lib/dovecot/imap/lib20_fts_plugin.so Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): Module loaded: /opt/dovecot/lib/dovecot/imap/lib21_fts_squat_plugin.so Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): Effective uid=2000, gid=2000, home=/var/spool/dovecot/users/example.com/test Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): Quota root: name=user backend=dict args=:file:/var/spool/dovecot/users/example.com/test/Maildir/dovecot-quota Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): Quota rule: root=user mailbox=* bytes=2147483648 messages=5 Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): dict quota: user=t...@example.com, uri=file:/var/spool/dovecot/users/example.com/test/Maildir/dovecot-quota, noenforcing=0 Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): Namespace: type=private, prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): maildir: data=~/Maildir Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): maildir++: root=/var/spool/dovecot/users/example.com/test/Maildir, index=, control=, inbox=/var/spool/dovecot/users/example.com/test/Maildir Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): acl: initializing backend with data: vfile Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): acl: acl username = t...@example.com Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): acl: owner = 1 Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): acl vfile: Global ACL directory: (null) Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): Namespace: type=public, prefix=#Shared/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=yes Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): maildir: data=/var/spool/dovecot/sharedfolders:INDEX=~/Maildir/index/public:CONTROL=~/Maildir/control/public Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): maildir++: root=/var/spool/dovecot/sharedfolders, index=/var/spool/dovecot/users/example.com/test/Maildir/index/public, control=/var/spool/dovecot/users/example.com/test/Maildir/control/public, inbox= Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): acl: initializing backend with data: vfile Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): acl: acl username = t...@example.com Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): acl: owner = 0 Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): acl vfile: Global ACL directory: (null) Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): Namespace: type=shared, prefix=#User/%u/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=no Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): shared: root=, index=, control=, inbox= Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): dict quota: user=mar...@example.com, uri=file:/var/spool/dovecot/users/example.com/test/Maildir/dovecot-quota, noenforcing=0 Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): auth input: uid=2000 Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): auth input: gid=2000 Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): auth input: home=/var/spool/dovecot/users/example.com/markus Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): auth input: quota_rule=*:storage=20G:messages=50 Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): maildir: data=/var/spool/dovecot/users/example.com/markus/Maildir:INDEX=~/Maildir/index/shared/mar...@example.com Apr 8 00:50:41 asterix dovecot: IMAP(t...@example.com): maildir++:
Re: [Dovecot] dovecot doesnt see any emails
Timo Sirainen wrote: On Tue, 2009-04-07 at 17:36 -0400, alexus wrote: mail_location = maildir:~vpopmail/domains/%d/%u/Maildir/ You can't count on that!!! IF there are over 100 domains, domain number 101 will be ~vpopmail/domains/1/%d...and domain number 201 will be ~vpopmail/domains/2/%d... Same for domains with over 100 users. If you have deleted domains, or lost the file that controls directory hashing, things can really get weird. The only safe way to locate domains and/or users with vpopmail is to ask vpopmail where they are located. Rick Widmer previous vpopmail developer
Re: [Dovecot] dovecot doesnt see any emails
On Tue, Apr 7, 2009 at 11:17 PM, Rick Widmer ya...@rickwidmer.com wrote: Timo Sirainen wrote: On Tue, 2009-04-07 at 17:36 -0400, alexus wrote: mail_location = maildir:~vpopmail/domains/%d/%u/Maildir/ You can't count on that!!! IF there are over 100 domains, domain number 101 will be ~vpopmail/domains/1/%d... and domain number 201 will be ~vpopmail/domains/2/%d... Same for domains with over 100 users. If you have deleted domains, or lost the file that controls directory hashing, things can really get weird. The only safe way to locate domains and/or users with vpopmail is to ask vpopmail where they are located. okay, so what do you suggest then? Rick Widmer previous vpopmail developer -- http://alexus.org/
Re: [Dovecot] dovecot doesnt see any emails
On Tue, Apr 7, 2009 at 11:41 PM, alexus ale...@gmail.com wrote: On Tue, Apr 7, 2009 at 11:17 PM, Rick Widmer ya...@rickwidmer.com wrote: Timo Sirainen wrote: On Tue, 2009-04-07 at 17:36 -0400, alexus wrote: mail_location = maildir:~vpopmail/domains/%d/%u/Maildir/ You can't count on that!!! IF there are over 100 domains, domain number 101 will be ~vpopmail/domains/1/%d... and domain number 201 will be ~vpopmail/domains/2/%d... Same for domains with over 100 users. If you have deleted domains, or lost the file that controls directory hashing, things can really get weird. The only safe way to locate domains and/or users with vpopmail is to ask vpopmail where they are located. okay, so what do you suggest then? Rick Widmer previous vpopmail developer -- http://alexus.org/ i tried like this mail_location = maildir:`~vpopmail/bin/vuserinfo -d %u`/Maildir/ but that didn't work... -- http://alexus.org/
Re: [Dovecot] dovecot doesnt see any emails
On Apr 7, 2009, at 11:41 PM, alexus wrote: If you have deleted domains, or lost the file that controls directory hashing, things can really get weird. The only safe way to locate domains and/or users with vpopmail is to ask vpopmail where they are located. okay, so what do you suggest then? You didn't post your whole dovecot -n output, so I don't know what you're using as userdb. But this should work with userdb vpopmail and also vpopmail checkpassword: mail_location = maildir:~