Path: utzoo!attcan!uunet!mcsun!ukc!edcastle!cs.glasgow.ac.uk!daemon From: A.Macpherson@stl.stc.co.uk Newsgroups: mail.uk-sendmail-workers,comp.mail.sendmail Subject: Re: inverted alias lookup? Message-ID: <8019.9010252245@helios.cs.hw.ac.uk> Date: 25 Oct 90 22:51:23 GMT Sender: daemon@cs.glasgow.ac.uk Lines: 32 Approved: usenet@cs.glasgow.ac.uk In-Reply-To: Message from "Steve Platt" of 25 Oct 90, 2:54 pm Organisation: STC Technology, London Road, HARLOW, Essex England, CM17 9NA Phone: +44 279 429531 ext 2423 Telex: 81151 stl hw g Original-Sender: A.Macpherson@stl.stc.co.uk Steve, and anyone else who wants to use a standard Sun sendmail, rather than the IDA versions. (Available from Brunel and STL) This is one for your localise.sh Define a map eg Y for the reverse YP DYmail.byaddr Then as the first line in ruleset 4 R$-@$* $:${Y$1@$2$} This will only affect headers, since transport addresses are still in <> and will fix up for every delivery channel There is a possible "catch" in that it is usual in uk-sendmail for the domain component to be the cannonical domain by this stage --- you might need to load up: id: id@host f.u.llname: id@domain to get the (reverse) mapping you want to achieve. You can check by running test mode, for rules 3,1,20,4 and looking at what is passed in to 4 Short plug: I have explicit rules in a modified uk-sendmail, both for this and for MX based routing, with a default if no MX record is found. FTAM or Niftp to stl, ANON/guest login, file sendmail.cf/UK2.1.stc.tar.Z -- A.Macpherson@stl.stc.co.uk - or - Post@stl.stc.co.uk "Quot homines, tot sententiae"