Re: [Dovecot] Invalid doveadm search queries not rejected

2011-11-16 Thread Peter Williams
On Tue, 2011-11-15 at 22:24 +0200, Timo Sirainen wrote: On Thu, 2011-11-10 at 23:41 -0800, Peter Williams wrote: I think I've encountered a bug in Dovecot 2.0.9 (as provided on CentOS 6). According to the doveadm-search-query(7) manual page, a mailbox specification can only come at

Re: [Dovecot] v2.1.beta1 released

2011-11-16 Thread Odhiambo Washington
On Wed, Nov 9, 2011 at 19:37, Timo Sirainen t...@iki.fi wrote: On Wed, 2011-11-09 at 18:34 +0300, Odhiambo Washington wrote: I have today tried compiling this -beta, but I saw so many warning about linking libraries, which I ignored, Probably plugin warnings which you can safely ignore.

Re: [Dovecot] submission_host problem

2011-11-16 Thread Bambero
On Tue, Nov 15, 2011 at 8:49 PM, Timo Sirainen t...@iki.fi wrote: On Sat, 2011-11-12 at 05:32 +0100, Bambero wrote: I configured dovecot to use submission smtp host becouse of chroot. submission_host = 127.0.0.1 Unfortunatelly: Nov 12 05:11:15 myhost exim[23366]: 2011-11-12 05:11:15 SMTP

[Dovecot] Usage of director without LMTP

2011-11-16 Thread Oliver Eales
Hello, we want to migrate our dovecot 1.2 installation to verison 2.0 and want to use the director feature of version 2. Currently we have a two tier archtiecture, with dovecot proxys and a mailstore togehter with indexes on NFS. (With the common problems of this setup...) For the final setup we

Re: [Dovecot] submission_host problem

2011-11-16 Thread Marc Haber
On Tue, Nov 15, 2011 at 09:49:20PM +0200, Timo Sirainen wrote: On Sat, 2011-11-12 at 05:32 +0100, Bambero wrote: I configured dovecot to use submission smtp host becouse of chroot. submission_host = 127.0.0.1 Unfortunatelly: Nov 12 05:11:15 myhost exim[23366]: 2011-11-12 05:11:15

[Dovecot] Creating a password_scheme

2011-11-16 Thread Jordi Llonch
Hello, I am trying to develop a password_scheme for the Django passwords. After building and installing the module in $module_dir/auth/password/djangopass.so, also tried libdjangopass.so and libdjangopass_plugin.so, Dovecot does not recognize the scheme: doveadm pw -l CRYPT MD5 MD5-CRYPT SHA

Re: [Dovecot] submission_host problem

2011-11-16 Thread David Ford
this and several other features are tools i use with tremendous success at battling spam. every MTA connection that violates protocol by making an assumption or posts invalid data for the SMTP phase, gets kicked off with a 421. -david On 11/16/2011 09:11 AM, Marc Haber wrote: I have always

Re: [Dovecot] submission_host problem

2011-11-16 Thread Timo Sirainen
On Wed, 2011-11-16 at 15:00 +0100, Bambero wrote: Nov 12 05:11:15 myhost exim[23366]: 2011-11-12 05:11:15 SMTP protocol synchronization error (next input sent too soon: pipelining was not advertised): rejected EHLO myhost H=localhost [127.0.0.1] next input=MAIL FROM:root@myhost\\r\\n

Re: [Dovecot] Chroot

2011-11-16 Thread Bambero
On Tue, Nov 15, 2011 at 8:44 PM, Timo Sirainen t...@iki.fi wrote: On Sun, 2011-11-13 at 17:25 +0100, Bambero wrote: all maildirs are located in: /var/mail/j...@example.com/Maildir So this is /var/mail/%u/Maildir template. namespace {   type = shared   separator = /   prefix = shared/%%u/

Re: [Dovecot] Chroot

2011-11-16 Thread Timo Sirainen
On Wed, 2011-11-16 at 15:54 +0100, Bambero wrote: Error: userdb lookup: connect(/var/dovecot/auth-userdb) failed: No such file or directory This is done because you used %%h, to look up home directory from userdb. If you don't use %%h, it's not done. Thanks but my db backend returns

Re: [Dovecot] Usage of director without LMTP

2011-11-16 Thread Timo Sirainen
On Wed, 2011-11-16 at 15:02 +0100, Oliver Eales wrote: For the final setup we want to utilize the director for all protocols (IMAP,POP,LMTP,SIEVE). During the transition phase we will not be able to use LMTP for mail delivery, but we are still stuck with deliver as LDA. So for mail delivery

Re: [Dovecot] setting namespaces using script-login environment in 2.0

2011-11-16 Thread Alexander 'Leo' Bergolth
On 11/04/2011 10:18 PM, Timo Sirainen wrote: On Mon, 2011-10-31 at 18:00 +0100, Alexander 'Leo' Bergolth wrote: NAMESPACE_2='maildir:/var/mail/Shared/spamrep:INDEX=~/Maildir/index/Shared/spamrep' NAMESPACE_2_PREFIX=Shared/spamrep/ The settings are now named.

Re: [Dovecot] Creating a password_scheme

2011-11-16 Thread Timo Sirainen
On Thu, 2011-11-17 at 01:13 +1100, Jordi Llonch wrote: I am trying to develop a password_scheme for the Django passwords. After building and installing the module in $module_dir/auth/password/djangopass.so, also tried libdjangopass.so and libdjangopass_plugin.so, Dovecot does not recognize

[Dovecot] How to do SEARCH with doveadm

2011-11-16 Thread Alexander Chekalin
Hello, I'm still playing with search messages from/to specified email address. In fact I need to do that to take such messages and copy it to another mailbox (so that box will contain 'Search results' and will be available to examine by any IMAP client). I've put my mailings in mdbox storage

Re: [Dovecot] dovecot-lda quota rule

2011-11-16 Thread micah anderson
On Tue, 15 Nov 2011 22:27:20 +0200, Timo Sirainen t...@iki.fi wrote: On Thu, 2011-11-10 at 13:59 -0500, Micah Anderson wrote: I really like the feature where you can define quota rules with percents which trigger off of the default values[0] (so you can set the Trash to allow for 10% more

Re: [Dovecot] Chroot

2011-11-16 Thread Bambero
On Wed, Nov 16, 2011 at 3:59 PM, Timo Sirainen t...@iki.fi wrote: On Wed, 2011-11-16 at 15:54 +0100, Bambero wrote: Error: userdb lookup: connect(/var/dovecot/auth-userdb) failed: No such file or directory This is done because you used %%h, to look up home directory from userdb. If you

Re: [Dovecot] Chroot

2011-11-16 Thread Bambero
On Wed, Nov 16, 2011 at 5:23 PM, Bambero bamb...@gmail.com wrote: On Wed, Nov 16, 2011 at 3:59 PM, Timo Sirainen t...@iki.fi wrote: On Wed, 2011-11-16 at 15:54 +0100, Bambero wrote: Error: userdb lookup: connect(/var/dovecot/auth-userdb) failed: No such file or directory This is done

Re: [Dovecot] dovecot-lda quota rule

2011-11-16 Thread Timo Sirainen
On Wed, 2011-11-16 at 11:09 -0500, micah anderson wrote: protocol lda { plugin { quota_rule2 = INBOX:storage=200% } } Aha! Just what I was looking for. I presume the number following 'quota_rule' must be an unique number across all quota_rules in my config? No only unique,

Re: [Dovecot] submission_host problem

2011-11-16 Thread Bambero
On Wed, Nov 16, 2011 at 3:37 PM, Timo Sirainen t...@iki.fi wrote: On Wed, 2011-11-16 at 15:00 +0100, Bambero wrote: Nov 12 05:11:15 myhost exim[23366]: 2011-11-12 05:11:15 SMTP protocol synchronization error (next input sent too soon: pipelining was not advertised): rejected EHLO myhost

Re: [Dovecot] dovecot-lda quota rule

2011-11-16 Thread micah anderson
On Wed, 16 Nov 2011 18:27:20 +0200, Timo Sirainen t...@iki.fi wrote: On Wed, 2011-11-16 at 11:09 -0500, micah anderson wrote: protocol lda { plugin { quota_rule2 = INBOX:storage=200% } } Aha! Just what I was looking for. I presume the number following 'quota_rule'

Re: [Dovecot] Please advise on very fast search

2011-11-16 Thread Stan Hoeppner
On 11/16/2011 12:15 AM, Alexander Chekalin wrote: Hello, Stan, This is why I recommended mbox in the first place. If your only writes to these mailbox files are appends of new messages, mbox is the best format by far. It's faster at appending than any other format, and it's faster for

Re: [Dovecot] submission_host problem

2011-11-16 Thread Timo Sirainen
On Wed, 2011-11-16 at 17:28 +0100, Bambero wrote: Thanks a lot it almost helped. But now there is another problem: Nov 16 17:13:45 zeus exim[10613]: 2011-11-16 17:13:45 1RQi7C-0001lG-BX ** t...@apisoft.pl R=localuser T=local_delivery: Child process of local_delivery transport (running command

Re: [Dovecot] 2.1: virtual plugin and lsub

2011-11-16 Thread Timo Sirainen
On Wed, 2011-11-09 at 20:08 +0100, e-frog wrote: On 06.11.2011 17:03, wrote e-frog: 1 lsub virtual/* * LSUB () / virtual * LSUB () / virtual/Lists * LSUB () / virtual/unread 1 OK Lsub completed. Just tested this again with 2.1beta1 with the same result. Thanks, fixed:

Re: [Dovecot] Indexes to MLC-SSD

2011-11-16 Thread Timo Sirainen
On Mon, 2011-11-07 at 01:08 +0100, Patrick Westenberg wrote: Ed W schrieb: See the sticky in my reply. You use one of several techniques to ensure that users always end up on the server with the indexes on. That way much of the IO is served from that local machine and you only access

Re: [Dovecot] Missing public folder

2011-11-16 Thread Timo Sirainen
On Mon, 2011-11-07 at 11:10 +0100, komodo wrote: Hi i am using dovecot 2.0.13 and i can't see public folder in my mail client. But what is strange, it was working after instalation, and i don't know when it dissapeared. Maybe after some upgrade ? Try talking IMAP protocol directly:

Re: [Dovecot] Port variable in LMTP userdb lookups?

2011-11-16 Thread Timo Sirainen
On Mon, 2011-11-07 at 13:23 +0200, Mark Zealey wrote: 04-11-2011 23:56, Timo Sirainen yazmış: From my reading of the code in 2.0.15, you pass the local remote IP in lmtp/commands.c:427 but the struct mail_storage_service_input only has remote_ip and local_ip fields, not port fields (unlike

Re: [Dovecot] Seg fault in dovecot/auth 2.0.15

2011-11-16 Thread Timo Sirainen
Your message was discarded by mailman, probably because it was html-only. Anyway: On Wed, 2011-11-16 at 13:15 -0500, Mark Goldey wrote: (gdb) p *auth_request-userdb-userdb-iface $2 = {name = 0x807023e vpopmail, preinit = 0x8065d60 vpopmail_preinit, init = 0, deinit = 0, lookup = 0x8066010

Re: [Dovecot] Glued-together private namespaces

2011-11-16 Thread Mark Moseley
On Wed, Nov 16, 2011 at 10:34 AM, Timo Sirainen t...@iki.fi wrote: On Tue, 2011-11-15 at 16:04 -0800, Mark Moseley wrote: The gotcha is that you have two completely independent quotas with independent usage/limits for the INBOX and Archive namespaces. If that is what you want, it should all

Re: [Dovecot] submission_host problem

2011-11-16 Thread Bambero
On Wed, Nov 16, 2011 at 5:38 PM, Timo Sirainen t...@iki.fi wrote: On Wed, 2011-11-16 at 17:28 +0100, Bambero wrote: Thanks a lot it almost helped. But now there is another problem: Nov 16 17:13:45 zeus exim[10613]: 2011-11-16 17:13:45 1RQi7C-0001lG-BX ** t...@apisoft.pl R=localuser

Re: [Dovecot] submission_host problem

2011-11-16 Thread Timo Sirainen
On Wed, 2011-11-16 at 20:25 +0100, Bambero wrote: Can you see something here: No, the ?? isn't very helpful. gdb -p `pgrep dovecot-lda` This GDB was configured as i386-unknown-openbsd5.0. Oh, this is OpenBSD. Try if this works instead: gdb /usr/local/libexec/dovecot/dovecot-lda `pgrep

Re: [Dovecot] Indexes to MLC-SSD

2011-11-16 Thread Timo Sirainen
On Wed, 2011-11-16 at 19:40 +0100, Patrick Westenberg wrote: Timo Sirainen schrieb: On Mon, 2011-11-07 at 01:08 +0100, Patrick Westenberg wrote: My mail exchangers use dovecot-lda and I think indexes will be written from these servers too or am I wrong with this? You can use LMTP and

Re: [Dovecot] Getting started with sieve and conversion from procmail

2011-11-16 Thread Karsten Bräckelmann
On Tue, 2011-11-15 at 19:00 -0500, Alex wrote: DELIVER=/usr/libexec/dovecot/deliver :0 fhW | $DELIVER -m xspamtest Do you really want the pipe to be a (f)ilter? What do you expect deliver to pass back? And you're feeding deliver the mail (h)eaders only, dropping the body. -- char

Re: [Dovecot] Bus factor of dovecot / GIT

2011-11-16 Thread Steinar Bang
Timo Sirainen t...@iki.fi: I'm not as much against git anymore as I was when I switched to hg, but I don't see much benefits in switching to git either. I highly doubt I'd get even a single patch more if I used git instead of hg. FWIW the distingushing feature of git isn't that it is a

[Dovecot] v2.0.16 released

2011-11-16 Thread Timo Sirainen
http://dovecot.org/releases/2.0/dovecot-2.0.16.tar.gz http://dovecot.org/releases/2.0/dovecot-2.0.16.tar.gz.sig I only now noticed that the VSZ limits weren't being enforced with earlier v2.0.x releases (or they were set 1024 times too high). So if a Dovecot process was leaking memory, it wasn't

Re: [Dovecot] Getting started with sieve and conversion from procmail

2011-11-16 Thread Alex
Hi, deliver should have logged something, or alternatively the problem was exactly that it couldn't log anything. http://wiki.dovecot.org/LDA#logging Yes, looks like permissions. I have the following now in syslog: Nov 15 19:51:07 mail02 dovecot: lda(alexuser): Fatal:

Re: [Dovecot] Getting started with sieve and conversion from procmail

2011-11-16 Thread Timo Sirainen
On 17.11.2011, at 2.29, Alex wrote: Nov 15 19:51:07 mail02 dovecot: lda(alexuser): Fatal: setresgid(12(mail),12(mail),12(mail)) failed with euid=500(alexuser): Operation not permitted Where is it trying to write that it can't? It's trying to change the process's UID/GID to mail/mail for

Re: [Dovecot] Getting started with sieve and conversion from procmail

2011-11-16 Thread Alex
Hi, Nov 15 19:51:07 mail02 dovecot: lda(alexuser): Fatal: setresgid(12(mail),12(mail),12(mail)) failed with euid=500(alexuser): Operation not permitted Where is it trying to write that it can't? It's trying to change the process's UID/GID to mail/mail for some reason. Have you set

Re: [Dovecot] Getting started with sieve and conversion from procmail

2011-11-16 Thread Alex
Hi, DELIVER=/usr/libexec/dovecot/deliver :0 fhW | $DELIVER -m xspamtest Do you really want the pipe to be a (f)ilter? What do you expect deliver to pass back? And you're feeding deliver the mail (h)eaders only, dropping the body. Yes, thanks. I pasted from another filter we were using,

Re: [Dovecot] Getting started with sieve and conversion from procmail

2011-11-16 Thread Alex
Hi, My apologies if a previous message appeared twice. Not sure how that happened... Okay, that fixed it. It's now delivering mail properly, thanks. Just to be clear I understand, if I use the following .procmailrc, it should save all messages with the X-Spam-Status header in xspamstatus,

Re: [Dovecot] Performance-Tuning

2011-11-16 Thread Henrique Santos Fernandes
Jan-Frode Wich clustered filesytem do you have? I used to have ocfs2 but had problems with performance. So had to get back to ext4 and it solve the performance problem... My ocfs2 setup had some problems... but still.. Some numbers: OCFS2 1TB of maildir files. Full backup 36 Hours Incremental

Re: [Dovecot] Getting started with sieve and conversion from procmail

2011-11-16 Thread Karsten Bräckelmann
On Wed, 2011-11-16 at 20:42 -0500, Alex wrote: [...] Unrelated to other dovecot specific questions... Is there an index file that dovecot-lda updates for imap? Yes. Which would be the advantage of using dovecot deliver, directly or called from procmail. Can I just eliminate it entirely and

Re: [Dovecot] Getting started with sieve and conversion from procmail

2011-11-16 Thread Alex
Unrelated to other dovecot specific questions... Is there an index file that dovecot-lda updates for imap? Yes. Which would be the advantage of using dovecot deliver, directly or called from procmail. Can I just eliminate it entirely and just have procmail do all the delivery? Yes, you

Re: [Dovecot] Seg fault in dovecot/auth 2.0.15

2011-11-16 Thread Mark Goldey
Sorry about the HTML. I removed the string -O2 from the /auth Makefile and, for good measure, did make clean, make and make install for all of Dovecot. Still, it crashed when trying to log in via IMAP (webmail). Core dumped, here's the backtrace. [snip] Core was generated by `dovecot/auth