virtual domains 2.1.15 - 2.2BETA
Wim Bakker
wim at unetix.nl
Tue Nov 25 08:06:42 EST 2003
On Monday 24 November 2003 21:15, Robert Harris wrote:
> several good ideas... nothing that pans out yet but id find out that the
> virtual domains are looping to the default domain (admin wise an mailbox
> wise) unexplainably.... any more insights greatlt appreciated... :}
>
> subquery... I do have "virtdomains: yes" set in imapd.conf if it was off
> or not acknowledged as being set would that cause the aforementioned
> problem? --Robert
>
> > configdirectory: /var/imap
> > partition-default: /var/spool/imap
> > admins: admin rick.admin at hisdomain.com jill.admin at herdomain.net
> > virtdomains: yes
> > defaultdomain: exampleisp.net
Here's my imapd.conf for test purposes on test server:
(I suppose you have the line sasl_pwcheck_method: auxprop too)
for simple testing:
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus mailadmin at unetix.net mailadmin at unetix.com
sasl_pwcheck_method: auxprop
virtdomains: yes
defaultdomain: localdomain.net
with saslpasswd2 create admin cyrus:
saslpasswd2 -c cyrus
(asks for passwd etc.)
now you can login in with:
cyradm --auth plain --user cyrus localhost
and when you do lm you see e.g.:
user.guest1 at unetix.net (\HasNoChildren)
user.mailadmin at unetix.com (\HasNoChildren)
user.mailadmin at unetix.net (\HasNoChildren)
user.unetix at unetix.com (\HasNoChildren)
user.unetix at unetix.net (\HasNoChildren)
etc..
you can create mailboxes with
cm user.guest2 at unetix.net
lm:
user.guest1 at unetix.net (\HasNoChildren)
user.guest2 at unetix.net (\HasNoChildren)
user.mailadmin at unetix.com (\HasNoChildren)
user.mailadmin at unetix.net (\HasNoChildren)
user.unetix at unetix.com (\HasNoChildren)
user.unetix at unetix.net (\HasNoChildren)
for the different domains.
create admins for the different domains with:
saslpasswd2 -c -u unetix.net mailadmin etc..
if you login as
cyradm --auth plain --user mailadmin at unetix.com localhost
and you do lm
you see:
user.unetix (\HasNoChildren)
only the mailboxes for that domain
create mailbix with cm:
cm user.guest2
lm :
user.guest2 (\HasNoChildren)
user.unetix (\HasNoChildren)
exit and login with
cyradm --auth plain --user cyrus localhost
lm gives:
user.guest1 at unetix.net (\HasNoChildren)
user.guest2 at unetix.com (\HasNoChildren)
user.guest2 at unetix.net (\HasNoChildren)
user.mailadmin at unetix.com (\HasNoChildren)
user.mailadmin at unetix.net (\HasNoChildren)
user.unetix at unetix.com (\HasNoChildren)
user.unetix at unetix.net (\HasNoChildren)
so , I suppose , cyrus is the overall admin, you may create create
mailboxes for all domains in the form of
cm user.<username>@<domain>
mailadmins for the different domains login with --user mailadmin@<domain>
and see and create only mailboxes in their domain without the domain
extension.
What doesn't work is the default domain, I have that line in the imapd.conf
too but I think you might as well leave it out because you can't do anything
with it. So forget about the default domain , it doesn't work, or it works
completely different from what one expects which is the same.
Hope this helps
wim
This e-mail was scanned by RAV Antivirus!
More information about the Info-cyrus
mailing list