[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#781161: dovecot-core: Can't log in via imap on kFreeBSD amd64 (Auth request missing a file descriptor)



Package: dovecot-core
Version: 1:2.2.15-1
Severity: important

Dear Maintainer,

After upgrading my Debian kFreeBSD machine from Wheezy to Jessie,
dovecot imap stopped working.  The version from experiemental was also
broken in the same way.

After I attempt to sign in with valid information, the following messages
are logged:

dovecot: imap: Error: Auth request missing a file descriptor 
dovecot: imap-login: Error: read(imap) failed: Remote closed connection (service's process_limit reached?) 

When direcly invoking imap (mutt's set tunnel=/usr/lib/dovecot/imap),
all is well.  When I attempt to sign in with invalid information, the
incorrect password is diagnosed.  So this problem is not actually with
authentication.

I was not able to determine the exact cause of the problem, but I did
determine that the problems pertains to the fd-passing code, fd_send() /
fd_read().  In the imap process, fd_read succeeds but CHECK_CMSG(cmsg)
is false.

Neither defining BUGGY_CMSG_MACROS nor redefining CHECK_CMSG as for
LINUX20 resolved the problem; doing the latter caused read_fd to fill
out *fd with an invalid file number.  Anyway, fdpass.c looks
substantially similar from 2.1 to 2.2 so perhaps the problem lies
elsewhere and this was a red herring.

[most information below pertains to the *working version*,
1:2.1.7-7+deb7u1]

-- Package-specific info:

dovecot configuration
---------------------
# 2.1.7: /etc/dovecot/dovecot.conf
# OS: GNU/kFreeBSD 10.1-0-amd64 x86_64  
auth_verbose = yes
debug_log_path = /tmp/dovecot.debug
disable_plaintext_auth = no
lda_mailbox_autocreate = yes
mail_location = maildir:~/Maildir
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix = 
}
passdb {
  args = failure_show_msg=yes
  driver = pam
}
passdb {
  args = /etc/dovecot/extra.passwd
  driver = passwd-file
}
postmaster_address = postmaster@unpythonic.net
protocols = imap
ssl = required
ssl_cert = </etc/dovecot/ssl/dovecot.cert
ssl_key = </etc/dovecot/ssl/dovecot.key
userdb {
  driver = passwd
}
userdb {
  args = /etc/dovecot/extra.passwd
  driver = passwd-file
}
verbose_ssl = yes

-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 10.1-0-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages dovecot-core depends on:
ii  adduser         3.113+nmu3
ii  libbz2-1.0      1.0.6-7+b2
ii  libc0.1         2.19-15
ii  libpam-runtime  1.1.8-3.1
ii  libpam0g        1.1.8-3.1
ii  libssl1.0.0     1.0.1k-1
ii  openssl         1.0.1k-1
ii  ucf             3.0030
ii  zlib1g          1:1.2.8.dfsg-2+b1

dovecot-core recommends no packages.

Versions of packages dovecot-core suggests:
pn  dovecot-gssapi        <none>
ii  dovecot-imapd         1:2.1.7-7+deb7u1
pn  dovecot-ldap          <none>
pn  dovecot-lmtpd         <none>
pn  dovecot-managesieved  <none>
pn  dovecot-mysql         <none>
pn  dovecot-pgsql         <none>
pn  dovecot-pop3d         <none>
pn  dovecot-sieve         <none>
pn  dovecot-solr          <none>
pn  dovecot-sqlite        <none>
ii  ntp                   1:4.2.6.p5+dfsg-5

Versions of packages dovecot-core is related to:
ii  dovecot-core [dovecot-common]  1:2.1.7-7+deb7u1
pn  dovecot-dbg                    <none>
pn  dovecot-dev                    <none>
pn  dovecot-gssapi                 <none>
ii  dovecot-imapd                  1:2.1.7-7+deb7u1
pn  dovecot-ldap                   <none>
pn  dovecot-lmtpd                  <none>
pn  dovecot-managesieved           <none>
pn  dovecot-mysql                  <none>
pn  dovecot-pgsql                  <none>
pn  dovecot-pop3d                  <none>
pn  dovecot-sieve                  <none>
pn  dovecot-sqlite                 <none>

-- no debconf information


Reply to: