Imap login faid-user not found.

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

it made of 
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
sasl_pwcheck_method:    saslauthd
mech_list: plain login
sendmail: /usr/sbin/sendmail

I have added two virtual domains named &
Then create the mailboxs(user at at 
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:
if(!imap_open("{MailServerDomain:143/imap/notls/norsh}INBOX","user at","password")) 

    echo "error is ".imap_last_error()."\n";
    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:
Cyrus Wiki/FAQ:
List Archives/Info:

More information about the Info-cyrus mailing list