createmailbox Please Help!

Igor Brezac igor at ipass.net
Tue Mar 9 15:48:17 EST 2004


On Tue, 9 Mar 2004, tsg wrote:

> =C2=F2=EE=F0=ED=E8=EA 09 =CC=E0=F0=F2 2004 19:21, =C2=FB =ED=E0=EF=E8=F1=
=E0=EB=E8:
> > > tsg <tsg at bugalux.com> 03/09/04 06:41pm >>>
> > >Hi!
> > >I tried to create virtual domain mailboxes with cyrus-imapd v2.2.3 a=
s
> >
> > it
> >
> > >written in install-virtdomains.html, but I got error:
> > >
> > ># cyradm --user administrator --auth login localhost
> > >
> > >test> create user.jill at example.net
> > >createmailbox: Permission denied
> > >
> > >in the mean time I can create default domain users without any
> >
> > problems:
> > >test> create user.jill
> > >test>
> > >
> > >and users:
> > >test> create jill at example.net
> > >test>
> > >Can somebody tell me what I did wrong?

Based on your setup example.net is not your default domain.  My guess is
you have 'virtualdomains: yes' and 127.0.0.1 resolves to
localhost.example.net.

For global admin you need to login as administrator at test.com:
cyradm --user administrator at test.com --auth login localhost

or

Set 'virtualdomains: userid'

-Igor

> > >
> > >My imapd.conf:
> > >configdirectory:        /var/lib/imap
> > >defaultpartition:       default
> > >partition-default:      /var/lib/imap/default
> > >partition-news:       /var/lib/imap/news
> > >newsspool:            /var/spool/imap/news
> > >admins:                 root administrator test at example.net
> > >sasl_pwcheck_method:    saslauthd
> > >#sasl_maximum_layer:     256
> > >#sasl_minimum_layer:     128
> > >allowanonimouslogin:    no
> > >allowplaintext:         yes
> > >#servername:             test.com
> > >tls_cert_file:          /var/lib/imap/cyrus.crt
> > >tls_key_file:           /var/lib/imap/cyrus.key
> > >tls_ca_path:            /usr/share/ssl
> > >tls_ca_file:            /usr/share/ssl/certs/ca.crt
> > >#tls_require_cert:      yes
> > >imapidresponse:         no
> > >sendmail:               /usr/sbin/sendmail
> > >sievedir:               /var/lib/imap/sieve
> > >virtualdomains:         userid
> > >#hashimapspool:         yes
> > >defaultdomain:          test.com
> > >
> > >Please help!
> > >Best regards. Sergios
> >
> > Hi Sergios,
> >
> > In your imapd.conf, the value of the "virtualdomains:" key should _no=
t_
> > be "userid"; it should be "yes" or "t" or "1"
> >
> > Mike.
> Hi Mike!
> Thank you for your answer!
>
> From Cyrus-imapd documentation:
> In order to accomplish this, Cyrus needs to know which domain to look i=
n when
> a mailbox is accessed. There are two ways in which Cyrus can determine =
the
> domain:
>
>     * Fully qualified userid - the client logs in with a userid contain=
ing the
> domain in which the user belongs (e.g test at example.com or test%example.=
net)
>     * IP address - the server looks up the domain based on the IP addre=
ss of
> the receiving interface (useful for servers with multiple NICs or using=
 IP
> aliasing)
>
> Both of these methods are active if the virtdomains option is set to on=
 (or
> yes, 1, true) and can be used in conjunction with one another. If the
> virtdomains option is set to userid, then only the first method is used=
. Note
> that a fully qualified userid takes precedence over a domain obtained f=
rom
> the IP address.
>
> But I do not need any IP lookups. So I used
> virtualdomains:         userid
>
> But anyhow
> virtualdomains:         yes
>
> gives the same result.
> > ---
> > Home Page: http://asg.web.cmu.edu/cyrus
> > Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>
> ---
> Home Page: http://asg.web.cmu.edu/cyrus
> Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>

--=20
Igor

---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list