Hello..

I'm implementing a mail server using Exim and a modified vmail-sql
version, but I'm having trouble making courier log in.

My spool directory is organized like this:

/var/spool/mail/(first domain letter)/(first username
letter)/username/Maildir/

like 

/var/spool/mail/t/test.com/c/coredump/Maildir/

i followed the instructions and installed courier, but now I'm having
some problems:

- The auth looks good, if I put a wrong pass the server reply that:

====================
* OK Courier-IMAP ready. Copyright 1998-2002 Double Precision, Inc.  See
COPYING for distribution information.
* LOGIN [EMAIL PROTECTED] wrong
* NO Login failed.
====================

I monitored the exit from mysqld and the query is being done.

But when I put a correct password the connection drops (I'm using telnet
to the tests) and I get this in the log:

==========================================================================
Dec 30 18:31:18 superpib imapd: Connection, ip=[200.X]
Dec 30 18:31:30 superpib imapd: LOGIN: DEBUG: ip=[200.X], command=LOGIN
Dec 30 18:31:30 superpib imapd: LOGIN: DEBUG: ip=[200.X],
[EMAIL PROTECTED]
Dec 30 18:31:30 superpib imapd: LOGIN: DEBUG: ip=[200.X], password=senha
Dec 30 18:31:30 superpib imapd: chdir: Permission denied
==========================================================================

My guess is that the authmysql is passing a wrong homedir or maildir for
the imap daemon, or there's some strange user setting that I don't see..
Each domain is owned by a system user, like

==========================================================================
superpib:/var/spool/mail/t # ls -l
total 3
drwxr-xr-x    3 exim     exim           80 Dec 23 14:40 .
drwxrwxrwt   43 exim     exim         1080 Dec 28 21:44 ..
drwxr-xr-x    4 coredump users          96 Dec 25 01:21 test.com
superpib:/var/spool/mail/t #
==========================================================================

and of course the /var/spool/mail dir is owned by exim.exim. I put the
uid and gid numbers for the owner of the domain in the sql tables too,
and I'm using this query:

======================================
SELECT popbox.local_part,                       \
popbox.password_hash,                           \
domain.uid,                                     \
domain.gid,                                     \
popbox.clearpw,                                 \
'',                                             \
CONCAT(domain.path, '/', popbox.mbox_name),     \
popbox.imap_quota,                              \
''                                              \
FROM popbox, domain                             \
WHERE popbox.local_part = '$(local_part)'       \
AND popbox.domain_name = '$(domain)'            \
AND popbox.domain_name = domain.domain_name
====================================

Courier Imapd run as root right? So I guess that it doesn't have
problems in change to other user... I'm really lost :)
Courier Imap doesn't have a DEBUG_LEVEL=1000? So I can watch every step
and see why that "chdir" error is occurring.

I accept any clue, really. :)

thanks!

[]s
coredump



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to