Imap login faid-user not found.

Wang Penghui wangpenghui at realss.com
Tue Jun 15 22:34:56 EDT 2004


Hi,all.
it made of 
OpenLDAP(2.1.26),Cyrus-IMAPd(2.2.3),Postfix(2.0.19),Cyrus-SASL(2.1.14) 
under Gentoo Linux.
I have added the virtual domains supported to the IMAP server.
And my imapd.conf is follow:
configdirectory:        /var/imap
partition-default:      /var/spool/imap
sievedir:               /var/imap/sieve
tls_cert_file:          /etc/cyrusimapd/server.crt
tls_key_file:           /etc/cyrusimapd/server.key
admins:                 cyrus
virtdomains:            userid
hashimapspool:          yes
allowanonymouslogin:    no
allowplaintext:         yes
unixhierarchysep:       yes
defaultdomain:          hackerdom.org
sasl_pwcheck_method:    saslauthd
mech_list: plain login
sendmail: /usr/sbin/sendmail

I have added two virtual domains named bitco.realss.com & ratco.realss.com.
Then create the mailboxs(user at bitco.realss.com&user at ratco.realss.com) 
using cyradm manually.
And added the users' entries into the database of OpenLDAP.
Then i try to login the IMAP server with Mozilla-thunderbird.
It could login, and could send and received messages correctly.
It looks like that the imap server was no problem.
But in some condition, it could not login such as use the eGroupWare 
project's mail.
Then i have try to write a php script to try to access it.
The script is follow:
<?php
if(!imap_open("{MailServerDomain:143/imap/notls/norsh}INBOX","user at bitco.realss.com","password")) 

    echo "error is ".imap_last_error()."\n";
else
    echo "successful";
?>

But it responsed that:
*Warning*: imap_open(): Couldn't open stream 
{localhost:143/imap/notls}INBOX in 
*/var/www/hartt.realss/egroupware/dawnlinux.php* on line *2*
error is Can not authenticate to IMAP server: user not found

I have another mail server which built with all the same version 
softwares as above server but the cyrus-imapd is 2.1.15.
And the configuration is the same as the above one.
And it could receive and send messages well with any MUA.

If i run this script i could get a "successful".

The question i have is wheather or not the login problem caused by the 
version of Cyrus-iampd?
I heard that cyrus-imapd 2.1.x could not support virtual domains well. 
But the 2.2.3 could  works well with  virtual domains.

Thanks in advance!



---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list