From owner-freebsd-questions@FreeBSD.ORG Tue Sep 13 10:29:09 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 D3C0716A41F for ; Tue, 13 Sep 2005 10:29:09 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from strange.daemonsecurity.com (62-15-72-65.inversas.jazztel.es [62.15.72.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5269A43D53 for ; Tue, 13 Sep 2005 10:29:09 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [172.24.8.84] (generic.ATOSORIGIN.ES [212.170.156.200]) by strange.daemonsecurity.com (Postfix) with ESMTP id 226A92E01B; Tue, 13 Sep 2005 12:29:06 +0200 (CEST) Message-ID: <4326A9F1.2040507@locolomo.org> Date: Tue, 13 Sep 2005 12:29:05 +0200 From: Erik Norgaard User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050824) 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> <43269EFF.8060501@vdsoft.org> In-Reply-To: <43269EFF.8060501@vdsoft.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 10:29:10 -0000 Vladimir Dvorak wrote: > 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 ? Try to be a bit systematic, clear up any previous mess, stop cyrus and check the file permissions on the directories, if they are ok, start cyrus again. On my server mailboxes in the default domain are stored in /var/imap/spool/user while virtial domain mail boxes are in /var/imap/spool/domain with one subdir for each domain. So, if you have got file permissions wrong on that directory cyrus won't create any mailboxes. After creating a mailbox use lm to see what mailboxes are created, and then lam to check the permissions. Include that in your next mail. I just looked back in the archive from the cyrus mailing list and cyrus imap does some stuff with reverse dns and if it fails strange things may occur: "Aparently, cyrus-imap does a reverse lookup of the ip on the inter- face that recieves the connection. This must resolve to a host under the defaultdomain. So, adding the line '192.168.0.4 top.example.com' to /etc/hosts solved the problem." This is my imapd.conf: configdirectory: /var/imap partition-default: /var/imap/spool altnamespace: yes userprefix: common sharedprefix: shared defaultdomain: example.com virtdomains: yes allowplaintext: yes allowplainwithouttls: no admins: cyrus root defaultacl: anyone lrs sieveusehomedir: false sievedir: /var/imap/sieve sasl_pwcheck_method: saslauthd sasl_mech_list: plain tls_cert_file: /var/imap/ssl/mail.crt tls_key_file: /var/imap/ssl/mail.pem tls_ca_file: /var/imap/ssl/ca.crt lmtpsocket: /var/imap/socket/lmtp /var/imap/spool and everything under that path is: drwx------ 11 cyrus mail 512 13 Sep 12:10 spool -- Ph: +34.666334818 web: www.locolomo.org S/MIME Certificate: www.daemonsecurity.com/ca/8D03551FFCE04F06.crt Subject ID: 9E:AA:18:E6:94:7A:91:44:0A:E4:DD:87:73:7F:4E:82:E7:08:9C:72 Fingerprint: 5B:D5:1E:3E:47:E7:EC:1C:4C:C8:3A:19:CC:AE:14:F5:DF:18:0F:B9