Hi,

I got a tricky problem with my cyrus imapd + sasldb authentication.

This cyrus was configured without support for virtual domains.  
Everything works fine. Now I have to add another domain and like the  
cyrus to support virtual domains.
So I added the following lines to my  /etc/imapd.conf


virtdomains: yes
defaultdomain: club.mydomain.de
unixhierarchysep: yes

My whole imapd.conf looks like this:

===============================
servername: club.mydomain.de
# loginrealms: sode0-101 club.mydomain.de
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus fzurell fzur...@sode0-101 fzur...@localdomain
imap_admins: cyrus fzurell fzur...@sode0-101
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
#sasl_pwcheck_method: saslauthd
sasl_pwcheck_method: auxprop saslauthd
sasl_auxprop_plugin: sasldb
sasl_mech_list: PLAIN LOGIN
allowanonymouslogin: no
allowplaintext: yes
#tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
#tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
#tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
# Support virtual Domains
  virtdomains: yes

# The default domain for virtual domain support
# If the domain of a user can't be taken from its login and it can't
# be determined by doing a reverse lookup on the interface IP, this
# domain is used.
defaultdomain: club.mydomain.de
unixhierarchysep: yes
=========================

I disabled the loginrealms parameter as well. Then I restarted the  
imapd and tried to login. I can login with:

cyradm --user cyrus localhost

But when I try to list the existing mailboxes I got an empty list.  
There seems to be no user accounts in the server.
I also can't create any new mailbox like this:

  cyradm  --user cyrus localhost

localhost.localdomain> cm user/u...@reader-club.mydomain.de
createmailbox: Invalid mailbox name
localhost.localdomain>


When I disable virtdomains and login in the very same way I can see  
all the existing mailboxes.

I thinks it's a problem with the "view" of the cyrus admin account.  
But what makes me wonder is that I can't even create new mailboxes in  
this new view.

I got these entries in my sasldb

[r...@sode0-101 ~]# sasldblistusers2 | grep cyrus
cy...@sode0-101: userPassword
cy...@club.mydomain.de: userPassword


any Ideas on this?
Falko Zurell 

/i-d media AG

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

Reply via email to