Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun!imagen!atari!portal!uunet!mcvax!ukc!etive!glasgow!jac From: jac@doc.ic.ac.uk (Jim Crammond) Newsgroups: comp.mail.sendmail Subject: Re: UK-Sendmail Authorisation program Message-ID: <27606.8902090939@sophocles.doc.ic.ac.uk> Date: 9 Feb 89 09:39:40 GMT Sender: daemon@cs.glasgow.ac.uk Lines: 20 Phone: 01-589 5111 ext 5065 In-Reply-To: Jonathan Knight's message of Tue, 7 Feb 89 12:19:43 GMT X-Mailer: mail-news 2.0.4 |Ideally I'd like to be able to ban any mail from the student machine |Is there anyway setting up authorise so it knows where the |mail came from in a multi-host environment? The answer to this one is yes! By default the authorise program receives "$g" as the from address from sendmail. If instead you change this to "$s" - i.e. the sender domain (which includes the actual host) then you can authorise on that. So, you could put something in your localise.sh such as: ed mailers.m4 <<'EOF' /authorise janet/s/$g/$s/ w q EOF -Jim.