[Dovecot] failed: Too many open files

2010-03-26 Thread Masaharu Kawada
Dear list, I have questions about content of the following error messages. ---/var/log/secure--- dovecot-auth: PAM unable todlopen(/lib/security/pam_nologin.so) dovecot-auth: PAM [error:/lib/security/pam_nologin.so: cannot open shared  object file: Too many open files] dovecot-auth: PAM adding 

Re: [Dovecot] failed: Too many open files

2010-03-26 Thread Timo Sirainen
On 26.3.2010, at 8.27, Masaharu Kawada wrote: dovecot: auth(default): pam(x...@xxx.com,127.0.0.1): pipe() failed: Too many open files .. From the above result, dovecot-auth proccess opened 10243 files, and that seems to be the limit. So I expect that adding following lines into

Re: [Dovecot] Busy looping of 2.0Beta4 on NetBSD-current

2010-03-26 Thread Timo Sirainen
On 26.3.2010, at 4.47, Scott Ellis wrote: I built and install Dovecot 2.0Beta4 on my NetBSD/amd64-current system, and am seeing the user-owned imap processes busy-looping. In Dovecot 1.2.x (and 1.x and 0.x..) I force ionotify and ioloop to kqueue, so I suspected that was the problem.

Re: [Dovecot] failed: Too many open files

2010-03-26 Thread Masaharu Kawada
Hi Timo-san, Thank you very much for your response! How many dovecot-auth processes were there running? Unless there were 1024 dovecot-auth processes, it sounds more like a file descriptor leak and adding more fds will only delay the error. According to the result of a command ps aux, only

Re: [Dovecot] failed: Too many open files

2010-03-26 Thread Timo Sirainen
On 26.3.2010, at 10.47, Masaharu Kawada wrote: How many dovecot-auth processes were there running? Unless there were 1024 dovecot-auth processes, it sounds more like a file descriptor leak and adding more fds will only delay the error. According to the result of a command ps aux, only

Re: [Dovecot] quota dict with mysql 4.0

2010-03-26 Thread Timo Sirainen
On 25.3.2010, at 11.24, Andre Hübner wrote: i use successfully mysql-quotasystem with dovecot 1.2.11 on different servers except for mysql 4.0 servers dovecot internally uses sql: ON DUPLICATE KEY UPDATE which was introduced in mysql 4.1 The original code supported dict-sql only if ON

Re: [Dovecot] dovecot user

2010-03-26 Thread Noel Butler
On Thu, 2010-03-25 at 21:50 -0700, Bradley Giesbrecht wrote: On Mar 25, 2010, at 9:48 PM, Stan Hoeppner wrote: Timo Sirainen put forth on 3/25/2010 1:30 PM: I think the next v2.0 release (rc1?) will include the new changed default_login_user. I'm still not completely sure what it is

[Dovecot] corrupted mbox

2010-03-26 Thread Jernej Porenta
Heya, we have two IMAP (UW-imap and dovecot) servers accessing the same mbox files for our users (don't ask why) and sometimes the UW-imap corrupts the mbox file. The mbox looks just like normal mbox except it does not have the proper 'From ' beginning of the file (usually there are some

Re: [Dovecot] quota dict with mysql 4.0

2010-03-26 Thread Andre Hübner
Hello, i use successfully mysql-quotasystem with dovecot 1.2.11 on different servers except for mysql 4.0 servers dovecot internally uses sql: ON DUPLICATE KEY UPDATE which was introduced in mysql 4.1 The original code supported dict-sql only if ON DUPLICATE KEY UPDATE was supported by

Re: [Dovecot] dovecot user

2010-03-26 Thread Timo Sirainen
On Fri, 2010-03-26 at 20:01 +1000, Noel Butler wrote: dovehole - you go inside dovecot via a hole, right? That is downright pornographic. dovehole - lovehole? dovenest isn't totally horrible (close), but dovehole is ... just not right at all. dovetail +1 Tail just

[Dovecot] INBOX. namespace

2010-03-26 Thread Brian Candler
I am trying to configure dovecot-1.2.11 to have the same IMAP namespacing as courier-imap as per http://wiki.dovecot.org/Migration/Courier, but failing badly. I have a test maildir with INBOX and folder 'junk'. Without fiddling with namespaces, this works fine: there are 91 msgs in INBOX and 2 in

Re: [Dovecot] corrupted mbox

2010-03-26 Thread Timo Sirainen
On Fri, 2010-03-26 at 13:27 +0100, Jernej Porenta wrote: Heya, we have two IMAP (UW-imap and dovecot) servers accessing the same mbox files for our users (don't ask why) and sometimes the UW-imap corrupts the mbox file. The mbox looks just like normal mbox except it does not have the proper

Re: [Dovecot] INBOX. namespace

2010-03-26 Thread Timo Sirainen
On Fri, 2010-03-26 at 12:36 +, Brian Candler wrote: Now I make the following addition to dovecot.conf: namespace private { separator = . prefix = INBOX. inbox = yes hidden = no } After this the inbox appears to be empty, and I cannot select the junk folder at all:

[Dovecot] dovecot 2.0 fails self-tests

2010-03-26 Thread Michal Hlavinka
Hi, is it expected that dovecot 2.0.beta4 pass all of it's self-tests or some failures are normal? I've tried make check and everything passed up to this test: ... message_date_parse(7) : ok 0 / 8 tests failed test-message-decoder.c:67: Assert

Re: [Dovecot] corrupted mbox

2010-03-26 Thread Jernej Porenta
On Mar 26, 2010, at 1:39 PM, Timo Sirainen wrote: On Fri, 2010-03-26 at 13:27 +0100, Jernej Porenta wrote: Heya, we have two IMAP (UW-imap and dovecot) servers accessing the same mbox files for our users (don't ask why) and sometimes the UW-imap corrupts the mbox file. The mbox looks just

Re: [Dovecot] INBOX. namespace

2010-03-26 Thread Brian Candler
On Fri, Mar 26, 2010 at 02:45:40PM +0200, Timo Sirainen wrote: After this the inbox appears to be empty, and I cannot select the junk folder at all: Something's seriously wrong. Just changing namespace prefix shouldn't do anything like that. (And since I haven't heard of horror stories of

Re: [Dovecot] dovecot 2.0 fails self-tests

2010-03-26 Thread Timo Sirainen
On Fri, 2010-03-26 at 14:13 +0100, Michal Hlavinka wrote: Hi, is it expected that dovecot 2.0.beta4 pass all of it's self-tests or some failures are normal? Tarballs are built with make distcheck, which would fail if any of the self-tests failed. message_date_parse(7)

Re: [Dovecot] dovecot 2.0 fails self-tests

2010-03-26 Thread Timo Sirainen
On Fri, 2010-03-26 at 16:28 +0200, Timo Sirainen wrote: message_date_parse(7) : ok 0 / 8 tests failed test-message-decoder.c:67: Assert failed: message_decoder_decode_next_block(ctx, input, output) I can't reproduce this with

Re: [Dovecot] dovecot user

2010-03-26 Thread Marco Nenciarini
Timo Sirainen ha scritto: On Fri, 2010-03-26 at 20:01 +1000, Noel Butler wrote: dovehole - you go inside dovecot via a hole, right? That is downright pornographic. dovehole - lovehole? dovenest isn't totally horrible (close), but dovehole is ... just not right at all. dovetail +1

[Dovecot] Fix for the consume_results leak

2010-03-26 Thread Rainer Weikusat
I'm not really comfortable with making non-trivial changes to this code but here is at least a fix for the PGresult leak (verified to both apply to 1.2.11 and 2.0.beta4). - --- dovecot/src/lib-sql/driver-pgsql.c 15 Mar 2010 18:18:14 - 1.1.1.2 +++ dovecot/src/lib-sql/driver-pgsql.c

Re: [Dovecot] failed: Too many open files

2010-03-26 Thread Tony Rutherford
On 3/26/2010 4:53 AM, Timo Sirainen wrote: On 26.3.2010, at 10.47, Masaharu Kawada wrote: How many dovecot-auth processes were there running? Unless there were 1024 dovecot-auth processes, it sounds more like a file descriptor leak and adding more fds will only delay the error.

Re: [Dovecot] dovecot user

2010-03-26 Thread Tony Rutherford
On 3/26/2010 10:32 AM, Marco Nenciarini wrote: Timo Sirainen ha scritto: On Fri, 2010-03-26 at 20:01 +1000, Noel Butler wrote: dovehole - you go inside dovecot via a hole, right? That is downright pornographic. dovehole - lovehole? dovenest isn't totally horrible

Re: [Dovecot] dovecot user

2010-03-26 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 26 Mar 2010, Marco Nenciarini wrote: dovehole - you go inside dovecot via a hole, right? That is downright pornographic. dovehole - lovehole? dovenest isn't totally horrible (close), but dovehole is ... just not right at all. dovetail

Re: [Dovecot] dovecot user

2010-03-26 Thread Thomas Leuxner
On Fri, Mar 26, 2010 at 11:17:26AM -0400, Tony Rutherford wrote: Well...I'll throw my silly hat into the ring: doveman Haha. That sounds like Duffman Regards Thomas

[Dovecot] CentOS yum update causing died unexpectedly

2010-03-26 Thread dovecot
Running CentOS 5.x running a postfix/dovecot implementation. Dovecot 1.1.8. I just ran a full system update in my dev environment, and now I'm occasionally getting: Mar 26 07:15:43 example dovecot: auth(default): worker-server(test...@int.example.com,127.0.0.1): Aborted: Worker process

Re: [Dovecot] dovecot user

2010-03-26 Thread Jerry
On Fri, 26 Mar 2010 16:18:23 +0100 (CET), Steffen Kaiser skdove...@smail.inf.fh-brs.de articulated: On Fri, 26 Mar 2010, Marco Nenciarini wrote: dovehole - you go inside dovecot via a hole, right? That is downright pornographic. dovehole - lovehole? dovenest isn't totally horrible

Re: [Dovecot] CentOS yum update causing died unexpectedly

2010-03-26 Thread Pascal Volk
On 03/26/2010 02:08 PM dove...@corwyn.net wrote: Running CentOS 5.x running a postfix/dovecot implementation. Dovecot 1.1.8. I just ran a full system update in my dev environment, and now I'm occasionally getting: Mar 26 07:15:43 example dovecot: auth(default):

Re: [Dovecot] dovecot user

2010-03-26 Thread Charles Marcus
On 2010-03-26 8:36 AM, Timo Sirainen wrote: So my last idea: doveless. It's less of a dovecot process. To me it seems closer to perfect as anything I've seen so far. I liked doveauth, but understand why it might be confusing... Here are some other suggestion... doveuser dovein doveme

Re: [Dovecot] Busy looping of 2.0Beta4 on NetBSD-current

2010-03-26 Thread Scott Ellis
On 26.3.2010, at 4.47, Scott Ellis wrote: But it's not hanging anyway, just eating all CPU? I guess it's calling some IO_WRITE callback all the time. You could make it do something like: Yeah, functionally the imap process seems to be just fine. It's just not being very friendly to the CPU.

Re: [Dovecot] dovecot user

2010-03-26 Thread Pascal Volk
On 03/26/2010 05:48 AM Stan Hoeppner wrote: Timo Sirainen put forth on 3/25/2010 1:30 PM: … dovenest (by Pascal Volk) - although reminds me a bit too much of lovenest :) … That is downright pornographic. dovehole - lovehole? dovenest isn't totally horrible (close), but dovehole is ...

Re: [Dovecot] failed: Too many open files

2010-03-26 Thread Timo Sirainen
On Fri, 2010-03-26 at 11:15 -0400, Tony Rutherford wrote: Run lsof or something similar to see what open filedescriptors there are. I ran into this same issue...and it had nothing to do with Dovecot...Dovecot was just unlucky enough to be requesting to open a file when the limit was

Re: [Dovecot] shared mailboxes, mkdir_parents problem

2010-03-26 Thread pattex
Leo Unglaub leo.unglaub at gmail.com writes: Hi Friends, i have a little problem with my Dovecot installation. The normal installation works very well and now i have to configurate dovecot that all member from a domain can access all mailboxes from this domain. mail_location:

Re: [Dovecot] dovecot 2.0 fails self-tests

2010-03-26 Thread Timo Sirainen
On Fri, 2010-03-26 at 16:29 +0200, Timo Sirainen wrote: ==18666== Conditional jump or move depends on uninitialised value(s) ==18666==at 0x402AFF: message_decoder_decode_next_block (message-decoder.c:148) Yeah, looks like there's a bug. Well, that was a simple fix:

Re: [Dovecot] dovecot user

2010-03-26 Thread Timo Sirainen
Well, I made this a poll. Please vote. :) http://blog.dovecot.org/ I only added those options that I thought people might have a chance of understanding what it could possibly mean. signature.asc Description: This is a digitally signed message part

Re: [Dovecot] dovecot user

2010-03-26 Thread Noel Butler
On Fri, 2010-03-26 at 15:32 +0100, Marco Nenciarini wrote: Timo Sirainen ha scritto: On Fri, 2010-03-26 at 20:01 +1000, Noel Butler wrote: dovehole - you go inside dovecot via a hole, right? That is downright pornographic. dovehole - lovehole? dovenest isn't totally horrible (close),

Re: [Dovecot] INBOX. namespace

2010-03-26 Thread Timo Sirainen
On Fri, 2010-03-26 at 14:00 +, Brian Candler wrote: However, I've now found the problem using ktrace. The homedir attribute in LDAP is /mail/0/6/37/30/brian%dev.example.com/ but when I do 'examine inbox' I see it has been munged: .. 30362 imap NAMI

Re: [Dovecot] Fix for the consume_results leak

2010-03-26 Thread Timo Sirainen
On Fri, 2010-03-26 at 15:50 +0100, Rainer Weikusat wrote: I'm not really comfortable with making non-trivial changes to this code but here is at least a fix for the PGresult leak (verified to both apply to 1.2.11 and 2.0.beta4). Thanks. I did a slightly different change though:

Re: [Dovecot] A questions about consume_results (driver-pgsql.c)

2010-03-26 Thread Timo Sirainen
On Thu, 2010-03-25 at 20:04 +0100, Rainer Weikusat wrote: This is the only part of the driver-pgsql.c code where a CONNECTION_BAD does not result in driver_pgsql_close being called. This will likely happen after the next query (from queue or a new one) failed because the connection was bad. Is

Re: [Dovecot] permanent flags (are very permanent)

2010-03-26 Thread Timo Sirainen
On Thu, 2010-03-25 at 22:32 +0100, Oliver Eales wrote: first of all i am not sure wheter this is a correct behavior according to the RFC or not... Problem is, when i set a new custom permanent flag (e.g. testflag) and remove it afterwards, the flag still stays in the list of the permanent

Re: [Dovecot] cmusieve auto-reply and quota

2010-03-26 Thread Timo Sirainen
On Thu, 2010-03-25 at 14:12 -0300, Mauro Faccenda wrote: protocol lda { .. quota_full_tempfail = no } Try removing the above line. I think v1.0 is still stupid enough to not understand what no means in lda section. signature.asc Description: This is a digitally signed message part

Re: [Dovecot] dovecot 2.0beta4 zlib

2010-03-26 Thread Timo Sirainen
On Thu, 2010-03-25 at 08:48 +0100, Renaud Allard wrote: When trying to enable the zlib and imap_zlib plugins, I get the following error: imap: dovecot/imap:/opt/dovecot/lib/dovecot/lib2 0_zlib_plugin.so: undefined symbol 'i_stream_create_bz2' Fixed:

Re: [Dovecot] 2.0.beta4 compile errors

2010-03-26 Thread Timo Sirainen
On Wed, 2010-03-24 at 15:35 -0400, Steven King wrote: I am unable to get 2.0.beta4 to compile. I get the following errors: /usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../../../lib64/libwrap.a(hosts_access.o): In function `host_match': hosts_access.c:(.text+0x625): undefined reference to

Re: [Dovecot] Question about SASL auth

2010-03-26 Thread Timo Sirainen
On Tue, 2010-03-23 at 09:28 -0700, Mark Sapiro wrote: Mar 6 07:06:20 sbh16 postfix/smtpd[30273]: warning: SASL: Connect to private/auth failed: Resource temporarily unavailable What about Dovecot's logs? Do you see e.g.: master: Warning: service(auth): process_limit reached, client

Re: [Dovecot] Post Login Script in 2.0

2010-03-26 Thread Timo Sirainen
On Mon, 2010-03-22 at 13:04 -0700, Mark Moseley wrote: Should 'script' respect the first_valid_uid setting in the main config file? I think this fixes it also: http://hg.dovecot.org/dovecot-2.0/rev/841bfacb7ec3 signature.asc Description: This is a digitally signed message part

Re: [Dovecot] mail_save_crlf Semantics

2010-03-26 Thread Timo Sirainen
On Thu, 2010-03-18 at 22:47 +, Sabahattin Gucukoglu wrote: It's not clear from the configuration when CR/LF conversion happens with mail_save_crlf set. Does this only happen with appends, or do all mails handled by Dovecot always get converted when opened? It happens when saving mails.

Re: [Dovecot] shared mailboxes, mkdir_parents problem

2010-03-26 Thread Timo Sirainen
On Mon, 2010-03-22 at 14:38 +0100, Leo Unglaub wrote: 2010-03-18 10:03:04 IMAP(unglaub): Error: mkdir_parents(/var/mails/e-c-o.at/kirchmeir) failed: Permission denied .. mail_location: maildir:/var/mail/%d/%n .. location: maildir:/var/mails/e-c-o.at/%%n:INDEX=/tmp/%%n /var/mail/ vs.

Re: [Dovecot] corrupted mbox

2010-03-26 Thread Timo Sirainen
On Fri, 2010-03-26 at 14:59 +0100, Jernej Porenta wrote: I would be happy if IMAP would drop a line about the corrupted mbox... :) Oh, right, I forgot POP3 actually logs the error while IMAP just tells client that the mailbox is corrupted. I implemented this now to v2.0:

Re: [Dovecot] corrupted mbox

2010-03-26 Thread Timo Sirainen
On Sat, 2010-03-27 at 05:02 +0200, Timo Sirainen wrote: On Fri, 2010-03-26 at 14:59 +0100, Jernej Porenta wrote: I would be happy if IMAP would drop a line about the corrupted mbox... :) Oh, right, I forgot POP3 actually logs the error while IMAP just tells client that the mailbox is

Re: [Dovecot] Question about SASL auth

2010-03-26 Thread Mark Sapiro
Timo Sirainen wrote: On Tue, 2010-03-23 at 09:28 -0700, Mark Sapiro wrote: Mar 6 07:06:20 sbh16 postfix/smtpd[30273]: warning: SASL: Connect to private/auth failed: Resource temporarily unavailable What about Dovecot's logs? Do you see e.g.: master: Warning: service(auth): process_limit

Re: [Dovecot] dovecot user

2010-03-26 Thread Stan Hoeppner
Timo Sirainen put forth on 3/26/2010 7:36 AM: On Fri, 2010-03-26 at 20:01 +1000, Noel Butler wrote: dovehole - you go inside dovecot via a hole, right? That is downright pornographic. dovehole - lovehole? dovenest isn't totally horrible (close), but dovehole is ... just not right at

Re: [Dovecot] Question about SASL auth

2010-03-26 Thread Timo Sirainen
On 27.3.2010, at 6.43, Mark Sapiro wrote: Timo Sirainen wrote: On Tue, 2010-03-23 at 09:28 -0700, Mark Sapiro wrote: Mar 6 07:06:20 sbh16 postfix/smtpd[30273]: warning: SASL: Connect to private/auth failed: Resource temporarily unavailable Ah, just realized. This should help:

Re: [Dovecot] dovecot user

2010-03-26 Thread Stan Hoeppner
Timo Sirainen put forth on 3/26/2010 5:47 PM: Well, I made this a poll. Please vote. :) http://blog.dovecot.org/ I only added those options that I thought people might have a chance of understanding what it could possibly mean. Add dovel and restart the vote. Short, sweet, to the point,

Re: [Dovecot] dovecot user

2010-03-26 Thread Stan Hoeppner
Noel Butler put forth on 3/26/2010 8:12 PM: Nice Marco... OK, Timo, we must have a winner here with dovenull, surely :P I fear anything with null in it will be confusing to people not-in-the-know. The average OP may see that process name and think it's a dovecot trashcan for various

Re: [Dovecot] dovecot user

2010-03-26 Thread Timo Sirainen
On 27.3.2010, at 6.49, Stan Hoeppner wrote: Tail just doesn't make much sense to me. Also it's not completely free of pornographic associations either. :) No, no, totally free of pornographic connotation. Dovetail is a type of woodworking joint. That's what the vast majority of people on

Re: [Dovecot] dovecot user

2010-03-26 Thread Timo Sirainen
On 27.3.2010, at 7.01, Stan Hoeppner wrote: Noel Butler put forth on 3/26/2010 8:12 PM: Nice Marco... OK, Timo, we must have a winner here with dovenull, surely :P I fear anything with null in it will be confusing to people not-in-the-know. The average OP may see that process name and

[Dovecot] v2.0.beta4: conversion of v1.2 configuration

2010-03-26 Thread Pascal Volk
Hi Timo, I've just tried to convert my v1.2 configuration to a v2.0 configuration. Below a few obsolete warnings, among others mail_executable has been replaced by service { executable }, was an interesting error: doveconf: Error: duplicate listener: 198: The broken parts of the converted