3 messages in net.sourceforge.lists.courier-users[courier-users] Problem between Couri...
FromSent OnAttachments
Arnauld DravetFeb 24, 2005 6:30 am 
Arnauld DravetMar 1, 2005 8:09 am 
Michael NguyenMar 1, 2005 9:29 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:[courier-users] Problem between Courier-imap and Courier-authlibActions...
From:Arnauld Dravet (prol@yahoo.fr)
Date:Feb 24, 2005 6:30:31 am
List:net.sourceforge.lists.courier-users

Hello,

I am currently setting up a mail server with virtual domains support, using qmail+vpopmail+courier-authlib+courier-imap. The qmail/vpopmail part seems to be
ok (all tests successfull). I'm using courier-authlib-0.52 and courier-imap-4.0.1. When i use authtest i can
authenticate a user:

root@mushroom:/package# authtest postmaster Authentication FAILED: Operation not permitted

root@mushroom:/package# authtest post@egocentrique.com Authentication succeeded.

Authenticated: post@egocentrique.com (uid 40, gid 40) Home Directory: /home/vpopmail/domains/edited.com/postmaster Maildir: (none) Quota: (none) Encrypted Password: $1$----EDITED----. Cleartext Password: (none) Options: disablewebmail=0,disablepop3=0,disableimap=0 root@mushroom:/package#

So i assume the link between courier-authlib and vpopmail + the mysql backend is
ok.

But, when i use courier-imap, there doesn't seem to be a valid link for the
authentication. Whenever i try to use a webmail linked to courier-imap or any regular imap
client, it says the server had a problem. I enabled debugging and here is what i have in my logs
when i try to log in:

==> /var/log/debug <== Feb 24 15:21:16 mushroom imapd-ssl: Connection, ip=[::ffff:192.168.1.110] Feb 24 15:21:42 mushroom imapd: Connection, ip=[::ffff:192.168.1.110]

Folowwing the documenation/faq/any doc i could find, i tried to telnet the
server, first trying POP3 (handled by qmail) and then imap (courier-imap):

root@mushroom:/package/fam-2.7.0# telnet localhost 110 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK <2182@egocentrique.com> user to@edited.com +OK pass EDITED +OK stat +OK 1 5947 quit +OK Connection closed by foreign host.

root@mushroom:/package/fam-2.7.0# telnet localhost 143 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2005
Double Precision, Inc. See COPYING for distribution information. a login to@edited.com EDITED * BYE Temporary problem, please try again later Connection closed by foreign host.

And nothing more in the logs that what i pasted above. I'm really lost because i don't really see how i can check where is the problem
exactly. IS there any way to have more debugging options to trace the calls between impad and the
authdaemon ?

I compiled and installed courier-authlib without any noticable problem with: ./configure --without-authpam --without-authldap --without-authpwd
--without-authmysql --without-authpgsql --without-authshadow --without-authuserdb
--without-authcustom --without-authcram --without-authdaemon --with-authvchkpw

and then i compiled and installed courier-imap without any problem (at least
nothing which made it stop or even warning): export CFLAGS="-DHAVE_OPEN_SMTP_RELAY -DHAVE_VLOGAUTH" ./configure --prefix=/usr/local/courier-imap

Thanks for any help you could provide.

Arnauld

Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/