[Dovecot] bsdauth with cache_key failed

2009-10-08 Thread Christian Rueger

hi

i test bsdauth with cache_key=%u on OpenBSD and get this error

Oct  8 10:04:11 pegasus dovecot: Dovecot v1.2.6 starting up
Oct  8 10:04:12 pegasus dovecot: auth(default): Panic: file passdb.c: 
line 201 (passdb_init): assertion failed: 
(passdb-passdb-default_pass_scheme != NULL || passdb-passd

b-cache_key == NULL)
Oct  8 10:04:12 pegasus dovecot: dovecot: child 8407 (auth) killed with 
signal 6 (core not dumped) 

Oct  8 10:04:12 pegasus dovecot: dovecot: Fatal: Auth process died too 
early - shutting down


# 1.2.6: /etc/dovecot.conf
# OS: OpenBSD 4.6 i386
base_dir: /var/dovecot/
protocols: imaps
listen: *, [::]
ssl_cert_file: /etc/ssl/certs/imap.pem
ssl_key_file: /etc/ssl/private/imap.pem
login_dir: /var/dovecot/login
login_executable: /usr/local/libexec/dovecot/imap-login
login_user: _dovecot
login_max_processes_count: 32
max_mail_processes: 32
first_valid_uid: 1000
first_valid_gid: 1000
mail_location: maildir:~/Maildir
mbox_write_locks: fcntl
mail_plugins: expire
lda:
  postmaster_address: postmas...@rueger-net.de
  hostname: pegasus.rueger-net.de
  mail_plugins: expire sieve
  auth_socket_path: /var/dovecot/auth-master
auth default:
  cache_size: 1024
  passdb:
driver: bsdauth
args: cache_key=%u
  userdb:
driver: passwd
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 438
  user: _postfix
master:
  path: /var/dovecot/auth-master
  mode: 384
plugin:
  expire: Trash* 7 Spam* 7 Lists* 30
  expire_dict: proxy::expire
  auth_socket_path: /var/dovecot/auth-master
  sieve_dir: ~/.sieve
dict:
  expire: sqlite:/etc/dovecot/expire.conf


Re: [Dovecot] Dovecot broken with newer OpenSSL

2009-04-20 Thread Christian Rueger

Timo Sirainen wrote:

On Apr 17, 2009, at 12:18 AM, Brad wrote:


In the logs I see messages like the following...

dovecot: Apr 16 23:12:18 Info: imap-login: Disconnected (no auth 
attempts):

rip=2001:470:b01e:3:216:41ff:fe17:6933, lip=2001:470:1d:8c::2, TLS
handshaking: Disconnected


Anything else if you set verbose_ssl=yes?


same problem here on
OpenBSD 4.5-current (GENERIC) #28: Wed Apr 15 04:56:04 MDT 2009
   dera...@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC

with OpenSSL 0.9.8k 25 Mar 2009 and Dovecot 1.1.14 from ports

log with verbose_ssl=yes:

dovecot: imap-login: Disconnected (no auth attempts): rip=Y.Y.Y.Y, 
lip=X.X.X.X, TLS handshaking: SSL_accept() failed: error:0307F041:bignum 
routines:BNRAND:malloc failure


hope that helps




Re: [Dovecot] Dovecot broken with newer OpenSSL

2009-04-20 Thread Christian Rueger

Christian Rueger wrote:

Brad wrote:

On Saturday 18 April 2009 16:31:10 Timo Sirainen wrote:

On Sat, 2009-04-18 at 22:26 +0200, Christian Rueger wrote:

dovecot: imap-login: Disconnected (no auth attempts): rip=Y.Y.Y.Y,
lip=X.X.X.X, TLS handshaking: SSL_accept() failed: 
error:0307F041:bignum

routines:BNRAND:malloc failure

Oh. malloc() failed? See if increasing login_process_size helps (or set
it to 0 to disable the limit).


I am not seeing the bit about SSL_accept() and setting login_process_size
to 0 does not help.



same here and the imap-login-prozess eat much cpu-power


today i enable tracing for the imap-process with

login_process_size = 0
login_processes_count = 1

starting thunderbird on the client-side and wait until it timeout
ktrace is attached



Re: [Dovecot] Dovecot broken with newer OpenSSL

2009-04-19 Thread Christian Rueger

Brad wrote:

On Saturday 18 April 2009 16:31:10 Timo Sirainen wrote:

On Sat, 2009-04-18 at 22:26 +0200, Christian Rueger wrote:

dovecot: imap-login: Disconnected (no auth attempts): rip=Y.Y.Y.Y,
lip=X.X.X.X, TLS handshaking: SSL_accept() failed: error:0307F041:bignum
routines:BNRAND:malloc failure

Oh. malloc() failed? See if increasing login_process_size helps (or set
it to 0 to disable the limit).


I am not seeing the bit about SSL_accept() and setting login_process_size
to 0 does not help.



same here and the imap-login-prozess eat much cpu-power


Re: [Dovecot] Dovecot broken with newer OpenSSL

2009-04-18 Thread Christian Rueger

Timo Sirainen wrote:

On Apr 17, 2009, at 12:18 AM, Brad wrote:


In the logs I see messages like the following...

dovecot: Apr 16 23:12:18 Info: imap-login: Disconnected (no auth 
attempts):

rip=2001:470:b01e:3:216:41ff:fe17:6933, lip=2001:470:1d:8c::2, TLS
handshaking: Disconnected


Anything else if you set verbose_ssl=yes?


same problem here on
OpenBSD 4.5-current (GENERIC) #28: Wed Apr 15 04:56:04 MDT 2009
   dera...@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC

with OpenSSL 0.9.8k 25 Mar 2009 and Dovecot 1.1.14 from ports

log with verbose_ssl=yes:

dovecot: imap-login: Disconnected (no auth attempts): rip=Y.Y.Y.Y, 
lip=X.X.X.X, TLS handshaking: SSL_accept() failed: error:0307F041:bignum 
routines:BNRAND:malloc failure


hope that helps