From owner-freebsd-questions@FreeBSD.ORG Tue Nov 1 21:07:28 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 972D116A41F for ; Tue, 1 Nov 2005 21:07:28 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF99743D5A for ; Tue, 1 Nov 2005 21:07:26 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id D95685CC7; Tue, 1 Nov 2005 16:07:25 -0500 (EST) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 36047-08; Tue, 1 Nov 2005 16:07:24 -0500 (EST) Received: from [192.168.1.3] (pool-68-161-122-227.ny325.east.verizon.net [68.161.122.227]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id 94F4D5C12; Tue, 1 Nov 2005 16:07:24 -0500 (EST) Message-ID: <4367D912.7090201@mac.com> Date: Tue, 01 Nov 2005 16:07:30 -0500 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mark Carroll References: <20051101144318.I43179@stewie.jble.com> In-Reply-To: <20051101144318.I43179@stewie.jble.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com Cc: freebsd-questions@freebsd.org Subject: Re: Mail Server Configuration 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, 01 Nov 2005 21:07:28 -0000 Mark Carroll wrote: [ ... ] > I tried to contact washington.edu about this but wasn't able to get any > help. In which, I was trying to fix the mbox driver that is associated > with Pine to make all of my new mail stay in /var/mail/username and not > to transfer to /home/username/mbox. With this, I was also trying to > move all of the mail in /home/username/mbox back to /var/mail/username. > I tried to cp it to /var/mail/username but this made the box > inaccessible. In monkeying around with the configuration, now I cannot > receive mail in either box. Beforing monkeying with things (further :-), take some backups. Disable imapd, perhaps by killing inetd. Check whether SMTP delivery to /var/mail/username works. The simplest case involves delivery when no /var/mail/$user file exists, so check the ownership and perms created if that works. If that doesn't work, check your SMTP server and /var/log/maillog. > If you could show me how to reset to my original configuration, I would > be happy. If you could show me how I can move all of my email back to > /var/mail/username with the mbox driver disabled so that imap can find > it, I would be ecstatic. By default, UWash imapd should only move mail from /var/mail/$user to $user/mbox if $user/mbox exists. However, consider creating the following: 38-ns1% cat /usr/ports/mail/cclient/files/patch-mailsubdir --- src/osdep/unix/env_unix.c~ Mon Sep 13 17:31:19 2004 +++ src/osdep/unix/env_unix.c Sun Oct 9 00:14:45 2005 @@ -29,7 +29,7 @@ static char *myMailboxDir = NIL;/* mailbox directory name */ static char *myLocalHost = NIL; /* local host name */ static char *myNewsrc = NIL; /* newsrc file name */ -static char *mailsubdir = NIL; /* mail subdirectory name */ +static char *mailsubdir = "mail"; /* mail subdirectory name */ static char *sysInbox = NIL; /* system inbox name */ static char *newsActive = NIL; /* news active file */ static char *newsSpool = NIL; /* news spool */ ...where you ought to create a ~/mail directory for users. Anyway, that area of the file is how you change imap's idea of where to look. -- -Chuck