6 messages in net.sourceforge.lists.courier-sqwebmail[sqwebmail] Re: authpwd works, but au...
FromSent OnAttachments
Alexander FarberAug 8, 2004 3:26 am 
Alexander FarberAug 8, 2004 3:37 am 
Alexander FarberAug 8, 2004 3:42 am 
Alexander FarberAug 8, 2004 5:58 am 
Sam VarshavchikAug 8, 2004 7:48 am 
Alexander FarberAug 8, 2004 10:16 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[sqwebmail] Re: authpwd works, but authuserdb gives "INVALID USER"Actions...
From:Alexander Farber (Alex@t-online.de)
Date:Aug 8, 2004 3:26:21 am
List:net.sourceforge.lists.courier-sqwebmail

Hi,

I'm running OpenBSD 3.4 stable on a PC, with courier-imap-1.7.2 from ports (works since 1+ year fine with mutt/Thunderbird). Recently I've tried to add the sqwebmail-4.0.7 compiled with:

./configure --enable-https=auto --prefix=/usr/local/sqwebmail
--with-defaultlang=ru --without-fcgi --without-ispell --disable-unicode
--enable-mimetypes=/var/www/conf/mime.types --enable-mimecharset=koi8-r
--disable-changepass --without-autpam --without-authldap --without-authmysql
--without-authpgsql --disable-autorenamesent && gmake && sudo gmake
install-strip && sudo make install-config

Now, when I have just authpwd in authdaemonrc: authmodulelist="authuserdb" then everything works as expected. But when I prepend that value with "authuserdb" (or just have single "authuserdb" there) and stop/start the /usr/local/sqwebmail/libexec/sqwebmaild.rc (i.e. see this in /var/log/maillog:

authdaemond.plain: restarting authdaemond children authdaemond.plain: modules="authpwd authuserdb", daemons=4 authdaemond.plain: modules="authpwd authuserdb", daemons=4

) then I can't login anymore - even though I've created an /etc/userdb:

alex
uid=25323|systempw=$1$yFt5Vd5O$ttGBbA7so.3herD075t/J0|shell=/usr/local/bin/tcsh|home=/home/alex|gid=10

by running (should I use md5 on OpenBSD?):

userdbpw -md5 | sudo userdb alex set systempw sudo makeuserdb

Here is what I have in /etc:

pref:sqwebmail {1259} ls -ltr /etc -rw-r--r-- 1 root wheel 0 Aug 8 00:52 userdb.lock -rw-r--r-- 1 root wheel 49232 Aug 8 00:52 userdb.dat -rw------- 1 root wheel 49214 Aug 8 00:52 userdbshadow.dat -rw------- 1 root wheel 108 Aug 8 00:53 userdb

What could I do to fix this issue? I don't see anything in the logfiles, can I somehow get more debugging information?

I run Apache unchrooted, with "httpd -u -DSSL".

Also, where do I find the authinfo program, mentioned in INSTALL?

pref:alex {1018} sudo find /usr/local/sqwebmail/ -type f -perm 755 /usr/local/sqwebmail/sendit.sh /usr/local/sqwebmail/cleancache.pl /usr/local/sqwebmail/ldapsearch /usr/local/sqwebmail/webgpg /usr/local/sqwebmail/sbin/userdb /usr/local/sqwebmail/sbin/vchkpw2userdb /usr/local/sqwebmail/sbin/courierlogger /usr/local/sqwebmail/sbin/makeuserdb /usr/local/sqwebmail/sbin/userdbpw /usr/local/sqwebmail/sbin/pw2userdb /usr/local/sqwebmail/sbin/sharedindexinstall /usr/local/sqwebmail/sbin/sharedindexsplit /usr/local/sqwebmail/libexec/sqwebmail/sqwebmaild /usr/local/sqwebmail/libexec/sqwebmail/maildirmake /usr/local/sqwebmail/libexec/sqwebmail/deliverquota /usr/local/sqwebmail/libexec/sqwebmail/reformime /usr/local/sqwebmail/libexec/sqwebmail/makemime /usr/local/sqwebmail/libexec/sqwebmail/pcpd /usr/local/sqwebmail/libexec/sqwebmail/authenumerate /usr/local/sqwebmail/libexec/sqwebmail/makedatprog /usr/local/sqwebmail/libexec/authlib/authdaemond /usr/local/sqwebmail/libexec/authlib/authdaemon /usr/local/sqwebmail/libexec/authlib/authdaemond.plain /usr/local/sqwebmail/libexec/authlib/authsystem.passwd /usr/local/sqwebmail/libexec/sqwebmaild.rc

Thank you Alex