From owner-freebsd-questions@FreeBSD.ORG Tue Sep 13 09:41:50 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0135A16A41F for ; Tue, 13 Sep 2005 09:41:49 +0000 (GMT) (envelope-from dvorakv@vdsoft.org) Received: from mail.vdsoft.org (poseidon.vdsoft.org [193.85.147.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B4A443D48 for ; Tue, 13 Sep 2005 09:41:48 +0000 (GMT) (envelope-from dvorakv@vdsoft.org) Received: from [10.10.0.110] (195.70.144.6.adsl.nextra.cz [195.70.144.6]) by mail.vdsoft.org (Postfix) with ESMTP id 1EF6F47E011; Tue, 13 Sep 2005 11:41:44 +0200 (CEST) Message-ID: <43269EFF.8060501@vdsoft.org> Date: Tue, 13 Sep 2005 11:42:23 +0200 From: Vladimir Dvorak User-Agent: Debian Thunderbird 1.0.6 (X11/20050802) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Vladimir Dvorak References: <432693A9.5010706@vdsoft.org> <4326998C.1080600@locolomo.org> <43269C73.30003@vdsoft.org> In-Reply-To: <43269C73.30003@vdsoft.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: cyrus-imap + virtualdomains X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2005 09:41:50 -0000 Vladimir Dvorak wrote: >Erik Norgaard wrote: > > > >>Vladimir Dvorak wrote: >> >> >> >>>I add >>> virtdomains: yes >>> loginrealms: devel testdomain.org >>> >>>into imapd.conf, then I created mailbox using following commands: >>> >>>devel~: cyradm -u cyrus@devel localhost >>>Password: xxxx >>>localhost> cm user.test@testdomain.org >>> >>>Now, I can authenticate and work with this mailbox. >>> >>>But problem occurs, when I create for example >>> >>>localhost>cm user.test2@test2domain.org >>> >>>and try to login. In maillog appears >>> >>>plaintext test2@test2domain.org SASL(-13): authentication failure: >>>cross-realm login test2@test2domain.org denied >>> >>>It is clear - when I put test2domain.org behind the loginrealms item, it >>>works. >>> >>>My question is: is possible to allow * domains to loginrealms ( because >>>this server will serve a lot of domains and adding domain items is not >>>effective) ? >>> >>> >>There are a few things that comes into mind: First, you write your >>login realms as devel testdomain.org - I don't see test2domain.org >>anywhere. >> >>Second, depending on you mail client you may have to separate login >>name and realm with a % instead of @. >> >>Third, the newly created mailbox may have wrong permissions - check. >> >>Finally: >> >>In my config I have only: >> >> defaultdomain: mydefaultdomain.org >> virtdomains: yes >> >>and no list of loginrealms. Adding a virtual domain is as simple as >>adding a mailbox as you did: > cm user.myuser2@virtualdomain.org >> >>I use sasl to authenticate against the system password so myuser >>(@mydefaultdomain.org) and myuser%myvirtualdomain.org is the same user. >> >>Since cyrus does not deliver mail (is not an MTA) cyrus can safely >>assume that incoming mail matching user/domain is destined for storage >>in that users mailbox. For this reason I guess, there should be no >>need to specify realms in the config. >> >>Cheers, Erik >> >> >> >Ok, I followed you instructions and my config looks: > >defaultdomain: devel >virtdomains: yes > >Now I login as admin cyrus and try to create mailbox: > >devel:~# cyradm -u cyrus localhost >IMAP Password: > localhost.localdomain> cm user.myuser2@virtual.org >createmailbox: Permission denied > >In maillog is nothing, what permissions I should increace ? Do you have >any idea ? > >Thank you. > >Vladimir > > > It seems to be working but localhost.localdomain> cm user.test@1.org createmailbox: Permission denied localhost.localdomain> cm user.test@1 localhost.localdomain> cm user.test@1.org Why I cannot create test@1.org directly ? Because of cyrus`s directory structure ? Or when I need mailbox with 'dot' : foo.bar@foobar.com ? Vladimir