From owner-freebsd-questions Mon Dec 4 3:35:14 2000 From owner-freebsd-questions@FreeBSD.ORG Mon Dec 4 03:35:11 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from resnetnt.resnet.uconn.edu (resnet.resnet.uconn.edu [137.99.156.20]) by hub.freebsd.org (Postfix) with ESMTP id 2C80E37B400 for ; Mon, 4 Dec 2000 03:35:11 -0800 (PST) Received: by resnetnt.resnet.uconn.edu with Internet Mail Service (5.5.2650.21) id ; Mon, 4 Dec 2000 06:30:46 -0500 Message-ID: <9F36E367710D474E9806AA393FE737FB019F0F@resnetnt.resnet.uconn.edu> From: Peter Lai To: "'mike@hyperreal.org '" , "'freebsd-questions@freebsd.org '" Subject: RE: $MAIL w/qmail defaults to /var/mail/userid? Date: Mon, 4 Dec 2000 06:30:45 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG i think mail.local is fooling around with the $MAIL variable. for qmail, set delivery options when calling qmail-send, as in the script /var/qmail/boot/home -----Original Message----- From: mike@hyperreal.org To: freebsd-questions@freebsd.org Sent: 12/4/2000 1:52 AM Subject: $MAIL w/qmail defaults to /var/mail/userid? I am having a problem with the MAIL environment variable. This is on a FreeBSD 4.2-STABLE system that was upgraded from 4.1-STABLE. We have installed and are running qmail on this system, in place of sendmail. Mail is stored in a Mailbox file in each user's home directory, rather than /var/mail. Therefore, I want to have the MAIL environment variable for all users point to this file rather than /var/mail/userid. I have edited the default class in /etc/login.conf so that the setenv line reads: :setenv=MAIL=~/Mailbox,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES,FOO=bar:\ And I have run cap_mkdb to regenerate the database. The user's /etc/master.passwd entry has nothing in the login class field, so the default class should be in effect. However, on this system, upon login, $MAIL is always set to /var/mail/userid. Yet $FOO is set to bar, so something strange is going on. I have ruled out the possibility of post-login scripts like .cshrc interfering. There is nothing in ~/.* referring to /var/mail. There is nothing in /etc/* referring to /var/mail. I also ruled out the shell; the user's login shell is /bin/tcsh, nothing too unusual. I tried with /bin/sh and got the same results. So how is $MAIL becoming /var/mail/userid? It's especially puzzling becasue I can't duplicate the problem on a fresh installation of FreeBSD 4.2-RELEASE with vanilla sendmail. The exact same login.conf entry is processed just fine, and $MAIL is the absolute path to the user's Mailbox file in their home directory, just as I intended. 'strings /usr/bin/login | fgrep mail' reveals that /var/mail is compiled into login(1), but big deal.. the 4.2-RELEASE system has the exact same binary (I checked). Any ideas? TIA, -Mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message