16 messages in net.sourceforge.lists.courier-sqwebmailRe: [sqwebmail] i need help with sqwe...
FromSent OnAttachments
Guido R. Rolon A.May 28, 2005 5:42 am 
Brian CandlerMay 29, 2005 1:57 am 
Guido R. Rolon A.May 30, 2005 5:41 am 
Guido R. Rolon A.May 30, 2005 6:41 am 
Brian CandlerMay 30, 2005 11:24 pm 
Brian CandlerMay 30, 2005 11:28 pm 
Guido R. Rolon A.May 31, 2005 5:32 am 
Brian CandlerMay 31, 2005 11:29 pm 
Guido R. Rolon A.Jun 1, 2005 4:22 am 
Guido R. Rolon A.Jun 1, 2005 7:27 pm 
Brian CandlerJun 2, 2005 12:39 pm 
Guido R. Rolon A.Jun 2, 2005 7:33 pm 
Sam VarshavchikJun 2, 2005 7:51 pm 
Brian CandlerJun 2, 2005 11:39 pm 
Brian CandlerJun 2, 2005 11:41 pm 
Guido R. Rolon A.Jun 3, 2005 5:23 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:Re: [sqwebmail] i need help with sqwebmail and courier-imap-popActions...
From:Guido R. Rolon A. (gro@soluciones-alternativas.com)
Date:Jun 2, 2005 7:33:15 pm
List:net.sourceforge.lists.courier-sqwebmail

Brian Candler wrote:

On Wed, Jun 01, 2005 at 10:28:12PM -0400, Guido R. Rolon A. wrote:

[root@yoda root]# ls -l /usr/local/var/spool/authdaemon/socket ls: /usr/local/var/spool/authdaemon/socket: No such file or directory

When you built and installed courier-authlib, you would have got a new authdaemon. Did you start it?

[root@yoda root]# courierauthconfig --configfiles userdb=/usr/local/etc/authlib/userdb authdaemonrc=/usr/local/etc/authlib/authdaemonrc authldaprc=/usr/local/etc/authlib/authldaprc authmysqlrc=/usr/local/etc/authlib/authmysqlrc authpgsqlrc=/usr/local/etc/authlib/authpgsqlrc mailuser=daemon mailgroup=daemon mailuid=2 mailgid=2 sbindir=/usr/local/sbin

That implies to me that you'll find an authdaemond startup script in /usr/local/sbin/authdaemond; try

/usr/local/sbin/authdaemond start

I did this. [root@yoda ~]# /usr/local/sbin/authdaemond stop [root@yoda ~]# /usr/local/sbin/authdaemond start [root@yoda ~]# ps auxw | grep "authdaemond" root 1352 0.0 0.2 1568 388 ? S 06:39 0:00 /usr/sbin/courierlogger -pid=/var/run/authdaemon.courier-imap/pid -start /usr/lib/courier/authlib/authdaemond.plain root 1353 0.0 0.2 1892 424 ? S 06:39 0:00 /usr/lib/courier/authlib/authdaemond.plain root 1357 0.0 0.2 1892 424 ? S 06:39 0:00 /usr/lib/courier/authlib/authdaemond.plain root 1358 0.0 0.2 1892 424 ? S 06:39 0:00 /usr/lib/courier/authlib/authdaemond.plain root 1359 0.0 0.4 2096 632 ? S 06:39 0:00 /usr/lib/courier/authlib/authdaemond.plain root 1360 0.0 0.5 2092 788 ? S 06:39 0:00 /usr/lib/courier/authlib/authdaemond.plain root 1361 0.0 0.5 2096 792 ? S 06:39 0:00 /usr/lib/courier/authlib/authdaemond.plain root 17931 0.0 0.2 1572 460 ? S 22:04 0:00 /usr/local/sbin/courierlogger -pid=/usr/local/var/spool/authdaemon/pid -start /usr/local/libexec/courier-authlib/authdaemond root 17932 0.0 0.8 4328 1280 ? S 22:04 0:00 /usr/local/libexec/courier-authlib/authdaemond root 17933 0.0 0.8 4328 1280 ? S 22:04 0:00 /usr/local/libexec/courier-authlib/authdaemond root 17934 0.0 0.8 4328 1280 ? S 22:04 0:00 /usr/local/libexec/courier-authlib/authdaemond root 17935 0.0 0.8 4328 1280 ? S 22:04 0:00 /usr/local/libexec/courier-authlib/authdaemond root 17936 0.0 0.8 4328 1280 ? S 22:04 0:00 /usr/local/libexec/courier-authlib/authdaemond root 17937 0.0 0.8 4328 1280 ? S 22:04 0:00 /usr/local/libexec/courier-authlib/authdaemond root 17947 0.0 0.4 2084 760 pts4 R 22:05 0:00 grep authdaemond [root@yoda ~]#

Then i created user data bases [root@yoda authlib]# /usr/local/sbin/userdb adm@domain.com.py set home=/home/vmail mail=/var/mail/vhosts/domain.com.py/admin/ uid=5000 gid=12

[root@yoda authlib]# cat userdb adm@domain.com.py home=/home/vmail|mail=/var/mail/vhosts/domain.com.py/admin/|uid=5000|gid=12

[root@yoda authlib]# /usr/local/sbin/userdbpw -md5 | userdb adm@domain.com.py set pop3pw Password: Reenter password:

[root@yoda authlib]# /usr/local/sbin/makeuserdb [root@yoda authlib]# ll total 64 -rw-rw---- 1 daemon daemon 3958 jun 2 21:54 authdaemonrc -rw-rw-rw- 1 root root 2757 may 24 19:57 authdaemonrc.bak -rw-rw---- 1 daemon daemon 7916 may 26 14:14 authldaprc -rw-rw---- 1 daemon daemon 8187 may 26 14:14 authmysqlrc -rw-rw---- 1 daemon daemon 7905 may 26 14:14 authpgsqlrc -rw------- 1 root root 104 jun 2 22:01 userdb -rw-r--r-- 1 root root 12393 jun 2 22:02 userdb.dat -rw-r--r-- 1 root root 0 jun 2 22:02 userdb.lock -rw------- 1 root root 12288 jun 2 22:02 userdbshadow.dat

When i tried to connect this is what i get. [root@yoda ~]# tail -f /var/log/mail/info Jun 2 22:04:34 yoda authdaemond: stopping authdaemond children Jun 2 22:04:36 yoda authdaemond: modules="authuserdb authpam authpgsql authldap authmysql authcustom authpipe", daemons=5 Jun 2 22:04:36 yoda authdaemond: Installing libauthuserdb Jun 2 22:04:36 yoda authdaemond: Installation complete: authuserdb Jun 2 22:04:36 yoda authdaemond: Installing libauthpam Jun 2 22:04:36 yoda authdaemond: Installation complete: authpam Jun 2 22:04:36 yoda authdaemond: Installing libauthpgsql Jun 2 22:04:36 yoda authdaemond: Installation complete: authpgsql Jun 2 22:04:36 yoda authdaemond: Installing libauthldap Jun 2 22:04:36 yoda authdaemond: Installation complete: authldap Jun 2 22:04:36 yoda authdaemond: Installing libauthmysql Jun 2 22:04:36 yoda authdaemond: Installation complete: authmysql Jun 2 22:04:36 yoda authdaemond: Installing libauthcustom Jun 2 22:04:36 yoda authdaemond: Installation complete: authcustom Jun 2 22:04:36 yoda authdaemond: Installing libauthpipe Jun 2 22:04:36 yoda authdaemond: Installation complete: authpipe Jun 2 22:07:16 yoda sqwebmaild: LOGIN: ip=[(null)], username=adm@domain.com.py Jun 2 22:07:16 yoda sqwebmaild: LOGIN: ip=[(null)], password=123456 Jun 2 22:07:16 yoda authdaemond: received auth request, service=webmail, authtype=login Jun 2 22:07:16 yoda authdaemond: authuserdb: trying this module Jun 2 22:07:16 yoda authdaemond: userdb: opened /usr/local/etc/authlib/userdb.dat Jun 2 22:07:16 yoda authdaemond: userdb: looking up 'adm@domain.com.py' Jun 2 22:07:16 yoda authdaemond: userdb: entry not found Jun 2 22:07:16 yoda authdaemond: authuserdb: REJECT - try next module Jun 2 22:07:16 yoda authdaemond: authpam: trying this module Jun 2 22:07:16 yoda authdaemond: authpam: username 'adm@domain.com.py' not found in passwordfile Jun 2 22:07:16 yoda authdaemond: authpam: REJECT - try next module Jun 2 22:07:16 yoda authdaemond: authpgsql: trying this module Jun 2 22:07:16 yoda authdaemond: authpgsql: TEMPFAIL - no more modules will be tried Jun 2 22:07:16 yoda sqwebmaild: LOGIN FAILED, user=adm@domain.com.py, ip=[192.168.0.11]

I think i'm close. Yhanks to you.

authdaemond. Try:

strings /usr/local/libexec/courier-authlib/authdaemond | grep socket

(or whatever path is given in that file), and that should show you where it's going to create the socket when it starts up.