Courier-IMAP problem
- From: "arkis" <cedric@xxxxxxxxxxxxxxxxx>
- Date: 25 Jan 2006 07:19:31 -0800
Hi,
I'm still trying to create my 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.
Another odd thing,
$imaphost = "{".$servername.":143}INBOX.folder";
$imapmsgbox = imap_open ($imaphost, $userlogin, $userpassword) or
die("can't connect: " . imap_last_error());
^-- works ... after this connexion, I can create mailboxes and access
them... but, I still can't access my INBOX and so, can't get the user
emails. I can send mails to [user@xxxxxxxxxx], 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.
.
- Prev by Date: cpu-time - not real time
- Next by Date: Apache, PHP, FOPEN Permissions problem
- Previous by thread: cpu-time - not real time
- Next by thread: Apache, PHP, FOPEN Permissions problem
- Index(es):