Xref: utzoo comp.unix.questions:30036 comp.mail.sendmail:2965 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uwm.edu!bionet!agate!ucbvax!bloom-beacon!bloom-picayune.mit.edu!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.questions,comp.mail.sendmail Subject: Re: Hiding hostnames from mail-headers Message-ID: <1991Apr3.174745.14340@athena.mit.edu> Date: 3 Apr 91 17:47:45 GMT References: <26387@adm.brl.mil> Sender: news@athena.mit.edu (News system) Followup-To: comp.mail.sendmail Organization: Massachusetts Institute of Technology Lines: 42 In article <26387@adm.brl.mil>, Z00EJR01%AWIUNI11@pucc.princeton.edu ( Ewald Jenisch) writes: |> [asks how to hide subdomains in sender addresses] It seems to me that the easiest way to do what you're trying to accomplish is to do a bit of address rewriting in ruleset 1, which is applied to all sender addresses, so that individual machines are hidden. Using ease notation, you would so something like this (leaving out many of the details): field username, hostname : match (1); macro hiddenhost = "univie.ac.at"; bind SENDER_PREWRITE = ruleset 1; ruleset SENDER_PREWRITE { if ( username < @ hostname . $hiddenhost > ) retry ( $1 < @ $hiddenhost > ); if ( username < @ hostname . hostname . $hiddenhost > ) retry ( $1 < @ hiddenhost > ); } This hides machines up to two levels deep in the domain. Now, you might not want to be this general -- you might want to define a class of hostnames that you want to hide, and only match against those hosts when deciding whether or not to hide. It should be relatively straightforward. By the way, if you don't have ease, then you should get it :-). I believe it was posted in comp.sources.misc recently, and it takes much of the stress out of sendmail config files. -- Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8085 Home: 617-782-0710