Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!blake!ogccse!littlei!omepd!merlyn From: merlyn@intelob.intel.com (Randal L. Schwartz @ Stonehenge) Newsgroups: comp.unix.questions Subject: Re: BSD mail .forward question Summary: use a mail agent Message-ID: <4105@omepd.UUCP> Date: 4 Feb 89 20:53:25 GMT References: <6218@saturn.ucsc.edu> Sender: news@omepd.UUCP Reply-To: merlyn@intelob.intel.com (Randal L. Schwartz @ Stonehenge) Distribution: usa Organization: Stonehenge; netaccess via BiiN, Hillsboro, Oregon, USA Lines: 46 In-reply-to: mende@athos.rutgers.edu (Bob Mende Pie) In article , mende@athos (Bob Mende Pie) writes: | In article <6218@saturn.ucsc.edu> haynes@ucscc.UCSC.EDU (Jim Haynes) writes: | | > I have a user with accounts on two different machines here. He would | > like to have it so that when he receives mail addressed to either machine | > a copy is delivered to both machines. | | yes ... but it is a hack... | | on machine1 have a .forward that looks like: | user@machine2 | | on machine2 have a .forward that looks like: | \user | user-local@machine1 | | on machine1 have an entry in /usr/lib/aliases that looks like | user-local: \user | | I dont there is there is an easy way to avoid a mail loop without doing it | this way. How about... $HOME/.forward: "\user,|$HOME/.forwarder" $HOME/.forwarder: (mode 755) if tee /tmp/forw.$$ | grep -s "From: $USER@othermachine" then : else mail $USER@othermachine (fastest!) MX-Internet: UUCP: ...[!uunet]!tektronix!biin!merlyn Standard disclaimer: I *am* my employer! Cute quote: "Welcome to Oregon... home of the California Raisins!"