home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.mail.sendmail
- Path: sparky!uunet!melpar!tsmnet3!rich
- From: rich@tsmnet3.uucp (Richard Martin)
- Subject: Re: How to delete hostnames in outgoing mail ?
- Organization: E-Systems, Melpar Division
- Date: Wed, 16 Dec 1992 23:13:43 GMT
- Message-ID: <rich.724547623@tsmnet3>
- References: <1992Dec14.185155.7439@news.lrz-muenchen.de>
- Sender: news@melpar (News Administrator)
- Lines: 40
-
- yoda@next2.cis.uni-muenchen.de (Marc Guenther) writes:
-
- >Hello,
-
- >I've tried this for ages, and I keep getting wrong results,
- >so I simply dont know what to do anymore.
-
- >What I want to do is, to erase the hostname in the From: field
- >of every outgoing mail.
-
- >For example, I am sitting an the machine alderaan in the domain
- >cis.uni-muenchen.de, and when I'm sending mail to the world,
- >my From: line looks like this: yoda@alderaan.cis.uni-muenchen.de
- >but I woant it to look like: yoda@cis.uni-muenchen.de
-
- >Anybody knows how to do this ?
-
- >Thanks,
- >Yoda
- >--
- >yoda@cis.uni-muenchen.de
-
- Try adding a rule to ruleset 1 of sendmail.cf, something like
-
- R$+@alderaan.$+ $1@$2
-
- This should rewrite anything with in the form user@alderaan.domain_stuff to
- user@domain_stuff. This will only change the FROM: line.
-
- You might also want to look at the ruleset that your tcp mailer is calling..
- probably 14. See where it is adding your machines name and look at changing
- it so that it only adds your machine name when necessary (if at all).
-
-
-
- --
- Richard Martin
- E-Systems, Melpar Division
- ..uunet!melpar!rich
- rich%melpar@uunet.uu.net
-