Path: utzoo!utgpu!watmath!iuvax!rutgers!att!jhc From: jhc@att.ATT.COM (Jonathan Hawbrook-Clark) Newsgroups: comp.mail.uucp Subject: Re: HDB system forwarding restrictions? Message-ID: <2736@att.ATT.COM> Date: 8 Jun 89 22:18:54 GMT References: <221@grc.UUCP> Reply-To: jhc@att.ATT.COM (Jonathan Hawbrook-Clark) Organization: AT&T Bell Laboratories, Middletown, NJ, USA Lines: 32 In article <221@grc.UUCP> don@grc.UUCP (Donald D. Woelz) writes: >I want to be able to restrict which systems can forward mail to >which other systems. You can't do this with UUCP permissions. All you can do is restrict which systems have access to which commands. So that, for example, you could say: MACHINE=a:b:c COMMANDS=rmail MACHINE=OTHER COMMANDS= which would only allow those three machines to run rmail. >What I am specifically looking for is a method to allow system A >to forward mail to all other systems connected to me except system B or >system C. The opposite would also be okay, that is, system A can >forward only to system B or system C as specified. The easiest way to do this with your software is to write a shell script or program which would check last-hop and next-hop for whether they are allowed to do what they want, then if they are invoke the real rmail, otherwise bounce the mail. To do this do something like: MACHINE=OTHER COMMANDS=/usr/lib/uucp/rmail or whatever you want to call it. -- Jonathan Clark jonathan@mtune.att.com, attmail!jonathan Any affiliation is given for identification purposes only. The Englishman never enjoys himself except for some noble purpose.