Re: [Dovecot] Global fields for passwd-file database
21.05.2011 19:59, Timo Sirainen wrote: I guess a generic implementation could be added: At least several people are waiting for it. passdb { # overridden by passdb entries extra_fields_defaults = uid=1000 gid=1000 # these override the passdb entries extra_fields_overrides = home=/home/%u } And the same for userdb. Although I don't really like those setting names. Wonder if there are some better ones. Nothing bad with these names. It's clear even without comments. Thanks. -- Best regards, Sergey Urushkin
Re: [Dovecot] Debian or Ubuntu packages ?
Am 23.05.2011 06:45, schrieb Frank Bonnet: Hello Anyone knows which version of Dovecot 2 are availables on Squeeze Debian or Ubuntu server 10.04 LTS ? you mostly got the latest dove here http://xi.rename-it.nl/debian/ anyway read http://wiki1.dovecot.org/PrebuiltBinaries#Automatically_Built_Packages Also what is the Linux OS that is must up to date ? mostly last one got released so ubuntu 11.4 should may it be for today *g Thanks -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria
[Dovecot] [PATCH] Indexing mail attachments with Dovecot + Solr
Indexing mail attachments with Dovecot + Solr. This patch has been tested with these versions: * dovecot 2.0.9 * apache-solr 1.4.1 This is a patch for the fts-solr plugin (that indexes mail messages for Dovecot with Solr). In main stream, the plugin does not index attachments; With this patch, you can index mails and their attachments (pdf, docs, openoffice docs...) . You can get others goodies with this patch and the Solr Config provided, like Synonyms and Stemming (Spanish by default). Attachment indexing is provided by Solr Cell and Tika (ExtractingRequestHandler) * http://wiki.apache.org/solr/ExtractingRequestHandler Synonyms and Stemming are provided by SnowballPorterFilterFactory from Solr Language Analysis: * http://wiki.apache.org/solr/LanguageAnalysis We have tested Solr with Tomcat and Jetty. Tomcat is better to handle UTF-8 and bigger POSTS. Attachments file format supported * http://tika.apache.org/0.9/formats.html At present, attachments in attachments (like, for example, attachments in fordwarded eml attachments) are not indexed. Also, keep in mind that there are many types of files, and many variants of the same file type. Per Example, some pdf files are not readable by solr pdf reader. Config: There are two new options added to fts_solr property: * index-attachments Enable attachments indexing. * manual-update Avoid index on user search. You can trigger indexing using doveadm search or doveadm index commands. There is a new property for the section plugin to filter the mimetypes that you want to index. * fts_solr_mimetype files with this mimetype will be sent to solr. After integrating solr directory in your solr config, and building Dovecot with fts-solr support and with fts-solr-attachments-r885.patch applied, you can update your dovecot config by adding to your dovecot.conf: ... mail_pluings = $mail_plugins fts fts_solr plugin { fts = solr fts_solr = url=http://solrhost:8983/solr/ break-imap-search index-attachments fts_solr_mimetype = application/x-pdf application/vnd.openxmlformats-officedocument.wordprocessingml.document } ... -- Antonio Pérez-Aranda Alcaide aperezara...@yaco.es Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
Re: [Dovecot] dovecot-antispam dependencies
I would like to see a tagged version too, but trunk works fine here. Since the OP mentions Gentoo, my latest ebuild for dovecot-antispam for 2.x is attached. The thing with Gentoo: Unless a tagged version is created, it's very unlikely that the Gentoo guys update the current ebuild (aka: package) and thus the incompatibility between the dovecot and the dovecot-antispam packages in the package tree remains. Thanks for the ebuild. Cheers, -sven
[Dovecot] Hide INBOX prefix on shared mailboxes
Hello List, We've upgraded our Dovecot system from 1.2.4 to 2.0.12. If someone now accesses an inbox of another user at the shared namespace, the folder will be shown as: shared/martin/INBOX The 1.2 installation has shown the folder like shared/martin Is it possible to achieve the old behavior? ** Configuration of the namespaces * dovecot 1.2 namespace private { separator = / prefix = #location defaults to mail_location. inbox = yes } namespace shared { separator = / prefix = shared/%%n location = maildir:%%h:INDEX=~/shared/%%n/ subscriptions = no list = children } * dovecot 2.0 namespace { type = private separator = / prefix = #location defaults to mail_location. inbox = yes } namespace { type = shared separator = / prefix = shared/%%n/ location = maildir:%%h:INDEX=~/shared/%%n subscriptions = no list = children } Best regards, Martin Werthmoeller -- LWsystems GmbH Co. KG ++ http://www.lw-systems.de/impressum Phone: +49 +5455 932132 ++ Fax: +49 +5455 932099 Your experts for Linux, Open Source and IT security. ++ LWsystems GmbH Co. KG Headquaters: Tegelerweg 11, D-49186 Bad Iburg, Germany Phone +49 (0)5455 932132 fax +49 (0)5455 932099 register of commerce: Amtsgericht Osnabrück, hra 110668 VAT no. DE23852211 Managing Directors: Dipl.-Ing. Ansgar H. Licher, Bad Iburg, Germany Dipl.-Ing. Martin Werthmöller, Ibbenbüren, Germany For further company details please look at: http://www.lw-systems.de/impressum ++
Re: [Dovecot] [PATCH] Indexing mail attachments with Dovecot + Solr
Sorry, I forgot to include the attachment. 2011/5/23 Antonio Perez-Aranda aperezara...@yaco.es: Indexing mail attachments with Dovecot + Solr. This patch has been tested with these versions: * dovecot 2.0.9 * apache-solr 1.4.1 This is a patch for the fts-solr plugin (that indexes mail messages for Dovecot with Solr). In main stream, the plugin does not index attachments; With this patch, you can index mails and their attachments (pdf, docs, openoffice docs...) . You can get others goodies with this patch and the Solr Config provided, like Synonyms and Stemming (Spanish by default). Attachment indexing is provided by Solr Cell and Tika (ExtractingRequestHandler) * http://wiki.apache.org/solr/ExtractingRequestHandler Synonyms and Stemming are provided by SnowballPorterFilterFactory from Solr Language Analysis: * http://wiki.apache.org/solr/LanguageAnalysis We have tested Solr with Tomcat and Jetty. Tomcat is better to handle UTF-8 and bigger POSTS. Attachments file format supported * http://tika.apache.org/0.9/formats.html At present, attachments in attachments (like, for example, attachments in fordwarded eml attachments) are not indexed. Also, keep in mind that there are many types of files, and many variants of the same file type. Per Example, some pdf files are not readable by solr pdf reader. Config: There are two new options added to fts_solr property: * index-attachments Enable attachments indexing. * manual-update Avoid index on user search. You can trigger indexing using doveadm search or doveadm index commands. There is a new property for the section plugin to filter the mimetypes that you want to index. * fts_solr_mimetype files with this mimetype will be sent to solr. After integrating solr directory in your solr config, and building Dovecot with fts-solr support and with fts-solr-attachments-r885.patch applied, you can update your dovecot config by adding to your dovecot.conf: ... mail_pluings = $mail_plugins fts fts_solr plugin { fts = solr fts_solr = url=http://solrhost:8983/solr/ break-imap-search index-attachments fts_solr_mimetype = application/x-pdf application/vnd.openxmlformats-officedocument.wordprocessingml.document } ... -- Antonio Pérez-Aranda Alcaide aperezara...@yaco.es Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29 -- Antonio Pérez-Aranda Alcaide aperezara...@yaco.es Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29 fts-solr-attachments-r885.tar.gz Description: GNU Zip compressed data
Re: [Dovecot] dovecot-antispam dependencies
On 23/05/11 13:35, Sven Schwyn wrote: I would like to see a tagged version too, but trunk works fine here. Since the OP mentions Gentoo, my latest ebuild for dovecot-antispam for 2.x is attached. The thing with Gentoo: Unless a tagged version is created, it's very unlikely that the Gentoo guys update the current ebuild (aka: package) and thus the incompatibility between the dovecot and the dovecot-antispam packages in the package tree remains. Thanks for the ebuild. Cheers, -sven This was discussed some time ago [1], but it seems as if no real progress has been made since. Maybe we can put some spare time into the points Eugene made? Eugene: is there any progress on the issues listed in the mentioned e-mail? Anything we can help you with? [1] http://marc.info/?l=dovecotm=128631351625368w=2 -- Regards, Tom
Re: [Dovecot] [PATCH] Indexing mail attachments with Dovecot + Solr
On 2011-05-23 7:11 AM, Antonio Perez-Aranda wrote: Indexing mail attachments with Dovecot + Solr. This patch has been tested with these versions: * dovecot 2.0.9 * apache-solr 1.4.1 Isn't it customary - and logical - to always test/patch against the current stable RELEASE version (ie, 2.0.13)? -- Best regards, Charles
Re: [Dovecot] Hide INBOX prefix on shared mailboxes
On 2011-05-23 7:52 AM, Martin Werthmöller wrote: Hello List, We've upgraded our Dovecot system from 1.2.4 to 2.0.12. If someone now accesses an inbox of another user at the shared namespace, the folder will be shown as: shared/martin/INBOX The 1.2 installation has shown the folder like shared/martin Is it possible to achieve the old behavior? What if Martin shared something other than his INBOX though? I think this is a cosmetic issue that could quickly get ugly since different people might like it shown differently... -- Best regards, Charles
Re: [Dovecot] PERMANENTFLAGS response if ACL seen/write rights are missing
On Sun, 2011-05-22 at 23:37 -0600, Michael M Slusarz wrote: In dovecot 2.0.13, if a user does not have either s or w ACL rights on a mailbox, PERMANENTFLAGS correctly indicates that the mailbox has not permanent flags: Fixed in v2.1: http://hg.dovecot.org/dovecot-2.1/rev/189c9baf840a Too big of a change for v2.0.
Re: [Dovecot] zlib
On Sun, 2011-05-22 at 14:05 -0700, Daniel L. Miller wrote: How can I enable zlib for reading compressed messages but not writing? That's the default. Writing is enabled only with zlib_save plugin setting.
[Dovecot] HG Compilation error
Hi, Here the error I get, when compiling from Mercurial repository Making all in ipc make[3]: Entering directory `/data/admin/src/mail/dovecot2/dovecot-2.0/src/ipc' MAKE[3]: *** NO RULE TO MAKE TARGET `ALL'. STOP. make[3]: Leaving directory `/data/admin/src/mail/dovecot2/dovecot-2.0/src/ipc' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/data/admin/src/mail/dovecot2/dovecot-2.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/data/admin/src/mail/dovecot2/dovecot-2.0' make: *** [all] Error 2 How to fix that ? thx jm
Re: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results
On Sun, 2011-05-22 at 08:46 -0400, Aliet Santiesteban Sifontes wrote: Timo, Can you recommend us some benchmarking tools to test the dovecot cluster setup?? See http://www.imapwiki.org/Benchmarking - the bottom lists all the benchmarking tools I know of.
Re: [Dovecot] Crash test :)
On Sun, 2011-05-22 at 07:27 +0200, Kamil Jońca wrote: Um. :( Files were created about 2 months ago. It was certainly 1.x, but now it is hard to say, what exactly version it was. But question is open: Can I (and how) restore mails from so old backup? Dovecot v2.0 should be able to read v1.x's dbox files. If it can, it can restore the backups. The only difference I can think of is that in some version I changed the default to have dbox save everything under mailboxes/ directory. If your backups don't use that directory, you can use something like: doveadm import sdbox:~/Mail/dbox-temp:MAILBOXDIR= #Dbox mailbox spamcop/reports Unfortunately neither debian 2.0.12 nor 2.0.13 version can import these. Strange thing is that message Invalid dbox header size is printed after creating dovecot-uidvalidity and dovecot-index* files for source dbox, u.* files are not read at all. Oh. I think it's entirely possible that current v2.0 can't really read v1.x dbox without giving errors..
Re: [Dovecot] SVN Compilation error
On Sun, 2011-05-22 at 21:14 -0500, Joan Moreau wrote: Here the error I get (SVN) hg, not svn. make[3]: Entering directory `/data/admin/src/mail/dovecot2/dovecot-2.0/src/ipc' MAKE[3]: *** NO RULE TO MAKE TARGET `ALL'. STOP. Thanks, fixed: http://hg.dovecot.org/dovecot-2.0/rev/9127a988acb8
Re: [Dovecot] [PATCH] Indexing mail attachments with Dovecot + Solr
Yes and I have it in my TODO, but we are using this version on a production system. And it is our base system for development. 2011/5/23 Charles Marcus cmar...@media-brokers.com: On 2011-05-23 7:11 AM, Antonio Perez-Aranda wrote: Indexing mail attachments with Dovecot + Solr. This patch has been tested with these versions: * dovecot 2.0.9 * apache-solr 1.4.1 Isn't it customary - and logical - to always test/patch against the current stable RELEASE version (ie, 2.0.13)? -- Best regards, Charles -- Antonio Pérez-Aranda Alcaide aperezara...@yaco.es Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
[Dovecot] delegation of admin rights
Hello, We're a rather largish university (largest in Israel), with some 60-70k users, using Dovecot 1.2.14 (we're cautious about moving to 2.0.x for now). We need to provide admin rights to faculty computer/IT staff, so they can have access to the mailboxes of their respective users. We use LDAP as an authentication/authorization backend. Currently, dovecot has a master user which can access all mailboxes. I am looking for a solution, preferably within dovecot, to create a delegation type of administration, allowing certain users to access the mailboxes of other users based on an LDAP filter or LDAP attribute value. If possible, allowing per protocol access(that is, I would like to give them IMAP access and not POP3) and within IMAP allowing only to view a mailbox, but not to change it, that would be even better. Does anyone on this list know of any IMAP proxy providing such abilities, and also, would the Dovecot team consider this as a candidate for a request for enhancement ? This would be very useful in a delegated administration environment, like most larger organizations, hosting ISP, and other environments where delegation is an important and very much needed ability. thanks a bunch, -- Ariel -- Ariel Biener e-mail: ar...@post.tau.ac.il PGP: http://www.tau.ac.il/~ariel/pgp.html
Re: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results
On 11/05/2011 00:00, Aliet Santiesteban Sifontes wrote: Using local storage(local hard driver ext4 filesystems) Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 7798 3868 3889 7706 7566 10713 1080 6089 7559 7688 15562 7806 3879 3874 7716 7585 10873 1114 6018 7578 7696 15572 7866 3910 3855 7773 7748 11053 1076 6253 7747 7761 15710 7893 3978 3931 7802 7772 10988 1117 6197 7767 7789 15760 7775 3853 3809 7683 7654 10897 1081 6142 7651 7675 15534 7877 3919 3872 7789 7758 10986 1085 6218 7755 7773 15720 GFS2-mdbox, (no plugins) Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 7547 3739 3749 7455 7421 10605 1053 5931 7417 7443 15074 7480 3702 3724 7387 7367 10558 1064 5874 7366 7378 14946 7523 3759 3711 7428 7394 10560 1126 5898 7390 7412 15014 7455 3736 3621 7364 7326 10561 1088 5854 7324 7349 14880 7431 3712 3686 7337 7312 10406 1017 5882 7311 7328 14844 7426 3704 3671 7334 7296 10364 1076 5791 7296 7325 14834 7517 3673 3782 7425 7406 10554 1103 5913 7404 7414 15008 Hi, this performance seems excellent! There is no reason at all why you might try this, but as someone on lower end hardware I would be fascinated to learn how the performance changes is: - Switch FC to gig ethernet? (expecting substantial performance hit?) - Reverting to maildir (suspecting much less of a hit based on your numbers above?) - OCFS vs GFS (although probably not sensible in your architecture since you have a support contract for GFS, some have suggested OCFS can be faster?) Please do post any other performance results - seems like you have found an excellent cluster setup? Ed W
[Dovecot] New IPC features : any configuration doc ?
Hi, Dovecot complains at start for the ipc listener not correctly configured. What is the configuration scheme ? Thanks JM
Re: [Dovecot] delegation of admin rights
On 23/05/2011 16:07, Ariel Biener wrote: We need to provide admin rights to faculty computer/IT staff, so they can have access to the mailboxes of their respective users. We use LDAP as an authentication/authorization backend. Currently, dovecot has a master user which can access all mailboxes. I am looking for a solution, preferably within dovecot, to create a delegation type of administration, allowing certain users to access the mailboxes of other users based on an LDAP filter or LDAP attribute value. If possible, allowing per protocol access(that is, I would like to give them IMAP access and not POP3) and within IMAP allowing only to view a mailbox, but not to change it, that would be even better. If I were doing this in SQL, then I would construct my SQL query to basically be true IFF some complicated where clause confirms the delegation? Possibly you can do a similar query in LDAP? Note one significant limitation is that the username is in the format admin*user in variable %u. This makes all your queries quite tricky... I would recommend considering sponsoring some feature request to have this split into two extra variables with the admin and usernames split out? In the case of LDAP that should make it possible to filter on some admin attribute? Also you have Checkpassword script option and you can do anything you like in that script? Good luck Ed W
Re: [Dovecot] delegation of admin rights
On 23.5.2011, at 18.38, Ed W wrote: Note one significant limitation is that the username is in the format admin*user in variable %u. I don't think this is true. Also you have Checkpassword script option and you can do anything you like in that script? Maybe something like that.. I think all of the pieces for this already exist in Dovecot. They just need to be put together in a way that works nicely. ACLs can be given to master user (although there still is no default ACL which makes this annoying). The checkpassword can anyway figure out if user X can be allowed to give user Y rights. I think all users then need to be both master users and passdb users.
Re: [Dovecot] New IPC features : any configuration doc ?
On 23.5.2011, at 18.24, Joan Moreau wrote: Dovecot complains at start for the ipc listener not correctly configured. What exactly is the error message? What is the configuration scheme ? You shouldn't have needed to do anything about it.
[Dovecot] v1.1.20 vs v1.2 v2.0
I am currently running v1.1.20 and was wondering if there is any compelling reason to upgrade to v1.2 or v2.0? For example is there any security updates in v1.2 or v2.0 that aren't included in v1.1.20? The other major thing I would be interested in knowing is there any speed enhancements in the newer versions? I am using basic PAM Auth and Maildir mailboxes on a Linux box. Let me know if you need any more information to answer my questions. Thanks, Adam
Re: [Dovecot] How to stop mail_executable from cwd to ~home
Timo wrote: As to how to stop the mail process from chdir'ing to a home directory If you don't want Dovecot to use a home directory, don't tell it a home directory. I'm all for that since I don't seem to have any need for a home directory. Any idea of how to do it with a passwd-file userdb backend? I also tried to override home directory with userdb { driver = passwd-file args = /etc/passwd home=/bundled/home/$n } but that didn't work out too well. Or is this feature a rephrasing of the current topic thread Global fields for passwd-file database. Joseph Tam jtam.h...@gmail.com
Re: [Dovecot] How to stop mail_executable from cwd to ~home
On 24.5.2011, at 0.48, Joseph Tam wrote: As to how to stop the mail process from chdir'ing to a home directory If you don't want Dovecot to use a home directory, don't tell it a home directory. I'm all for that since I don't seem to have any need for a home directory. Any idea of how to do it with a passwd-file userdb backend? Why do you have home directories listed in the passwd-file if you don't want to use them? I also tried to override home directory with userdb { driver = passwd-file args = /etc/passwd home=/bundled/home/$n } but that didn't work out too well. Or is this feature a rephrasing of the current topic thread Global fields for passwd-file database. Could be.
Re: [Dovecot] How to stop mail_executable from cwd to ~home
On Tue, 24 May 2011, Timo Sirainen wrote: Why do you have home directories listed in the passwd-file if you don't want to use them? It's the authentication database for everything, not just Dovecot. I I guess I could just synthesize one by creating an auxilliary password file with the other information stripped out. Or just let dovecot do an automount on a per-user demand and see how it goes -- I think this only becomes a concern if I do a doveadm command with wildcarded users. Joseph Tam jtam.h...@gmail.com
Re: [Dovecot] New IPC features : any configuration doc ?
Here the message at restart, when using the HG version (2.0.13 works nicely) # /etc/init.d/dovecot restart Stopping dovecot done Starting dovecot Fatal: service(ipc) User doesn't exist: dovenull (See service ipc { unix_listener /var/run/dovecot/login/ipc-proxy { user } } setting) startproc: exit status of parent of /usr/sbin/dovecot: 89 On Mon, 23 May 2011 19:18:46 +0300, Timo Sirainen wrote: On 23.5.2011, at 18.24, Joan Moreau wrote: Dovecot complains at start for the ipc listener not correctly configured. What exactly is the error message? What is the configuration scheme ? You shouldn't have needed to do anything about it.
Re: [Dovecot] New IPC features : any configuration doc ?
default_login_user should be set to the user that runs imap-login and pop3-login processes. Apparently you haven't changed that from the default dovenull, but instead have set service imap-login { user } setting directly. On 24.5.2011, at 2.42, Joan Moreau wrote: Here the message at restart, when using the HG version (2.0.13 works nicely) # /etc/init.d/dovecot restart Stopping dovecot done Starting dovecot Fatal: service(ipc) User doesn't exist: dovenull (See service ipc { unix_listener /var/run/dovecot/login/ipc-proxy { user } } setting) startproc: exit status of parent of /usr/sbin/dovecot: 89 On Mon, 23 May 2011 19:18:46 +0300, Timo Sirainen wrote: On 23.5.2011, at 18.24, Joan Moreau wrote: Dovecot complains at start for the ipc listener not correctly configured. What exactly is the error message? What is the configuration scheme ? You shouldn't have needed to do anything about it.