Re: [Dovecot] too many open files and v1.2

2011-10-20 Thread Michael Moritz
Hi Timo

thanks for your reply. I understand you're basically saying "upgrade to v2" but 
maybe this could be of interest for you. After we lowered the  
login_max_processes_count again the problem reappeared so I'm not sure whether 
that doesn't indicate a different problem.

Regards,

Michael

On Tuesday 18 October 2011 15:57:23 Timo Sirainen wrote:
> On Thu, 2011-10-06 at 12:42 +0100, Michael Moritz wrote:
> > Hi
> > 
> > I've found an older thread 
> > http://www.dovecot.org/list/dovecot/2010-March/047886.html which mentions 
> > that this is a bug in version 1. I'm on Debian squeeze (1:1.2.15-7) and got 
> > errors like these recently
> > 
> > Oct  5 11:29:29 mail dovecot: dovecot: pipe() failed: Too many open files
> > Oct  5 11:29:32 mail dovecot: dovecot: pipe() failed: Too many open files
> > Oct  5 11:29:32 mail dovecot: dovecot: Temporary failure in creating login 
> > processes, slowing down for now
> 
> These errors come from the dovecot master process. Each child process
> uses up a few fds for pipes.
> 
> > As a work around I've increased login_max_processes_count from 256 to 512 
> > and it seems to have helped (as I suspected stale opened files).
> 
> That only makes it easier to reach, since now there can be more child
> processes eating up more fds.
> 
> > My colleague thinks it's hitting the kernel open file limit ulimit -n 
> > (currently at 1024) but I don't see how that could happen if the number of 
> > process is nowhere near that.
> 
> I don't remember how many fds each process takes in v1.x, probably
> between 1 and 3. So if you for a while had hundreds of imap or pop3
> processes, you could run into that limit.
> 
> v2.x doesn't use as many fds.
> 
> 


[Dovecot] too many open files and v1.2

2011-10-06 Thread Michael Moritz
Hi

I've found an older thread 
http://www.dovecot.org/list/dovecot/2010-March/047886.html which mentions that 
this is a bug in version 1. I'm on Debian squeeze (1:1.2.15-7) and got errors 
like these recently

Oct  5 11:29:29 mail dovecot: dovecot: pipe() failed: Too many open files
Oct  5 11:29:32 mail dovecot: dovecot: pipe() failed: Too many open files
Oct  5 11:29:32 mail dovecot: dovecot: Temporary failure in creating login 
processes, slowing down for now

As a work around I've increased login_max_processes_count from 256 to 512 and 
it seems to have helped (as I suspected stale opened files).

My colleague thinks it's hitting the kernel open file limit ulimit -n 
(currently at 1024) but I don't see how that could happen if the number of 
process is nowhere near that.

Any ideas?

Thanks,

Michael


Re: [Dovecot] drac plugin "net_ip2addr() failed: Operation not permitted"

2011-07-25 Thread Michael Moritz
Anybody? I know using pop before smtp is antiquated but we have a 
legacy/sustainability issue..

mimo

On Monday 11 July 2011 13:05:02 Michael Moritz wrote:
> Hi, I'm trying to get the drac plugin working (again) but I'm stuck with the 
> following message:
> 
> Restarting IMAP/POP3 mail server: dovecotEDRAC: net_ip2addr() failed: 
> Operation not permitted
> 
> This is on a Debian Squeeze box, dovecot version 1.2.15-7, drac version 1.12
> 
> Looking at the source it should print the IP in the brackets of net_ip2addr. 
> The fact that it's just empty made me think that I may need to set an 
> environment variable. I tried IP="127.0.0.1" in /etc/default/dovecot and as 
> export but to no avail.
> 
> Any ideas?
> 
> Thanks,
> 
> mimo
> 


[Dovecot] drac plugin "net_ip2addr() failed: Operation not permitted"

2011-07-11 Thread Michael Moritz
Hi, I'm trying to get the drac plugin working (again) but I'm stuck with the 
following message:

Restarting IMAP/POP3 mail server: dovecotEDRAC: net_ip2addr() failed: Operation 
not permitted

This is on a Debian Squeeze box, dovecot version 1.2.15-7, drac version 1.12

Looking at the source it should print the IP in the brackets of net_ip2addr. 
The fact that it's just empty made me think that I may need to set an 
environment variable. I tried IP="127.0.0.1" in /etc/default/dovecot and as 
export but to no avail.

Any ideas?

Thanks,

mimo


Re: [Dovecot] postfix + dovecot lda,

2007-08-30 Thread Michael Moritz
On Thursday 30 August 2007 07:57:15 Steffen Kaiser wrote:
> On Wed, 29 Aug 2007, Michael Moritz wrote:
> > Is there a way I can force deliver to use group mail as group and ignore
> > the per user gid?
> >
> > I tried chmod 6755 /usr/lib/dovecot/deliver but no change.
>
> If I remember correctly, there is a setting mail_extra_groups to do right
> this.
>
> Bye,

Sorry, I should have included this before

# dovecot -n
# /etc/dovecot/dovecot.conf
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
mail_extra_groups: mail
mail_location: mbox:~/mail:INBOX=/var/mail/%u
auth default:
  passdb:
driver: pam
  userdb:
driver: passwd
  socket:
type: listen
client:
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: mail
  group: mail







[Dovecot] postfix + dovecot lda,

2007-08-29 Thread Michael Moritz
I'm trying to replace procmail with deliver but I'm having problems with the 
group part of things. I keep getting:

Aug 29 16:44:19 dingbat deliver(mimo): 
open(/var/mail/.temp.dingbat.3969.d1689935a308e0dd) failed: Permission denied
Aug 29 16:44:19 dingbat deliver(mimo): file_lock_dotlock() failed with mbox 
file /var/mail/mimo: Permission denied

My primary group is mimo and I think it's trying to use that. I changed it to 
mail and things work. But I do not want all my users to have a primary group 
mail. 

Is there a way I can force deliver to use group mail as group and ignore the 
per user gid?

I tried chmod 6755 /usr/lib/dovecot/deliver but no change.

This is on debian/etch, help appreciated

mimo