Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Dec 2000 06:30:45 -0500 
From:      Peter Lai <PeterL@resnet.uconn.edu>
To:        "'mike@hyperreal.org '" <mike@hyperreal.org>, "'freebsd-questions@freebsd.org '" <freebsd-questions@freebsd.org>
Subject:   RE: $MAIL w/qmail defaults to /var/mail/userid?
Message-ID:  <9F36E367710D474E9806AA393FE737FB019F0F@resnetnt.resnet.uconn.edu>

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




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