Possible virtual domain problem showing up in cyradm -- corrected
Nybbles2Byte
nybbles2byte at gmail.com
Wed Jan 27 03:25:42 EST 2010
Hello,
Please ignore the first one I sent of this, there was a critical line that I typed wrong so I am resending with that line fixed.
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.
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.
Before starting cyradm I created the mailboxes user/Reg at seows.com and user/Sales at seows.com (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).
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 the session at the points where it seems strange to me...
>cyradm -u root
cyradm> lm *
listmailbox: no connection to server
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.
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.
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?
localhost> lm user/*@localhost
user/cyrus (\HasNoChildren)
Why is "root at localhost" that I just created not listed?
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?
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?
localhost> lm
INBOX (\HasNoChildren)
localhost> lm *
INBOX (\HasNoChildren)
localhost> lm *@*
Just double checking for more mailboxes but all looks the same.
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.
Thanks heaps! in advance.
Oh, and in case it's useful here is my configuration:
# ==============================================================================
# Cyrus-SASL Options
# ==============================================================================
sasl_auxprop_plugin: sql
sasl_log_level: 3
sasl_mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5
sasl_pwcheck_method: auxprop
sasl_sql_hostnames: localhost
sasl_sql_user: cyrus
sasl_sql_passwd: Yn8HVdsqYBvhqX5j
sasl_sql_database: system_mail
sasl_sql_select: SELECT `password` FROM `accounts` WHERE `user`='%u' AND `realm`='%r' AND `virtual` != 0
sasl_sql_insert: INSERT INTO `accounts` (`user`, `realm`, `password`) VALUES ('%u', '%r', '%v')
sasl_sql_update: UPDATE `accounts` SET `user`='%u',`realm`='%r',`password`='%v' WHERE `user`='%u' AND `realm`='%r'
# ==============================================================================
# Cyrus-IMAP Options
# ==============================================================================
admins: root cyrus root at seowebsales.com
allowplaintext: 1
allowusermoves: 1
altnamespace: 1
anyoneuseracl: 0
auth_mech: unix
configdirectory: /var/lib/imap
defaultdomain: localhost
drachost: localhost
dracinterval: 0
duplicatesuppression: 0
foolstupidclients: 1
fulldirhash: 1
hashimapspool: 1
improved_mboxlist_sort: 1
lmtp_downcase_rcpt: 1
lmtp_strict_quota: 1
logtimestamps: 1
partition-default: /var/spool/mail/cyrus
popsubfolders: 1
sendmail: /usr/sbin/sendmail
sievedir: /var/spool/mail/sieve
unixhierarchysep: 1
virtdomains: userid
--
Nybbles2Byte mailto:nybbles2byte at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20100127/b41a0039/attachment-0001.html
More information about the Info-cyrus
mailing list