From owner-freebsd-questions Tue Dec 5 22:46:12 2000 From owner-freebsd-questions@FreeBSD.ORG Tue Dec 5 22:46:09 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from hyperreal.org (taz.hyperreal.org [209.133.83.16]) by hub.freebsd.org (Postfix) with SMTP id DA4F437B400 for ; Tue, 5 Dec 2000 22:46:08 -0800 (PST) Received: (qmail 853 invoked by uid 12); 6 Dec 2000 06:46:09 -0000 Message-ID: <20001206064609.852.qmail@hyperreal.org> From: mike@hyperreal.org Subject: $MAIL defaults to /var/mail/userid In-Reply-To: <9F36E367710D474E9806AA393FE737FB019F17@resnetnt.resnet.uconn.edu> from Peter Lai at "Dec 4, 2000 04:56:36 pm" To: freebsd-questions@freebsd.org Date: Tue, 5 Dec 2000 22:46:09 -0800 (PST) Cc: freebsd-bugs@freebsd.org X-Mailer: ELM [version 2.4ME+ PL60 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Peter Lai wrote: > How about setting /etc/csh.cshrc or /etc/profile to set $MAIL every time the > user logs in? That's a workaround and only works for those shells that use those global settings. The bug is still there. This is nuts. It is now happening on my non-qmail system. It doesn't have anything to do with qmail. I get $MAIL as /var/mail/username every time. We're talking FreeBSD 4.2-RELEASE here, a completely fresh install. No difference if rebooted (thought maybe it was caching something), no difference if using a freshly created user account with a different shell (/bin/sh instead of /bin/tcsh). The problem/bug [for the freebsd-bugs folks] is that the environment variable MAIL is set to /var/mail/userid no matter what one puts in the /etc/login.conf file (and yes I run cap_mkdb) and also in spite of setting it in ~/.login_conf. Even omitting the variable assignment has no effect; it still gets set. Other variable settings in login.conf work just fine. So I've got this reproducible on 2 systems now... if anyone can't reproduce it on a 4.2 system I'd be happy to demonstrate, short of reinstalling my OS. - Mike ________________________________________________________________________ Mike Brown / Hyperreal | Hyperreal http://music.hyperreal.org/ PO Box 61334 | XML & XSL http://skew.org/xml/ Denver CO 80206-8334 USA | personal http://www.hyperreal.org/~mike/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message