Thanks for the answer. I have now got chkpassword working, but I still cannot get Binc to authenticate. When trying to connect from KMail I get an error dialogue telling me that either the userid or the password is invalid. Despite that I have verifies (both in vpopmail and in KMail) that I am using the correct domain, username and password.
Here is the error message from /opt/binc/var/log/bincimap/current: @400000004168762b060a6cc4 1990 2 [EMAIL PROTECTED]:] shutting down (client disconnected) - read:80 bytes, wrote:540 bytes. @400000004168762d26af09bc 1992 0 [EMAIL PROTECTED]:] connection from 10.0.0.3 @400000004168762d275ecdd4 1992 1 [EMAIL PROTECTED]:] <[EMAIL PROTECTED]> authentication failed: wrong userid or password and here is the relevant output from "ps faxww": 1847 ? S 0:00 /bin/sh /command/svscanboot 1860 ? S 0:00 \_ svscan /service 1862 ? S 0:00 | \_ supervise qmail-send 1868 ? S 0:00 | | \_ qmail-send 1893 ? S 0:00 | | \_ qmail-lspawn ./Maildir/ 1894 ? S 0:00 | | \_ qmail-rspawn 1895 ? S 0:00 | | \_ qmail-clean 1863 ? S 0:00 | \_ supervise log 1869 ? S 0:00 | | \_ /usr/local/bin/multilog t /var/log/qmail 1864 ? S 0:00 | \_ supervise qmail-smtpd 1867 ? S 0:00 | | \_ /usr/local/bin/tcpserver -v -R -l mydomain.com -x /etc/tcp.smtp.cdb -c 20 -u 503 -g 502 0 smtp /var/qmail/bin/qmail-smtpd 1865 ? S 0:00 | \_ supervise log 1866 ? S 0:00 | | \_ /usr/local/bin/multilog t /var/log/qmail/smtpd 1871 ? S 0:00 | \_ supervise imap 1879 ? S 0:00 | | \_ tcpserver -c 100 -u 0 -g 0 -l localhost -HDRP 0 143 /opt/binc/bin/bincimap-up --logtype=multilog --conf=/opt/binc/etc/bincimap.conf -- /bin/checkpassword /opt/binc/bin/bincimapd 1872 ? S 0:00 | \_ supervise log 1876 ? S 0:00 | | \_ multilog t n5 s1048576 /opt/binc/var/log/bincimap 1873 ? S 0:00 | \_ supervise imaps 1877 ? S 0:00 | | \_ tcpserver -c 100 -u 0 -g 0 -l localhost -HDRP 0 993 /opt/binc/bin/bincimap-up --logtype=multilog --conf=/opt/binc/etc/bincimap.conf --ssl -- /bin/checkpassword /opt/binc/bin/bincimapd 1874 ? S 0:00 | \_ supervise log 1875 ? S 0:00 | \_ multilog t n5 s1048576 /opt/binc/var/log/bincimap-ssl 1861 ? S 0:00 \_ readproctitle service errors: ................................................................................................................................................................................................................................................................................................................................................................................................................ I have not changed /opt/binc/var/service/bincimap/run. Is that OK when using vpopmail? Can I grab more useful information with strace? If you think it would be useful, what arguments should I use with it? Thanks again. ----- Original Message ----- From: Andreas Aardal Hanssen <[EMAIL PROTECTED]> Date: Sat, 9 Oct 2004 11:45:15 +0200 (CEST) To: Binc IMAP General <[EMAIL PROTECTED]> Subject: Re: [binc] Cannot get binc to authenticate > On Thu, 7 Oct 2004, B Bolinder wrote: > >I am trying to get Binc 1.2.10final to work with qmail/vpopmail on > >Mandrake 10.0. Everything is installed and qmail/vpopmail is delivering > >into Maildir. I compiled Binc with ssl-support, but for the time being I > >am trying to get it working without ssl. Hence, in the Authentication > >section of "bincimap.conf" I have set "allow plain auth in nonssl = "yes" > >and disable starttls = "no". Binc is up and running, but I get some > >errors that I am not sure about: ps aux | grep imap yields: > > Okay, let's see here... > > >root 1843 0.0 0.0 1424 236 ? S 01:22 0:00 readproctitle > >service errors: ...incimap: file does not exist?multilog: fatal: unable to open > >directory /opt/binc/var/log/bincimap-ssl: file does not exist?multilog: fatal: > >unable to open directory /opt/binc/var/log/bincimap: file does not exist?multilog: > >fatal: unable to open directory /opt/binc/var/log/bincimap-ssl: file does not > >exist?multilog: fatal: unable to open directory /opt/binc/var/log/bincimap: file > >does not exist? > > I guess these are old messages; since I can see you are running multilog, > and multilog wouldn't start if those directories were missing. > > >root 1848 0.0 0.0 1432 284 ? S 01:22 0:00 supervise imap > >root 1862 0.0 0.0 1432 284 ? S 01:22 0:00 supervise imaps > >root 3214 0.0 0.0 1456 304 ? S 01:33 0:00 tcpserver -c 100 -u > >0 -g 0 -l localhost -HDRP 0 143 /opt/binc/bin/bincimap-up --logtype=multilog > >--conf=/opt/binc/etc/bincimap.conf -- /bin/checkpassword /opt/binc/bin/bincimapd > >root 3219 0.0 0.0 1456 292 ? S 01:33 0:00 tcpserver -c 100 -u > >0 -g 0 -l localhost -HDRP 0 993 /opt/binc/bin/bincimap-up --logtype=multilog > >--conf=/opt/binc/etc/bincimap.conf --ssl -- /bin/checkpassword > >/opt/binc/bin/bincimapd > > These show that Binc is running properly. > > >root 3467 0.0 0.0 1444 272 ? S 01:35 0:00 multilog t n5 > >s1048576 /opt/binc/var/log/bincimap-ssl > >root 3468 0.0 0.0 1444 276 ? S 01:35 0:00 multilog t n5 > >s1048576 /opt/binc/var/log/bincimap > >root 3623 0.0 0.2 2448 1084 pts0 T 01:57 0:00 vi etc/bincimap.conf > >root 3659 0.0 0.1 2132 788 pts0 R 02:06 0:00 grep imap > > And these show that you're editing bincimap.conf ;-). Hehe. > > >Also, I am not able to connect from KMail 1.6.1 (running on another machine), but > >get an "AUTHENTICATION FAILED" message and the logfile, i.e. > >/opt/binc/var/log/bincimap/current contains: > >@400000004165d84634fa6e6c 3628 1 [EMAIL PROTECTED]:] shutting down (client > >disconnected) - read:28 bytes, wrote:319 bytes. > >@400000004165d8620bbcf77c 3626 2 [EMAIL PROTECTED]:] shutting down (client > >disconnected) - read:80 bytes, wrote:505 bytes. > >@400000004165d8680440208c 3629 0 [EMAIL PROTECTED]:] connection from 10.0.0.3 > >@400000004165d8680485a954 3629 1 [EMAIL PROTECTED]:] [auth module] invocation of > >/bin/checkpassword failed: No such file or directory > > Oh, looky here. It seems you are missing /bin/checkpassword. You should > visit cr.yp.to and download, compile and install checkpassword, or > download and install one of the rpms from > http://www.qmail.org/rpms/qmail-addons/. > > If you try to compile checkpassword and it fails, run this: > > perl -pi -e 's/extern int errno;/#include <errno.h>/;' error.h > > (Why doesn't the author DjB update his tools with this fix?) > > >while /opt/binc/var/log/bincimap-ssl/current is empty. > > This file will only get data in it if you connect to port 993, but you're > experimenting with plain text port 143. > > >I am rather new to this, so any suggestions for what could be wrong are > >most welcome. > > I'm sure you'll get it working after installing checkpassword. > > Andreas :-) > > -- > Andreas Aardal Hanssen | http://www.andreas.hanssen.name/gpg > Author of Binc IMAP | "It is better not to do something > http://www.bincimap.org/ | than to do it poorly." > -- _____________________________________________________________ Web-based SMS services available at http://www.operamail.com. >From your mailbox to local or overseas cell phones. Powered by Outblaze
