Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Nov 2005 16:07:30 -0500
From:      Chuck Swiger <cswiger@mac.com>
To:        Mark Carroll <marquis@stewie.jble.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Mail Server Configuration
Message-ID:  <4367D912.7090201@mac.com>
In-Reply-To: <20051101144318.I43179@stewie.jble.com>
References:  <20051101144318.I43179@stewie.jble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4367D912.7090201>