Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site psivax.UUCP Path: utzoo!watmath!clyde!cbosgd!ukma!psuvm.bitnet!psuvax1!burdvax!sdcrdcf!psivax!woof From: woof@psivax.UUCP (Hal Schloss) Newsgroups: net.mail,net.unix-wizards Subject: Re: rerouting mail after a timeout (Many machines one mail directory) Message-ID: <977@psivax.UUCP> Date: Wed, 22-Jan-86 18:30:12 EST Article-I.D.: psivax.977 Posted: Wed Jan 22 18:30:12 1986 Date-Received: Fri, 24-Jan-86 21:21:36 EST References: <5651@allegra.UUCP> <132@linus.UUCP> Reply-To: woof@psivax.UUCP (Harold Schloss) Organization: Pacesetter Systems Inc., Sylmar, CA Lines: 50 Xref: watmath net.mail:1382 net.unix-wizards:16500 In article <132@linus.UUCP> sid@linus.UUCP (Sid Stuart) writes: >>Many users here do most of their work on Suns, using the central vaxes >>only for reading mail and netnews. >> >> Mark Plotnick >> allegra!mp > > > The nicest solution to this problem would be to have only one >/usr/spool/mail directory across your network of computers. >Having only one /usr/spool/mail directory means that whatever computer >you log into, you read the same mail. I don't think it would take more than >a week or two of work to do, unfortunatly I haven't had a week or two to do it >yet. I am hoping Sun will do it in Release 3.0. Here is the idea, > > sid at linus I did it. What I have done is to have two vaxes both appear as the same machine for mail and netnews purposes. As sid suggests latter is his message the Mt. Xinu NFS port is required to accomplish this. If you have this what you can do is have all the machines use just one mail directory and one netnews directory. For mail I set it up so that /usr/spool/mail is actually the same directory by using a symbolic link on the new machine to point to the old machines directory. This requires NFS. Thus to read the mail a user must only run mail on either machine and things go fine. To send mail I force sendmail to run only on the old machine. The new machine has the following script for sendmail. #!/bin/sh cat << EOF > /vax/tmp/rsh$USER$$ #!/bin/sh PATH="$PATH" export PATH rm /tmp/rsh$USER$$ exec $0 $* EOF chmod u+x /vax/tmp/rsh$USER$$ exec rsh psivax /tmp/rsh$USER$$ This forces sendmail to run on psivax. For the netnews, I have set up /usr/spool/news to be named identically on both machines, and run inews only on one of the machines. I use a similar script for inews. -- Hal Schloss (from the Software Lounge at) Pacesetter Systems Inc. {sdcrdcf|ttdica|group3|scgvaxd|nrcvax|bellcore|logico|rdlvax|ihnp4}!psivax!woof ARPA: ttidca!psivax!woof@rand-unix.arpa