Possible virtual domain problem showing up in cyradm -- corrected

nodens2099 nodens2099 at gmail.com
Wed Jan 27 05:24:02 EST 2010


On 27/01/2010 09:25, Nybbles2Byte wrote:
> Hello,
>
> /root is a global admin. I thought logging on as a global user meant you
> did not specify a domain but when you don't you get this error. Next
> logon as global admin but use default domain.
>
> /*cyradm> exit
>
> a>cyradm -u root at localhost localhost
> *Password:
>
> /Hopefully this is now the global admin login and I can work on all
> domain accounts.
>



Looking at your configuration you may have a simple authentication 
problem when no realm is specify (your SQL request may fail). I use 
sasldb for my global admin user.

> /*localhost> lm
> localhost> lm user/*
>
> */I thought this was supposed to list all accounts but it looks like it
> wants to ignore them all when you don't specify a domain.

That's normal. It only list users without a domain (that is, using the 
default domain).

>
> /*localhost> lm user/*@seowebsales.com
> *user/Reg/Drafts at seowebsales.com (\HasNoChildren)
> user/Reg/Sent at seowebsales.com (\HasNoChildren)
> user/Reg/Trash at seowebsales.com (\HasNoChildren)
> user/Reg at seowebsales.com (\HasChildren)
> user/Sales/Drafts at seowebsales.com (\HasNoChildren)
> user/Sales/Sent at seowebsales.com (\HasNoChildren)
> user/Sales/Trash at seowebsales.com (\HasNoChildren)
> user/Sales at seowebsales.com (\HasChildren)
>
> /Fair enough, this works.
>
> /*localhost> lm user/*@localhost
> localhost> lm user/*@neutrino
> localhost> cm user/root at localhost
> localhost> cm user/cyrus at localhost
>
> *I've just created two users in the default domain, is that going cause
> problems because you are also supposed be able to use these without a
> domain?

> Could I have done "cm user/root" and "cm user/cyrus" and would this be
> the more correct way to do this?
>

I think so (you should never specify the default domain when creating 
mailbox, IIRC). But you should test.

> *localhost> lm user/*@localhost
> *user/cyrus (\HasNoChildren)
>

> /Why is "root at localhost" that I just created not listed?

Not sure, but you shouldn't create maiboxes for admin users anyway.

> /*localhost> lm *@localhost
> *user/Reg/Drafts at seowebsales.com (\HasNoChildren)
> user/Reg/Sent at seowebsales.com (\HasNoChildren)
> user/Reg/Trash at seowebsales.com (\HasNoChildren)
> user/Reg at seowebsales.com (\HasChildren)
> user/Sales/Drafts at seowebsales.com (\HasNoChildren)
> user/Sales/Sent at seowebsales.com (\HasNoChildren)
> user/Sales/Trash at seowebsales.com (\HasNoChildren)
> user/Sales at seowebsales.com (\HasChildren)
> user/cyrus (\HasNoChildren)
>
> /Is this right? To show all mailboxes in all domains you do "lm
> *@localhost" or is there something wrong with my setup?
>

It does not work here, but we use an old (2.2.x) cyrus version.

> /*localhost> lm *@localhost
> *user/Reg/Drafts at seowebsales.com (\HasNoChildren)
> user/Reg/Sent at seowebsales.com (\HasNoChildren)
> user/Reg/Trash at seowebsales.com (\HasNoChildren)
> user/Reg at seowebsales.com (\HasChildren)
> user/Sales/Drafts at seowebsales.com (\HasNoChildren)
> user/Sales/Sent at seowebsales.com (\HasNoChildren)
> user/Sales/Trash at seowebsales.com (\HasNoChildren)
> user/Sales at seowebsales.com (\HasChildren)
> user/cyrus (\HasNoChildren)
>
> *localhost> lm *
> *INBOX (\HasNoChildren)
>
> *localhost> lm
> *INBOX (\HasNoChildren)
>
> /Why is there the special INBOX here but not for each of my created
> mailboxes in the various domains?
> Is this how it is supposed to be?
>
> /*localhost> cm user/support at seows.com
>
> */Let's create a non-default domain mailbox through cyradm and see if we
> get the all important INBOX.
>
> /*localhost> lm *@seows.com
> *user/Reg/Drafts at seowebsales.com (\HasNoChildren)
> user/Reg/Sent at seowebsales.com (\HasNoChildren)
> user/Reg/Trash at seowebsales.com (\HasNoChildren)
> user/Reg at seowebsales.com (\HasChildren)
> user/Sales/Drafts at seowebsales.com (\HasNoChildren)
> user/Sales/Sent at seowebsales.com (\HasNoChildren)
> user/Sales/Trash at seowebsales.com (\HasNoChildren)
> user/Sales at seowebsales.com (\HasChildren)
> user/support at seowebsales.com (\HasNoChildren)
>
> /Nope, no other INBOXes. Perhaps I misread how INBOXes are meant to
> work, is there only meant to one for the whole installation?
>


According to your configuration, you don't use alternate namespace, so 
you shouldn't have any INBOX folder.


More information about the Info-cyrus mailing list