<html><head><title>Possible virtual domain problem showing up in cyradm</title>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
</head>
<body>
<span style=" font-family:'default'; font-size: 10pt;">Hello,<br>
<br>
I'm concerned, perhaps for no reason, but I get that way when I don't fully understand what I am looking at so I am hoping someone can either point out what's wrong or say it's all as it should be.<br>
<br>
This is on a brand new installation of cyrus 2.3.14 setup with "virtual domains", alternate hierarchy separator ("/" instead of "."), full file hashing and it authenticates via a MySQL DB.<br>
<br>
Before starting cyradm I created the mailboxes&nbsp;<a href="mailto:user/Reg@seows.com">user/Reg@seows.com</a>&nbsp;and&nbsp;<a href="mailto:user/Sales@seows.com">user/Sales@seows.com</a>&nbsp;(and their children) through my own web application I wrote just for cyrus IMAP (basic mailbox admin. only for my users create/delete/rename/change password and that's all).<br>
<br>
This is the cyradm session I just had and there are some things that don't make sense so I have put my questions in &nbsp;the session at the points where it seems strange to me...<br>
<br>
<b>&gt;cyradm -u root<br>
cyradm&gt; lm *<br>
</b>listmailbox: no connection to server<br>
<br>
<i>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.<br>
<br>
</i><b>cyradm&gt; exit<br>
<br>
a&gt;cyradm -u root@localhost localhost<br>
</b>Password:&nbsp;<br>
<br>
<i>Hopefully this is now the global admin login and I can work on all domain accounts.<br>
<br>
</i><b>localhost&gt; lm<br>
localhost&gt; lm user/*<br>
<br>
</b><i>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.<br>
<br>
</i><b>localhost&gt; lm user/*@seowebsales.com<br>
</b>user/Reg/Drafts@seowebsales.com (\HasNoChildren) &nbsp; &nbsp;<br>
user/Reg/Sent@seowebsales.com (\HasNoChildren) &nbsp; &nbsp; &nbsp;<br>
user/Reg/Trash@seowebsales.com (\HasNoChildren) &nbsp; &nbsp;&nbsp;<br>
user/Reg@seowebsales.com (\HasChildren) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>
user/Sales/Drafts@seowebsales.com (\HasNoChildren) &nbsp;<br>
user/Sales/Sent@seowebsales.com (\HasNoChildren) &nbsp; &nbsp;<br>
user/Sales/Trash@seowebsales.com (\HasNoChildren) &nbsp;&nbsp;<br>
user/Sales@seowebsales.com (\HasChildren) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>
<br>
<i>Fair enough, this works.<br>
<br>
</i><b>localhost&gt; lm user/*@localhost<br>
localhost&gt; lm user/*@neutrino<br>
localhost&gt; cm user/root@localhost<br>
localhost&gt; cm user/cyrus@localhost<br>
<br>
</b>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?&nbsp;<br>
<br>
Could I have done "cm user/root" and "cm user/cyrus" and would this be the more correct way to do this?<br>
<br>
<b>localhost&gt; lm user/*@localhost<br>
</b>user/cyrus (\HasNoChildren)<br>
<br>
<i>Why is "root@localhost" that I just created not listed?<br>
<br>
</i><b>localhost&gt; lm *@localhost<br>
</b>user/Reg/Drafts@seowebsales.com (\HasNoChildren) &nbsp; &nbsp;<br>
user/Reg/Sent@seowebsales.com (\HasNoChildren) &nbsp; &nbsp; &nbsp;<br>
user/Reg/Trash@seowebsales.com (\HasNoChildren) &nbsp; &nbsp;&nbsp;<br>
user/Reg@seowebsales.com (\HasChildren) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>
user/Sales/Drafts@seowebsales.com (\HasNoChildren) &nbsp;<br>
user/Sales/Sent@seowebsales.com (\HasNoChildren) &nbsp; &nbsp;<br>
user/Sales/Trash@seowebsales.com (\HasNoChildren) &nbsp;&nbsp;<br>
user/Sales@seowebsales.com (\HasChildren) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>
user/cyrus (\HasNoChildren) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>
<br>
<i>Is this right? To show all mailboxes in all domains you do "lm *@localhost" or is there something wrong with my setup?<br>
<br>
</i><b>localhost&gt; lm *@localhost<br>
</b>user/Reg/Drafts@seowebsales.com (\HasNoChildren) &nbsp; &nbsp;<br>
user/Reg/Sent@seowebsales.com (\HasNoChildren) &nbsp; &nbsp; &nbsp;<br>
user/Reg/Trash@seowebsales.com (\HasNoChildren) &nbsp; &nbsp;&nbsp;<br>
user/Reg@seowebsales.com (\HasChildren) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>
user/Sales/Drafts@seowebsales.com (\HasNoChildren) &nbsp;<br>
user/Sales/Sent@seowebsales.com (\HasNoChildren) &nbsp; &nbsp;<br>
user/Sales/Trash@seowebsales.com (\HasNoChildren) &nbsp;&nbsp;<br>
user/Sales@seowebsales.com (\HasChildren) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>
user/cyrus (\HasNoChildren)<br>
<br>
<b>localhost&gt; lm *<br>
</b>INBOX (\HasNoChildren) &nbsp;<br>
<br>
<b>localhost&gt; lm<br>
</b>INBOX (\HasNoChildren) &nbsp;<br>
<br>
<i>Why is there the special INBOX here but not for each of my created mailboxes in the various domains?&nbsp;<br>
Is this how it is supposed to be?<br>
<br>
</i><b>localhost&gt; cm support@seows.com<br>
<br>
</b><i>Let's create a non-default domain mailbox through cyradm and see if we get the all important INBOX.<br>
<br>
</i><b>localhost&gt; lm *@seows.com<br>
</b>user/Reg/Drafts@seowebsales.com (\HasNoChildren) &nbsp; &nbsp;<br>
user/Reg/Sent@seowebsales.com (\HasNoChildren) &nbsp; &nbsp; &nbsp;<br>
user/Reg/Trash@seowebsales.com (\HasNoChildren) &nbsp; &nbsp;&nbsp;<br>
user/Reg@seowebsales.com (\HasChildren) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>
user/Sales/Drafts@seowebsales.com (\HasNoChildren) &nbsp;<br>
user/Sales/Sent@seowebsales.com (\HasNoChildren) &nbsp; &nbsp;<br>
user/Sales/Trash@seowebsales.com (\HasNoChildren) &nbsp;&nbsp;<br>
user/Sales@seowebsales.com (\HasChildren) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>
user/support@seowebsales.com (\HasNoChildren)<br>
<br>
<i>Nope, no other INBOXes. Perhaps I misread how INBOXes are meant to work, is there only meant to one for the whole installation?<br>
<br>
</i><b>localhost&gt; lm&nbsp;<br>
</b>INBOX (\HasNoChildren) &nbsp;<br>
<b>localhost&gt; lm *<br>
</b>INBOX (\HasNoChildren) &nbsp;<br>
<b>localhost&gt; lm *@*<br>
<br>
</b><i>Just double checking for more mailboxes but all looks the same.<br>
<br>
</i>That's it. Does this look right? I'm gearing up to make my server live soon so I need to make sure everything is working as it should.<br>
<br>
Thanks heaps! in advance.<br>
<br>
Oh, and in case it's useful here is my configuration:<br>
<br>
# ==============================================================================<br>
# Cyrus-SASL Options<br>
# ==============================================================================<br>
sasl_auxprop_plugin: sql<br>
sasl_log_level: 3<br>
sasl_mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5<br>
sasl_pwcheck_method: auxprop<br>
sasl_sql_hostnames: localhost<br>
sasl_sql_user: cyrus<br>
sasl_sql_passwd: Yn8HVdsqYBvhqX5j<br>
sasl_sql_database: system_mail<br>
sasl_sql_select: SELECT `password` FROM `accounts` WHERE `user`='%u' AND `realm`='%r' AND `virtual` != 0<br>
sasl_sql_insert: INSERT INTO `accounts` (`user`, `realm`, `password`) VALUES ('%u', '%r', '%v')<br>
sasl_sql_update: UPDATE `accounts` SET `user`='%u',`realm`='%r',`password`='%v' WHERE `user`='%u' AND `realm`='%r'<br>
# ==============================================================================<br>
# Cyrus-IMAP Options<br>
# ==============================================================================<br>
admins: root cyrus root@seowebsales.com<br>
allowplaintext: 1<br>
allowusermoves: 1<br>
altnamespace: 1<br>
anyoneuseracl: 0<br>
auth_mech: unix<br>
configdirectory: /var/lib/imap<br>
defaultdomain: localhost<br>
drachost: localhost<br>
dracinterval: 0<br>
duplicatesuppression: 0<br>
foolstupidclients: 1<br>
fulldirhash: 1<br>
hashimapspool: 1<br>
improved_mboxlist_sort: 1<br>
lmtp_downcase_rcpt: 1<br>
lmtp_strict_quota: 1<br>
logtimestamps: 1<br>
partition-default: /var/spool/mail/cyrus<br>
popsubfolders: 1<br>
sendmail: /usr/sbin/sendmail<br>
sievedir: /var/spool/mail/sieve<br>
unixhierarchysep: 1<br>
virtdomains: userid<br>
<br>
<span style=" font-family:'arial'; font-size: 8pt; color: #c0c0c0;"><i>--&nbsp;<br>
Nybbles2Byte &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a style=" font-style: normal;" href="mailto:nybbles2byte@gmail.com">mailto:nybbles2byte@gmail.com</a><br>
</body>