Hiding hostnames from mail-headers
Jonathan I. Kamens
jik at athena.mit.edu
Thu Apr 4 03:47:45 AEST 1991
In article <26387 at adm.brl.mil>, Z00EJR01%AWIUNI11 at 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 at Athena.MIT.EDU Allston, MA 02134
Office: 617-253-8085 Home: 617-782-0710
More information about the Comp.unix.questions
mailing list