From owner-freebsd-isp@FreeBSD.ORG Fri Apr 28 19:07:59 2006 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 317B316A401 for ; Fri, 28 Apr 2006 19:07:59 +0000 (UTC) (envelope-from b.candler@pobox.com) Received: from proof.pobox.com (proof.pobox.com [207.106.133.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A99443D9F for ; Fri, 28 Apr 2006 19:07:36 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from proof (localhost [127.0.0.1]) by proof.pobox.com (Postfix) with ESMTP id 7BD901082B7; Fri, 28 Apr 2006 15:07:34 -0400 (EDT) Received: from mappit.local.linnet.org (212-74-113-67.static.dsl.as9105.com [212.74.113.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by proof.sasl.smtp.pobox.com (Postfix) with ESMTP id E9BC44357B; Fri, 28 Apr 2006 15:07:28 -0400 (EDT) Received: from lists by mappit.local.linnet.org with local (Exim 4.61 (FreeBSD)) (envelope-from ) id 1FZYJL-0004Xs-HY; Fri, 28 Apr 2006 20:07:27 +0100 Date: Fri, 28 Apr 2006 20:07:27 +0100 From: Brian Candler To: Eric De La Cruz Lugo Message-ID: <20060428190727.GA17435@uk.tiscali.com> References: <20060427164556.77803.qmail@web37309.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060427164556.77803.qmail@web37309.mail.mud.yahoo.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-isp@freebsd.org, smatlick@hordehost.com, acardenas@eldemonio.org Subject: Re: Related to: http://ryxi.com/freebsd/68-149-courier-imap-not-starting-read.shtml X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 19:07:59 -0000 On Thu, Apr 27, 2006 at 09:45:56AM -0700, Eric De La Cruz Lugo wrote: > /home/postfix/sipse.com.mx/.Sent > /edelacruz/cur > /new > /tmp ... > Postfix delivers the mails I send with Kmail, but when > i want to check mails trough the pop3, i have errors > saying: > > can't chdir Maildir courier-imap first does a chdir(homedir), then does chdir(maildir) So how to make this work depends on what authentication module you are using for courier-imap's authdaemond. You will need to set it up so the account in question has homedir=/home/postfix/sipse.com.mx/edelacruz and MAILDIRPATH=. or homedir=/home/postfix and maildir=sipse.com.mx/edelacruz > In order to make some test I have to change the > MAILDIRPATH=Maildir variable inside the > /usr/local/etc/courier-imap/imapd and > /usr/local/etc/courier-pop3/pop3d files > > to the following value: > > MAILDIRPATH=sipse.com.mx/edelacruz/ That's a static default value which is shared by all accounts which don't have their own explicit 'maildir' setting. Like I say, this depends on exactly what authentication module you're using. If you're using authpam / authpwd / authshadow, then the accounts cannot have their own independent maildir setting, so you should set MAILDIRPATH=. and the homedir of each account to point to the right place. However if you're using authuserdb, authmysql, authpgsql or authldap, then you can configure each account to have both its own homedir and own maildir setting. If you're using authvchkpw then you'll have to look at the source code, as I don't know vpopmail. > > In MySQL 4.1.13 I have the postfixadmin tables and the > mailbox table contains a maildir field with the proper > value, but it seems that courier-imap is not taking > that value when trying to connect to the 110 and 143 > ports. Then show your authmysqlrc file, and a sample row from your mailbox table. Regards, Brian.