2 messages in net.sourceforge.lists.courier-users[courier-users] Courier-IMAP problem
FromSent OnAttachments
Ex NihiloJan 25, 2006 8:54 am 
Thomas HebinckJan 26, 2006 6:05 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] Courier-IMAP problemActions...
From:Ex Nihilo (mj_t@hotmail.com)
Date:Jan 25, 2006 8:54:44 am
List:net.sourceforge.lists.courier-users

Hi,

I'm trying to create a courier-imap/MySQL/Php webmail and I have some problems to do so.

When trying to connect to my INBOX through this function :

$imaphost = "{".$servername.":143/}INBOX"; $imapmsgbox = imap_open ($imaphost, $userlogin, $userpassword) or die("can't connect: " . imap_last_error());

I get the following error message (after 1 minute ... it seems it's trying to connect):

Warning: imap_open(): Couldn't open stream {localhost:143}INBOX in /var/www/html/includes/imap.inc.php on line 7 can't connect: [CLOSED] IMAP connection broken (server response)

The strange thing is in my maillog ... Jan 25 15:56:12 server imapd: Connection, ip=[::ffff:127.0.0.1] Jan 25 15:56:12 server authdaemond: received auth request, service=imap, authtype=cram-md5 Jan 25 15:56:12 server authdaemond: authmysql: trying this module Jan 25 15:56:12 server authdaemond: cram: challenge=[blalbalblalba]response=[blablabla] Jan 25 15:56:12 server authdaemond: cram: decoded challenge/response, username '[cedric@domain]' Jan 25 15:56:12 server authdaemond: SQL query: SELECT id, crypt, clear, uid, gid, home, maildir, quota, name, "" FROM passwd WHERE id = "[cedric@domain]" Jan 25 15:56:12 server authdaemond: cram validation succeeded Jan 25 15:56:12 server authdaemond: Authenticated: sysusername=<null>, sysuserid=65534, sysgroupid=65534, homedir=/opt/users/c/e/cedric, address=[cedric@domain], fullname=Cedric, maildir=/opt/users/c/e/cedric/Maildir, quota=100000, options=<null> Jan 25 15:56:12 server imapd: LOGIN, user=[cedric@domain], ip=[::ffff:127.0.0.1], protocol=IMAP

It seems i'm correctly logged in but have no response from the server.

I can send mails to [cedric@domain], they are delivered correctly in my Maildir/new folder.

Is there a problem with my Maildir folder, my courier/imap config ?

I'm not a sysadmin (who's on vacation ...) and I have to fix this and make the webmail works for friday, so I'd appreciate some help :)

Many thanks,

Cedric.