🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.sendmail
Article #3140

Re: help with sendmail.cf

#3140
From: Andy Ingle
Date: Wed, 01 Feb 1989 18:56
49 lines
2358 bytes
In article <637@blake.acs.washington.edu>, mtsu@blake.acs.washington.edu (Montana State) writes:
> I have four mVAXen running Ultrix 2.3 .  One of these, named caesar is to be
> the central mail handling system.  I want the other three (khan, nero, ming)
> to forward everything... to caesar for processing.  Including users on the
> local machine.  The end result I'm looking for is for all mail to be processed
> and held on one node.  Is this doable??

I run a variation on this scheme where all mail is sent to a central mail
handler, but may then be sent out to the user's workstation if this is
where he/she prefers to take mail. All the machines run sendmail and
are connected by ethernet. Each machine will recognise its own name in
a "user@host" address, but passes everything else to the central mail
handler where the main aliases file is kept. The advantage is that only
one aliases file need be kept for the whole network.

The workstations' .cf file has the following features:

Assume $M = ether
       $R = your master machine

At some earlier point recognise all forms of your master machine's name
and rewrite to "LOCAL", then

S0
# delete redundant local info
R$*<$*$=w.LOCAL>$*	$1<MYUSER>$4			thishost.LOCAL
R$*<@LOCAL>$*		$1<@$D>$2			host == domain gateway
R$*<$*$=w.uucp>$*	$1<MYUSER>$4			thishost.uucp
R$*<$*$=w>$*		$1<MYUSER>$4			thishost
R$*<$*.>$*		$1<$2>$3			drop trailing dot

# handle real local users
R$+<MYUSER>$*		$#local $:$1			local user

# everything else gets sent to the relay for aliasing
R$+			$#$M $@$R $:$1			username


The master machine needs little modification except that when mailing a
workstation it must still use the "user@host" address or the mail will
bounce right back!

R$*<@$*$=S.LOCAL>$*	$#ether $@$3 $:$1@$2$3$4	user@etherhost.LOCAL
R$*<@$*$=S>$*		$#ether $@$3 $:$1@$2$3		user@etherhost


Hope this is of help.

--Andy Ingle
Technical Details
Message-ID: <697@acorn.co.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!ukc!acorn!andy
References: <637@blake.acs.washington.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!ukc!acorn!andy
From: andy@acorn.co.uk (Andy Ingle)
Newsgroups: comp.mail.sendmail
Subject: Re: help with sendmail.cf
Summary: Yes, this is how I do it.
Message-ID: <697@acorn.co.uk>
Date: 1 Feb 89 18:56:57 GMT
References: <637@blake.acs.washington.edu>
Organization: Acorn Computers Limited, Cambridge, UK
Lines: 49