Mail Server Configuration
Chuck Swiger
cswiger at mac.com
Tue Nov 1 13:07:28 PST 2005
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
More information about the freebsd-questions
mailing list