Hello, Im using dovecot for ages and im happy..
but at now strange things happens:
mutt returns:
Error talking to localhost (Connection reset by peer)
so i started telnet:
alnagon ~ % telnet localhost 143
Trying 127.0.0.1...
Connected to alnagon.localnet.cz.
Escape character is '^]'.
* OK Dovecot ready.
1 login karpi blablabla
1 OK Logged in.
Connection closed by foreign host.
Last line "Connection closed" appears immediatelly after logging..
log says:
Oct 27 11:20:50 alnagon dovecot: imap-login: Login: user=<karpi>,
method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Oct 27 11:20:51 alnagon dovecot: IMAP(karpi): setuid(1000) failed: Resource
temporarily unavailable
Oct 27 11:20:51 alnagon dovecot: child 8537 (imap) returned error 89
my configuratilon runs on gentoo desktop and looks like:
alnagon ~ # dovecot -n
# 1.0.3: /etc/dovecot/dovecot.conf
protocols: imap
ssl_cert_file: /etc/ssl/dovecot/server.pem
ssl_key_file: /etc/ssl/dovecot/server.key
login_dir: /var/run/dovecot/login
login_executable: /usr/libexec/dovecot/imap-login
login_processes_count: 1
mail_extra_groups: mail
mail_debug: yes
auth default:
passdb:
driver: pam
args: *
userdb:
driver: passwd
very thanks for any hint..
On Sat, 2007-10-27 at 11:31 +0200, karpi.lists at email.cz wrote:> Oct 27 11:20:51 alnagon dovecot: IMAP(karpi): setuid(1000) failed: Resource temporarily unavailablesetuid(2) says: EAGAIN The uid does not match the current uid and uid brings process over its RLIMIT_NPROC resource limit. So you've somewhere limited the number of processes for users. Debian has them in /etc/security/limits.conf. I'm not exactly sure what reads that file and how those limits are passed to kernel. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20071027/06c8b985/attachment-0002.bin>
Thank you Timo, that's the ticket!
I was running too much processess (>300) so i shut down some consuming
applications, and dovecot runs ok. Now i will tune my system setting in
/etc/security/limits.conf
thanks again..
27/10/07 17:11, tss at iki.fi napsal(a):> On Sat, 2007-10-27 at 11:31 +0200, karpi.lists at email.cz wrote:
> > Oct 27 11:20:51 alnagon dovecot: IMAP(karpi): setuid(1000) failed:
Resource temporarily unavailable
>
> setuid(2) says:
>
> EAGAIN The uid does not match the current uid and uid brings
process
> over its RLIMIT_NPROC resource limit.
>
> So you've somewhere limited the number of processes for users. Debian
> has them in /etc/security/limits.conf. I'm not exactly sure what reads
> that file and how those limits are passed to kernel.
>